问题
Trying to create a new project in VS2010 (on Windows 7 64-bit) of type Windows Phone Application, I get the error:
You need to install the Silverlight 4.0 SDK before creating a Silverlight for Windows Phone project. Download the Silverlight 4.0 SDK from: [link omitted]
If I try to install Silverlight 4.0 SDK, I get:
A newer version of Microsoft Silverlight 4 SDK is already installed.
I have completely uninstalled and resintalled VS2010 (and SP1 service pack) as well as everything related to silverlight and WP7 SDK.
回答1:
I don't understand the down vote here... I had this issue in the past. Uninstall everything that has to do with Visual Studio, Silverlight, and XNA. Then redownload everything and it'll work.
Silverlight 4 SDK
Silverlight 5 SDK
Silverlight 5 Tools
Silverlight 5 Developer RuneTime x64
Silverlight 5 Developer RuneTime x86
Silverlight for WP7.1
Windows Phone Tool
Also make sure you have Visual Studio 2010 SP1
来源:https://stackoverflow.com/questions/8903229/error-creating-silverlight-4-0-project-for-windows-phone