0

我正在使用 .Net 4.0 创建 Silverlight 应用程序,并将其集成到在 .Net 3.5 中创建的 ASP.net 项目中。

每当我在 Silverlight 项目中进行更改时,这些更改都不会反映到 ASP.net 项目中

4

1 回答 1

1

您需要确保您的 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 文件夹中。

添加 Silverlight 应用程序对话框

于 2012-05-31T08:22:37.967 回答