我正在使用 .Net 4.0 创建 Silverlight 应用程序,并将其集成到在 .Net 3.5 中创建的 ASP.net 项目中。
每当我在 Silverlight 项目中进行更改时,这些更改都不会反映到 ASP.net 项目中
我正在使用 .Net 4.0 创建 Silverlight 应用程序,并将其集成到在 .Net 3.5 中创建的 ASP.net 项目中。
每当我在 Silverlight 项目中进行更改时,这些更改都不会反映到 ASP.net 项目中
您需要确保您的 Silverlight 应用程序和网站已连接
将其添加到解决方案中是不够的。您需要在网站和您的 Silverlight 应用程序之间建立 Silverlight 关系。
Properties
.Silverlight Applications
左侧的选项卡Add...
Use an existing Silverlight project in the solution
选择要添加的项目。Project
Add a test page that references the control
如果您想为您的应用程序提供单独的测试页面,请选中。Add
,你就完成了。该网站现在将构建您的 Silverlight 应用程序并将输出 Xap 文件包含在其 ClientBin 文件夹中。