Set the Set Action task to None to automatically exclude CSS / JavaScript debugging

My web application project contains various CSS and JavaScript files all over the place, like demo.debug.css and demo.debug.js.

During the assembly process, these files are all minified to demo.css or demo.js, for example.

In many .debug.css / .debug.js files, their assembly action is set to "No" to ensure that they are not included in the published project, only mini files are output, since their assembly action is set to 'Contents'.

What I want is a build task or an action that automatically scans the project and sets the value of this build to None, as new files are added by default. By default, they are not included.

A sequence was added to the build task, but No was not a valid task name.

<None Include="**\*.debug.css" /> 

So, I added this to the project file, but it duplicated all the affected files in Visual Studio Solution Explorer.

  <ItemGroup> <None Include="**\*.debug.css" /> </ItemGroup> 

I suspect that I need a link added to the build task, but cannot find where this build of tasks is. None of my two options set the action of assembling files anywhere.

+4
source share

All Articles