ClickToBuild throws error when item Build Action property set to None


When I run ClickToBuild, I am presented with a list of errors suggesting that I need to set the Build Action property to 'Content' instead of 'None' on specific files.

If anything, this should be a warning. I have a heap of files (SASS files to be specific) which I don't want included in the build. To exclude them from the build, I set the Build Action property to 'None'.

The issue this gives for me, is I now ignore the errors rather than review them. If a true error does come up, I'm probably going to miss it.

file attachments


justrhysism wrote Nov 13, 2012 at 12:15 AM

Attached screenshot.

Znowman wrote Nov 13, 2012 at 9:44 AM

Can't you just exclude the specific files from Visual studio? I think it only throws these errors for file which are included in the visual studio proj files.

justrhysism wrote Nov 13, 2012 at 11:04 PM

No I need those files in Visual Studio so the Web Workbench extension can see them.

sebastienros wrote Jan 15, 2013 at 9:19 PM

A solution could be to create a switch on the msbuild script to ignore the check. In the meantime you can do it by yourself.