First, you must install Visual Studio 2010 SP1 or a later version on your computer.
If it is not installed, the following is the Visual Studio 2010 SP1:
Http://download.microsoft.com/download/E/ B /A/EBA0A152-F426-47E6-9E3F-EFB686E3CA20/VS2010SP1dvd1.iso
Download and install Microsoft Silverlight 5 tools for Visual Studio 2010 SP1
:Http://www.microsoft.com/zh-cn/download/details.aspx? Id = 28358
Finally, download and install the Silverlight 5 Toolkit
:Http://silverlight.codeplex.com
After the installation is completed in sequence, we can create a new project, such:
In fact, after the installation, there are no three items in the red box above.
This is because the Silverlight 5 toolkit installs the project template to the English language directory. In this case, we need to copy the project template from the English language directory to the Chinese language directory, and then recreate the vs environment, the procedure is as follows:
1) Go To The vs installation directory (default path: C: \ Program Files \ Microsoft Visual Studio 10.0 \ common7 \ IDE) and go to the \ projecttemplates \ CSHARP \ Silverlight directory, find the English language directory 1033, which contains three project template files: Silverlight unit test project.zipw.silverlight3dapp.zipw.silverlight3dlib.zip.
2) copy the above three files to the Chinese language directory 2052.
3) run the CMD command line to go to The vs installation directory (default path: cd c: \ Program Files \ Microsoft Visual Studio 10.0 \ common7 \ IDE)
4) Run devenv/setup.
5) Run devenv/installvstemplates.
In this case, re-open.
Now we create a project Silverlight 3D application. By default, Solution Explorer generates four project packages, as shown in:
In this case, we also need to make relevant settings. Right-click the silverlight3dapp, select properties, and set "allow applications to run outside the browser ".Program"And" trust to be improved when running in the browser "are checked in the selection box. As shown in:
Click "out-of-browser settings" and check the selection box before "use GPU acceleration" and "enhance trust when running outside the browser.
Then, the two newly generated files (inbrowsersettings. xml and outofbrowsersettings. XML) in the silverlight3dapp respectively modify the generated operation to the content in the property ,:
Finally, you can click Start debugging or press F53D RotationCubeBody. At this time, the development environment has been successfully set up.