In a project I have a bad file, and I'd like to keep it. I know, I can use "Exclude from project", but this hides the file (in VS 2010, in VS 2008, it was still visible). But instead, I clicked, under properties, Build Action: None
. When I compile, the project compiles, but when I look in the error list, it still shows the errors of this file.
Shouldn't the reported errors exclude the errors of files that have been excluded from the build? I.e., files marked Content
are never build. But when a *.cs file is Content
, the Error List still shows the errors of this file. This is more than just a nuisance. On large projects, many errors and warnings arise from files that are never compiled, obscuring the errors that matter . What can I do to prevent this?