问题
How do you stop the DiaSession warning from TFS CI build when using NUnit?
0 error(s), 1 warning(s)
Unable to create DiaSession for ....
No source location data will be available for this assembly.
回答1:
You need to use add the /p:NoWarn=warningNumber in MSBuild Arguments in the build definition. Or use the /p:WarningLevel=0 argument to suppress all warnings.
来源:https://stackoverflow.com/questions/33548560/how-do-you-stop-the-diasession-warning-from-tfs-ci-build-when-using-nunit