Post

1 follower Follow
0

Source files are not analyzed by .NET analyzer when the file present in CONTENT tag in project file

We understand that the .NET analyzer is designed to analyze the source files present under COMPILE tags and the source files present under CONTENT tag are not analyzed maybe because in content tag we mostly have resources referred which cannot be analyzed. But sometimes we have CS files also referred.

One of the client's project file, we have some CS files referred to in the CONTENT tag which are not analyzed which is expected by the analyzer. Can we change the current functionality to analyze the CS files present in the CONTENT tag?

As a workaround we asked them to rename the CONTENT tag to COMPILE tag and analyze the code.

Please sign in to leave a comment.