Windows 8 – Could not find SDK Microsoft.WinJS.1.0.RC, Version=1.0 Error In Visual Studio 2012


Windows 8 Logo

Tonight I was looking for code to enhance the grid app template in Visual Studio 2012 but ran into the following error when I tried to build the sample:

Could not find SDK “Microsoft.WinJS.1.0.RC, Version=1.0″

The error occurs because Microsoft.WinJS.1.0.RC was used in the Windows 8 Release Preview (RP) and Windows 8 now uses Microsoft.WinJS.1.0.

The fix is as follows – in the Solution Explorer expand References and then right-click on Microsoft.WinJS.1.0.RC and remove it.

Microsoft.WinJS.1.0.RC in Visual Studio 2012
Microsoft.WinJS.1.0.RC in Visual Studio 2012

Right click References then Add References and select Windows Library for Javascript 1.0 and click OK:

Add Windows
Add Windows Library for Javascript 1.0

The last step is to change Javascript references across the entire solution using Find and Replace:

Replace
Replace Microsoft.WinJS.1.0.RC with Microsoft.WinJS.1.0

Source: http://mattduffield.wordpress.com/2012/08/27/upgrading-windows-8-html5-code-from-rp-to-rtm/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s