开发者

Exclude a dependent file from VSS in Visual Studio 2008

I have a file, let's say MySchema.xsd, within a folder in a C# project. I am auto-generating a class, MySchema.cs, through the use of a pre-build action that runs xsd.exe on it. I can include MySchema.cs in my project, and VS2008 automatically makes it a dependent file of MySchema.xsd.

I need to include MySchema.xsd in source control (Visual Source Safe 2005) but exclude the generated output. This blog entry has a tip that does exactly what I want, except that the menu option "Exclude 'MySchema.cs' from source control" does not exist. It seems that this menu option does not appear for dependent items. I do have that option for MySchema.xsd, but that is not what I want.

I have tried temporarily making MySchema.cs independent by editing the .cs开发者_如何学运维proj file, then excluding the file. That worked, but when I went to make the file dependent again, MySchema.xsd is also excluded.

Another solution could be just to name the output of xsd.exe something else, then exclude that file. However, I would like to avoid renaming if possible.

Is there another solution I have missed?


What about removing it from source control but still include in in the project?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜