Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 708
chobo2 Avatar asked Nov 27 '25 19:11

chobo2


1 Answers

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.

alt text

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.

alt text

like image 140
p.campbell Avatar answered Nov 30 '25 13:11

p.campbell