Created
October 23, 2018 15:46
-
-
Save lavn0/92d1bfeffb1cb05fd60bd60e6b728a94 to your computer and use it in GitHub Desktop.
ソリューションファイルを指定してコード分析結果を出力する方法。FxCopCmd.exeではDLLすべてのパスを渡す必要がある。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SET DT=%TIME: =0% | |
@SET DT=%DT::=% | |
@SET DT=%DATE:/=-%-%DT:~0,6% | |
@SET MSBUILD=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe | |
@SET SOLUTION=SampleSolution.sln | |
@SET LOGDIR=LOG | |
@MKDIR "%LOGDIR%" >nul 2>&1 | |
"%MSBUILD%" "%SOLUTION%" /t:ReBuild /verbosity:q /p:Configuration=Release;RunCodeAnalysis=true;CodeAnalysisOutputToConsole=true > %DT%_out.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment