Silverlight 2 projects can't be created with the Silverlight 3 Tools for Visual Studio 2008. When Visual Studio 2010 is released, you will be able to build both Silverlight 2 and Silverlight 3 with the same IDE. But for the immediate future, you will need Silverlight 3 Tools to build Silverlight 3 projects and Silverlight 2 Tools to build Silverlight 2 projects.
If you already have Silverlight 2 Tools installed, you can easily upgrade to Silverlight 3 Tools by running the Silverlight 3 installer. To downgrade from Silverlight 3 to Silverlight 2 tools, you will need to uninstall "Microsoft Silverlight" and "Microsoft Silverlight Tools for Visual Studio 2008" from Add/Remove programs before re-installing Silverlight 2 Tools.
If you plan to switch frequently between Silverlight 2 and Silverlight 3, the utility below should make the process a little faster.
Setup
- Download Silverlight_Tools_Util.zip, and unzip
- Download the Silverlight 2 Tools and save Silverlight_Tools.exe in the Silverlight_Tools_Util folder
- Download the Silverlight 3 Tools and save Silverlight3_Tools.exe in the Silverlight_Tools_Util folder
- If you haven’t previously, run Silverlight_Tools.exe to install the Silverlight 2 Tools and SDK
- If you haven’t previously, run Silverlight3_Tools.exe to install the Silverlight 3 Tools and SDK
- Run Setup_SLTools_Util.bat to generate switching scripts
To install Silverlight 2 Tools for Visual Studio
- Close Visual Studio
- Run VS_3-to-2.bat
To install Silverlight 3 Tools for Visual Studio
- Close Visual Studio
- Run VS_2-to-3.bat
To install Silverlight 2 Tools for Visual Web Developer Express
- Close Visual Web Developer Express
- Run VWDx_3-to-2.bat
To install Silverlight 3 Tools for Visual Web Developer Express
- Close Visual Web Developer Express
- Run VWDx_2-to-3.bat
To downgrade a project from Silverlight 3 to Silverlight 2
- Open the .csproj or vbproj file in a text editor
- Change
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets" Condition="" />
To
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight\v2.0\Microsoft.Silverlight.CSharp.targets" Condition="" />
'RIA Platform' 카테고리의 다른 글
Silverlight Code Snippets for DependencyProperties and other Handy Stuff (0) | 2009.04.21 |
---|---|
Silverlight Tips, Tricks, Tutorials and Links Page (0) | 2009.04.17 |
My First Data Application in Silverlight 2 (0) | 2009.04.13 |
Where to deploy my Silverlight XAP file? (0) | 2009.03.30 |
Register XAP file extention in IIS (0) | 2009.03.30 |