Prevent Visual Studio 2008 from creating .xsc and .xss files when you try to open a .xsd file.

I used xsd.exe to create a schema file for some XML. I want to include this schema file in my C # project in Visual Studio, but every time I add the .xsd file to my project and then double-click it to open it, Visual Studio creates these .xss and .xsc for of my .xsd file and it modifies my .xsd file. How can I make it stop the automatic execution of this and change my circuit?

+6
xml visual-studio-2008 xsd
source share
2 answers

After creating the XSD file, open it in Notepad and update the following:

msdata: IsDataSet = " false " (this is true)

When you import this file into Visual Studio, it should not create additional files.

More details here .

+5
source share

If you're OK, dealing with raw XML

Right-click XSD, select "Open With."
In the dialog box, select the XML editor and click Set as Default.

+2
source share

All Articles