VS 2010 Publish 是否排除架构文件?
我在 .net 4.0 的 asp.net mvc 2.0 应用程序中有一个架构文件,
我正在使用 Visual Studios 2010 Ultimate,并且正在使用他们的发布按钮。
当我发布解决方案时,包含 xml 架构的文件夹将被排除。我不知道为什么要这样做,但我不希望这种情况发生。有我可以设置的设置吗?
I have a schema file in a asp.net mvc 2.0 application that is a .net 4.0
I am using visual studios 2010 ultimate and I am using their publish button.
When I publish my solution the folder that contains my xml schema gets excluded. I don't know why it's doing this but I don't want this to happen. Is there a setting I can set?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以设置 .xsd 的文件属性,以确保它们是构建和发布的一部分。它们需要被标记为内容。子目录无需修改,只需修改 .xsd 即可。
执行发布操作,您的文件夹和 .xsd 将包含在发布工件中。在此测试中,我发布到名为 mvc-test-output 的本地目录。所有 MVC 输出以及 .xsd 及其子目录均已发布。
You can set the file properties of your .xsd to ensure they're part of the build and publish. They'll need to be marked as Content. The sub-directory needs no modification, just the .xsd.
Perform a publish operation, and your folder and .xsd are included in the publish artifacts. In this test, I published to a local directory named mvc-test-output. All MVC output and the .xsd and its subdirectory were published.