开发者

Mark all files as "Embedded Resource" in Visual Studio

开发者 https://www.devze.com 2023-01-29 11:46 出处:网络
I am using Visual Studio 2008. I need to mark my xml files as \"Embedded Resource\". I can do this process by opening the properties tab and then select the \"Build Action\" property as \"Embedded R

I am using Visual Studio 2008.

I need to mark my xml files as "Embedded Resource".

I can do this process by opening the properties tab and then select the "Build Action" property as "Embedded Resource". I guess it is the normal way.

But I have a folder that has large number of generated xml files (400 approx) And I want them all to be marked as "Embedded Res开发者_如何学运维ource". Is there a simple way to do it?


You can select all your XML files within VS and change them all to Embedded Resource just as you would with a single file.

Select all the files and then go to the Properties tab just as you would a single file and change the Build Action to Embedded Resource; it will propagate to all the previously selected files.


I believe the information you're updating is stored in the .csproj file. Can you write something that parses the .csproj XML to update it automatically?

0

精彩评论

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

关注公众号