开发者

Does VS 2010 Publish exclude schema files?

I have a schema file in a asp.net mvc 2.0 application that is a .net 4.0

I am using开发者_JAVA技巧 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?


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.

Properties -> Build Action -> Content.

Does VS 2010 Publish exclude schema files?

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.

Does VS 2010 Publish exclude schema files?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜