开发者

How change build action from content to compile site wide

开发者 https://www.devze.com 2022-12-28 13:26 出处:网络
I\'m trying to convert a asp.net website to asp.net web application. I need to change the build action for every file from \"content\" to \"compile\". How can i do this site width. I have a t开发者_St

I'm trying to convert a asp.net website to asp.net web application. I need to change the build action for every file from "content" to "compile". How can i do this site width. I have a t开发者_StackOverflowoo many files to do this manually.


You can do this manually by editing .proj file, just replace Content with Compile. Here is an example:

<Project ToolsVersion="3.5"><ItemGroup><Content Include="WebForm1.aspx" /></ItemGroup>

<Project ToolsVersion="3.5"><ItemGroup><Compile Include="WebForm1.aspx" /></ItemGroup>

Why you want to do this?

s

0

精彩评论

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

关注公众号