Eden
Eden

Reputation: 543

Why doesn't my xsd file get copied in the build in Visual Studio 2010?

My project has a folder with an xml file and an xsd file. When I build, the xml file is copied but not the xsd file. Why is that? The xsd is the one I actually need in my web service.

Upvotes: 1

Views: 1303

Answers (1)

TehBoyan
TehBoyan

Reputation: 6890

You need to go to properties of the .xsd file in the Properties window in Visual Studio and set BuildAction as Content.

Also there are other ways to set build action for .xsd files

Upvotes: 2

Related Questions