如何在Visual Studio 2008中创建Silverlight应用程序? [英] How do I create a Silverlight application in Visual Studio 2008?
问题描述
我需要在VS 2008中为Win CE 6.0创建Silverlight应用程序. 我先安装了VS 2008 SP1和Silverlight 2 SDK,然后安装了2008年的Silverlight工具.
I need to create a Silverlight application in VS 2008 for Win CE 6.0. I installed VS 2008 SP1 and the Silverlight 2 SDK, and then Silverlight Tools for 2008.
但是,当我打开VS 2008时,它会询问以下两个选项:
However, when I open VS 2008, it's asking two options as follows:
-
将新的ASP.NET Web项目添加到解决方案中以托管Silverlight
Add a new ASP.NET web project to the solution to host Silverlight
自动生成一个测试页面以在构建时托管Silverlight
Automatically generate a test page to host Silverlight at build time
如果要使用C#构建应用程序,我不知道必须选择哪个.
I don't know which one I have to select if I want to build my application using C#.
推荐答案
如果要将Silverlight输出添加到现有C#应用程序中,最好选择第二个选项.您不需要完整的ASP.NET Web应用程序.
If you want to add the silverlight output to an existing C# application, it's probably better to choose the second option. You don't need a complete ASP.NET webapplication.
这篇关于如何在Visual Studio 2008中创建Silverlight应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!