I am building projects using a build definition. When this executes, Code Analysis is also performed. Code Analysis outputs various files including:
ConsoleApplication2.exe.CodeAnalysisLog.xml
ConsoleApplication2.exe.lastcodeanalysissucceeded
Is there any way to disable this output from happing in my build definition, say through parameters or something similar?
To open this page, right-click the project node in Solution Explorer and select Properties. Select the Code Analysis tab. To disable source analysis at build time, uncheck the Run on build option. To disable live source analysis, uncheck the Run on live analysis option.
Use a #pragma warning (C#) or Disable (Visual Basic) directive to suppress the warning for only a specific line of code.
Generation of the success marker file can be disabled using the CodeAnalysisGenerateSuccessFile
option. e.g.:
<CodeAnalysisGenerateSuccessFile>false</CodeAnalysisGenerateSuccessFile>
There's no option for preventing generation of the log file, but you can move it to some other location via the CodeAnalysisLogFile
option. For example, to place it in your project root folder, you could use the following:
<CodeAnalysisLogFile>CodeAnalysisLog.xml</CodeAnalysisLogFile>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With