Closed cortex-pg closed 6 years ago
❓ Have you tried doing an explicit NuGet restore before the build?
Yes I already have a NuGet restore. I think I have found the cause. Around the build solution I have a sonarqube begin/end analysis step. If these are removed I see the stylecop warning. However if I add a built in visual studio warning I still see this with the sonarqube steps enabled.
Without Sonarqube
HEAD is now at 6127589... add vs warning
2018-02-21T09:10:05.9680024Z ##[command]git submodule sync
2018-02-21T09:10:08.0930416Z ##[command]git -c http.http://vd-tfs1:8080.extraheader="AUTHORIZATION: bearer ********" submodule update --init --force
2018-02-21T09:10:10.3587099Z ##[command]git config http.http://vd-tfs1:8080/tfs/Product%20Development/Cortex/_git/TestAnalysers.extraheader "AUTHORIZATION: bearer ********"
2018-02-21T09:10:10.4993534Z ##[section]Finishing: Get Sources
2018-02-21T09:10:10.5306262Z ##[section]Starting: Use NuGet >=4.5.0
2018-02-21T09:10:10.5618764Z ==============================================================================
2018-02-21T09:10:10.5618764Z Task : NuGet Tool Installer
2018-02-21T09:10:10.5618764Z Description : Acquires a specific version of NuGet from the internet or the tools cache and adds it to the PATH. Use this step to change the version of NuGet used in the NuGet Restore and NuGet Command steps.
2018-02-21T09:10:10.5618764Z Version : 0.1.1
2018-02-21T09:10:10.5618764Z Author : Microsoft Corporation
2018-02-21T09:10:10.5618764Z Help :
2018-02-21T09:10:10.5618764Z ==============================================================================
2018-02-21T09:10:11.4056408Z You are using a query match on the version string. Behavior changes or breaking changes might occur as NuGet updates to a new version.
2018-02-21T09:10:11.9212784Z Found tool in cache: NuGet 4.5.1 x64
2018-02-21T09:10:11.9212784Z Using version: 4.5.1
2018-02-21T09:10:11.9212784Z Found tool in cache: NuGet 4.5.1 x64
2018-02-21T09:10:11.9212784Z Using tool path: C:\agent\_work\_tool\NuGet\4.5.1\x64
2018-02-21T09:10:11.9212784Z Prepending PATH environment variable with directory: C:\agent\_work\_tool\NuGet\4.5.1\x64
2018-02-21T09:10:11.9369018Z ##[section]Finishing: Use NuGet >=4.5.0
2018-02-21T09:10:11.9525286Z ##[section]Starting: NuGet restore **\*.sln
2018-02-21T09:10:11.9525286Z ==============================================================================
2018-02-21T09:10:11.9525286Z Task : NuGet Restore
2018-02-21T09:10:11.9525286Z Description : Restores NuGet packages in preparation for a Visual Studio Build step.
2018-02-21T09:10:11.9525286Z Version : 1.0.1
2018-02-21T09:10:11.9525286Z Author : Microsoft Corporation
2018-02-21T09:10:11.9525286Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613747)
2018-02-21T09:10:11.9525286Z ==============================================================================
2018-02-21T09:10:13.3275188Z [command]C:\Windows\system32\chcp.com 65001
2018-02-21T09:10:13.3431581Z Active code page: 65001
2018-02-21T09:10:13.9681962Z Detected NuGet version 4.5.1.4879 / 4.5.1
2018-02-21T09:10:13.9681962Z SYSTEMVSSCONNECTION exists true
2018-02-21T09:10:14.0306575Z save nuget.config to temp config file
2018-02-21T09:10:14.0306575Z Preparing to set credentials in NuGet.config
2018-02-21T09:10:14.0306575Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe sources Remove -NonInteractive -Name a42a2a68-7ce1-43e3-a185-b145462e9d85 -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35973.config
2018-02-21T09:10:15.0150512Z Unable to find any package source(s) matching name: a42a2a68-7ce1-43e3-a185-b145462e9d85.
2018-02-21T09:10:15.0150512Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe sources Remove -NonInteractive -Name NuGetOrg -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35973.config
2018-02-21T09:10:15.9681932Z Unable to find any package source(s) matching name: NuGetOrg.
2018-02-21T09:10:15.9681932Z Setting credentials in NuGet.config
2018-02-21T09:10:15.9681932Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe sources Add -NonInteractive -Name a42a2a68-7ce1-43e3-a185-b145462e9d85 -Source http://vd-tfs1:8080/tfs/Product%20Development/_packaging/a42a2a68-7ce1-43e3-a185-b145462e9d85/nuget/v3/index.json -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35973.config
2018-02-21T09:10:16.9369980Z Package Source with Name: a42a2a68-7ce1-43e3-a185-b145462e9d85 added successfully.
2018-02-21T09:10:16.9369980Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe sources Add -NonInteractive -Name NuGetOrg -Source https://api.nuget.org/v3/index.json -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35973.config
2018-02-21T09:10:17.9526088Z Package Source with Name: NuGetOrg added successfully.
2018-02-21T09:10:17.9682685Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe restore C:\agent\_work\24\s\ConsoleApp1.sln -NonInteractive -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35973.config
2018-02-21T09:10:18.9838783Z MSBuild auto-detection: using msbuild version '15.5.180.51428' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin'.
2018-02-21T09:10:21.4839603Z Restoring packages for C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj...
2018-02-21T09:10:22.4839452Z Committing restore...
2018-02-21T09:10:22.4995709Z Generating MSBuild file C:\agent\_work\24\s\ConsoleApp1\obj\ConsoleApp1.csproj.nuget.g.props.
2018-02-21T09:10:22.5151951Z Generating MSBuild file C:\agent\_work\24\s\ConsoleApp1\obj\ConsoleApp1.csproj.nuget.g.targets.
2018-02-21T09:10:22.5151951Z Writing lock file to disk. Path: C:\agent\_work\24\s\ConsoleApp1\obj\project.assets.json
2018-02-21T09:10:22.5933848Z Restore completed in 1.08 sec for C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj.
2018-02-21T09:10:22.6089823Z
2018-02-21T09:10:22.6089823Z NuGet Config files used:
2018-02-21T09:10:22.6089823Z C:\agent\_work\24\Nuget\tempNuGet_35973.config
2018-02-21T09:10:22.6089823Z
2018-02-21T09:10:22.6089823Z Feeds used:
2018-02-21T09:10:22.6089823Z http://vd-tfs1:8080/tfs/Product%20Development/_packaging/a42a2a68-7ce1-43e3-a185-b145462e9d85/nuget/v3/index.json
2018-02-21T09:10:22.6089823Z https://api.nuget.org/v3/index.json
2018-02-21T09:10:22.6714827Z ##[section]Finishing: NuGet restore **\*.sln
2018-02-21T09:10:22.6870759Z ##[section]Starting: Build solution **\*.sln
2018-02-21T09:10:22.6870759Z ==============================================================================
2018-02-21T09:10:22.6870759Z Task : Visual Studio Build
2018-02-21T09:10:22.6870759Z Description : Build with MSBuild and set the Visual Studio version property
2018-02-21T09:10:22.6870759Z Version : 1.119.0
2018-02-21T09:10:22.6870759Z Author : Microsoft Corporation
2018-02-21T09:10:22.6870759Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613727)
2018-02-21T09:10:22.6870759Z ==============================================================================
2018-02-21T09:10:26.0465120Z ##[command]"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -latest -format json
2018-02-21T09:10:26.6559016Z ##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" "C:\agent\_work\24\s\ConsoleApp1.sln" /nologo /nr:false /fl /flp:"logfile=C:\agent\_work\24\s\ConsoleApp1.sln.log" /dl:CentralLogger,"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=4973f0c0-ddb8-4446-934b-bfc96495e3cd|SolutionDir=C:\agent\_work\24\s"*ForwardingLogger,"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:AppxBundlePlatforms="x86|x64|ARM" /p:AppxPackageDir="C:\agent\_work\24\a\AppxPackages\\" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload /p:configuration="Debug" /p:VisualStudioVersion="15.0" /p:_MSDeployUserAgent="TFS_f552431a-10fc-454a-afb4-a27665914eda_build_188_35973"
2018-02-21T09:10:26.7965266Z Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
2018-02-21T09:10:26.8902794Z Build started 21/02/2018 09:10:26.
2018-02-21T09:10:27.1715355Z Project "C:\agent\_work\24\s\ConsoleApp1.sln" on node 1 (default targets).
2018-02-21T09:10:27.1715355Z ValidateSolutionConfiguration:
2018-02-21T09:10:27.1715355Z Building solution configuration "Debug|Any CPU".
2018-02-21T09:10:27.6090785Z Project "C:\agent\_work\24\s\ConsoleApp1.sln" (1) is building "C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj" (2) on node 1 (default targets).
2018-02-21T09:10:27.6090785Z PrepareForBuild:
2018-02-21T09:10:27.6090785Z Creating directory "bin\Debug\netcoreapp2.0\".
2018-02-21T09:10:27.6090785Z Creating directory "obj\Debug\netcoreapp2.0\".
2018-02-21T09:10:28.8746929Z CoreCompile:
2018-02-21T09:10:28.8746929Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1705,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /doc:bin\Debug\netcoreapp2.0\ConsoleApp1.xml /define:TRACE;DEBUG;NETCOREAPP2_0 /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.CSharp.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.VisualBasic.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.Win32.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\mscorlib.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\netstandard.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.AppContext.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Buffers.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Concurrent.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Immutable.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.NonGeneric.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Specialized.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Annotations.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Composition.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.DataAnnotations.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.EventBasedAsync.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.TypeConverter.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Configuration.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Console.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Core.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Data.Common.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Data.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Contracts.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Debug.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.DiagnosticSource.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.FileVersionInfo.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Process.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.StackTrace.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.TextWriterTraceListener.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Tools.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.TraceSource.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Tracing.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Drawing.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Drawing.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Dynamic.Runtime.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.Calendars.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.FileSystem.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.ZipFile.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.DriveInfo.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.Watcher.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.IsolatedStorage.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.MemoryMappedFiles.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Pipes.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.UnmanagedMemoryStream.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Expressions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Parallel.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Queryable.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Http.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.HttpListener.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Mail.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.NameResolution.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.NetworkInformation.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Ping.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Requests.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Security.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.ServicePoint.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Sockets.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebClient.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebHeaderCollection.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebProxy.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebSockets.Client.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebSockets.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Numerics.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Numerics.Vectors.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ObjectModel.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.DispatchProxy.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.ILGeneration.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.Lightweight.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Metadata.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.TypeExtensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.Reader.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.ResourceManager.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.Writer.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.CompilerServices.VisualC.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Handles.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.RuntimeInformation.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.WindowsRuntime.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Loader.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Numerics.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Formatters.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Json.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Xml.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Claims.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Algorithms.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Csp.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Encoding.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.X509Certificates.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Principal.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.SecureString.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ServiceModel.Web.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ServiceProcess.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.Encoding.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.Encoding.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.RegularExpressions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Overlapped.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Dataflow.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Parallel.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Thread.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.ThreadPool.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Timer.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Transactions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Transactions.Local.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ValueTuple.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Web.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Web.HttpUtility.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Windows.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.Linq.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.ReaderWriter.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.Serialization.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XDocument.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XmlDocument.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XmlSerializer.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XPath.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XPath.XDocument.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\WindowsBase.dll /debug+ /debug:portable /filealign:512 /nologo /optimize- /out:obj\Debug\netcoreapp2.0\ConsoleApp1.dll /ruleset:ConsoleApp1.ruleset /target:exe /warnaserror- /utf8output /deterministic+ /analyzer:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\codecracker.csharp\1.0.1\analyzers\dotnet\cs\CodeCracker.CSharp.dll /analyzer:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\codecracker.csharp\1.0.1\analyzers\dotnet\cs\CodeCracker.Common.dll /analyzer:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\sonaranalyzer.csharp\6.7.1.4347\analyzers\Google.Protobuf.dll /analyzer:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\sonaranalyzer.csharp\6.7.1.4347\analyzers\SonarAnalyzer.CSharp.dll /analyzer:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\sonaranalyzer.csharp\6.7.1.4347\analyzers\SonarAnalyzer.dll /analyzer:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\stylecop.analyzers\1.0.2\analyzers\dotnet\cs\StyleCop.Analyzers.CodeFixes.dll /analyzer:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\stylecop.analyzers\1.0.2\analyzers\dotnet\cs\StyleCop.Analyzers.dll Program.cs "C:\agent\_work\_temp\.NETCoreApp,Version=v2.0.AssemblyAttributes.cs" obj\Debug\netcoreapp2.0\ConsoleApp1.AssemblyInfo.cs /warnaserror+:NU1605
2018-02-21T09:10:28.9216057Z Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
2018-02-21T09:10:33.1404304Z ##[warning]ConsoleApp1\Program.cs(27,13): Warning CS0162: Unreachable code detected
2018-02-21T09:10:33.1404304Z Program.cs(27,13): warning CS0162: Unreachable code detected [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:10:33.1404304Z ##[warning]ConsoleApp1\Program.cs(25,13): Warning CC0030: This variables can be made const.
2018-02-21T09:10:33.1404304Z Program.cs(25,13): warning CC0030: This variables can be made const. [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:10:33.1404304Z ##[warning]ConsoleApp1\Program.cs(25,19): Warning S1854: Remove this useless assignment to local variable 'R'.
2018-02-21T09:10:33.1404304Z Program.cs(25,19): warning S1854: Remove this useless assignment to local variable 'R'. [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:10:33.1404304Z ##[warning]ConsoleApp1\Program.cs(25,17): Warning SA1312: Variable 'R' must begin with lower-case letter
2018-02-21T09:10:33.1404304Z Program.cs(25,17): warning SA1312: Variable 'R' must begin with lower-case letter [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:10:33.5935687Z CopyFilesToOutputDirectory:
2018-02-21T09:10:33.5935687Z Copying file from "obj\Debug\netcoreapp2.0\ConsoleApp1.dll" to "bin\Debug\netcoreapp2.0\ConsoleApp1.dll".
2018-02-21T09:10:33.5935687Z ConsoleApp1 -> C:\agent\_work\24\s\ConsoleApp1\bin\Debug\netcoreapp2.0\ConsoleApp1.dll
2018-02-21T09:10:33.5935687Z Copying file from "obj\Debug\netcoreapp2.0\ConsoleApp1.pdb" to "bin\Debug\netcoreapp2.0\ConsoleApp1.pdb".
2018-02-21T09:10:33.6091935Z CleanupEmptyRefsFolder:
2018-02-21T09:10:33.6091935Z Directory "C:\agent\_work\24\s\ConsoleApp1\bin\Debug\netcoreapp2.0\refs" doesn't exist. Skipping.
2018-02-21T09:10:33.6248345Z Done Building Project "C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj" (default targets).
2018-02-21T09:10:33.6248345Z Done Building Project "C:\agent\_work\24\s\ConsoleApp1.sln" (default targets).
2018-02-21T09:10:33.6248345Z
2018-02-21T09:10:33.6248345Z Build succeeded.
2018-02-21T09:10:33.6248345Z
2018-02-21T09:10:33.6248345Z "C:\agent\_work\24\s\ConsoleApp1.sln" (default target) (1) ->
2018-02-21T09:10:33.6248345Z "C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj" (default target) (2) ->
2018-02-21T09:10:33.6248345Z (CoreCompile target) ->
2018-02-21T09:10:33.6248345Z Program.cs(27,13): warning CS0162: Unreachable code detected [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:10:33.6248345Z Program.cs(25,13): warning CC0030: This variables can be made const. [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:10:33.6248345Z Program.cs(25,19): warning S1854: Remove this useless assignment to local variable 'R'. [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:10:33.6248345Z Program.cs(25,17): warning SA1312: Variable 'R' must begin with lower-case letter [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:10:33.6248345Z
2018-02-21T09:10:33.6248345Z 4 Warning(s)
2018-02-21T09:10:33.6248345Z 0 Error(s)
With sonarqube
HEAD is now at 6127589... add vs warning
2018-02-21T09:04:06.7690499Z ##[command]git submodule sync
2018-02-21T09:04:08.9106292Z ##[command]git -c http.http://vd-tfs1:8080.extraheader="AUTHORIZATION: bearer ********" submodule update --init --force
2018-02-21T09:04:11.2075427Z ##[command]git config http.http://vd-tfs1:8080/tfs/Product%20Development/Cortex/_git/TestAnalysers.extraheader "AUTHORIZATION: bearer ********"
2018-02-21T09:04:11.3482062Z ##[section]Finishing: Get Sources
2018-02-21T09:04:11.3794553Z ##[section]Starting: Use NuGet >=4.5.0
2018-02-21T09:04:11.4107101Z ==============================================================================
2018-02-21T09:04:11.4107101Z Task : NuGet Tool Installer
2018-02-21T09:04:11.4107101Z Description : Acquires a specific version of NuGet from the internet or the tools cache and adds it to the PATH. Use this step to change the version of NuGet used in the NuGet Restore and NuGet Command steps.
2018-02-21T09:04:11.4107101Z Version : 0.1.1
2018-02-21T09:04:11.4107101Z Author : Microsoft Corporation
2018-02-21T09:04:11.4107101Z Help :
2018-02-21T09:04:11.4107101Z ==============================================================================
2018-02-21T09:04:12.2857028Z You are using a query match on the version string. Behavior changes or breaking changes might occur as NuGet updates to a new version.
2018-02-21T09:04:12.8013801Z Found tool in cache: NuGet 4.5.1 x64
2018-02-21T09:04:12.8013801Z Using version: 4.5.1
2018-02-21T09:04:12.8013801Z Found tool in cache: NuGet 4.5.1 x64
2018-02-21T09:04:12.8013801Z Using tool path: C:\agent\_work\_tool\NuGet\4.5.1\x64
2018-02-21T09:04:12.8013801Z Prepending PATH environment variable with directory: C:\agent\_work\_tool\NuGet\4.5.1\x64
2018-02-21T09:04:12.8171914Z ##[section]Finishing: Use NuGet >=4.5.0
2018-02-21T09:04:12.8325945Z ##[section]Starting: NuGet restore **\*.sln
2018-02-21T09:04:12.8325945Z ==============================================================================
2018-02-21T09:04:12.8325945Z Task : NuGet Restore
2018-02-21T09:04:12.8325945Z Description : Restores NuGet packages in preparation for a Visual Studio Build step.
2018-02-21T09:04:12.8325945Z Version : 1.0.1
2018-02-21T09:04:12.8325945Z Author : Microsoft Corporation
2018-02-21T09:04:12.8325945Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613747)
2018-02-21T09:04:12.8325945Z ==============================================================================
2018-02-21T09:04:14.1295390Z [command]C:\Windows\system32\chcp.com 65001
2018-02-21T09:04:14.1451652Z Active code page: 65001
2018-02-21T09:04:15.2858296Z Detected NuGet version 4.5.1.4879 / 4.5.1
2018-02-21T09:04:15.2858296Z SYSTEMVSSCONNECTION exists true
2018-02-21T09:04:15.3483359Z save nuget.config to temp config file
2018-02-21T09:04:15.3483359Z Preparing to set credentials in NuGet.config
2018-02-21T09:04:15.3639238Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe sources Remove -NonInteractive -Name a42a2a68-7ce1-43e3-a185-b145462e9d85 -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35972.config
2018-02-21T09:04:16.3327424Z Unable to find any package source(s) matching name: a42a2a68-7ce1-43e3-a185-b145462e9d85.
2018-02-21T09:04:16.3327424Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe sources Remove -NonInteractive -Name NuGetOrg -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35972.config
2018-02-21T09:04:17.2390256Z Unable to find any package source(s) matching name: NuGetOrg.
2018-02-21T09:04:17.2390256Z Setting credentials in NuGet.config
2018-02-21T09:04:17.2390256Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe sources Add -NonInteractive -Name a42a2a68-7ce1-43e3-a185-b145462e9d85 -Source http://vd-tfs1:8080/tfs/Product%20Development/_packaging/a42a2a68-7ce1-43e3-a185-b145462e9d85/nuget/v3/index.json -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35972.config
2018-02-21T09:04:18.1609489Z Package Source with Name: a42a2a68-7ce1-43e3-a185-b145462e9d85 added successfully.
2018-02-21T09:04:18.1609489Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe sources Add -NonInteractive -Name NuGetOrg -Source https://api.nuget.org/v3/index.json -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35972.config
2018-02-21T09:04:19.1609530Z Package Source with Name: NuGetOrg added successfully.
2018-02-21T09:04:19.1609530Z [command]C:\agent\_work\_tool\NuGet\4.5.1\x64\nuget.exe restore C:\agent\_work\24\s\ConsoleApp1.sln -NonInteractive -ConfigFile C:\agent\_work\24\Nuget\tempNuGet_35972.config
2018-02-21T09:04:20.1140642Z MSBuild auto-detection: using msbuild version '15.5.180.51428' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin'.
2018-02-21T09:04:22.5672895Z Restoring packages for C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj...
2018-02-21T09:04:23.6454065Z Committing restore...
2018-02-21T09:04:23.6610316Z Generating MSBuild file C:\agent\_work\24\s\ConsoleApp1\obj\ConsoleApp1.csproj.nuget.g.props.
2018-02-21T09:04:23.6766885Z Generating MSBuild file C:\agent\_work\24\s\ConsoleApp1\obj\ConsoleApp1.csproj.nuget.g.targets.
2018-02-21T09:04:23.6766885Z Writing lock file to disk. Path: C:\agent\_work\24\s\ConsoleApp1\obj\project.assets.json
2018-02-21T09:04:23.7547847Z Restore completed in 1.16 sec for C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj.
2018-02-21T09:04:23.7704101Z
2018-02-21T09:04:23.7704101Z NuGet Config files used:
2018-02-21T09:04:23.7704101Z C:\agent\_work\24\Nuget\tempNuGet_35972.config
2018-02-21T09:04:23.7704101Z
2018-02-21T09:04:23.7704101Z Feeds used:
2018-02-21T09:04:23.7704101Z http://vd-tfs1:8080/tfs/Product%20Development/_packaging/a42a2a68-7ce1-43e3-a185-b145462e9d85/nuget/v3/index.json
2018-02-21T09:04:23.7704101Z https://api.nuget.org/v3/index.json
2018-02-21T09:04:23.8329087Z ##[section]Finishing: NuGet restore **\*.sln
2018-02-21T09:04:23.8954128Z ##[section]Starting: Run C:\sonar-scanner\SonarQube.Scanner.MSBuild.exe
2018-02-21T09:04:23.8954128Z ==============================================================================
2018-02-21T09:04:23.8954128Z Task : Command Line
2018-02-21T09:04:23.8954128Z Description : Run a command line with arguments
2018-02-21T09:04:23.8954128Z Version : 1.1.3
2018-02-21T09:04:23.8954128Z Author : Microsoft Corporation
2018-02-21T09:04:23.8954128Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
2018-02-21T09:04:23.8954128Z ==============================================================================
2018-02-21T09:04:23.9267012Z ##[command]C:\sonar-scanner\SonarQube.Scanner.MSBuild.exe begin /k:"TestAnalysers-master" /n:"TestAnalysers-master" /v:"V7"
2018-02-21T09:04:24.0829172Z SonarQube Scanner for MSBuild 4.0.2
2018-02-21T09:04:24.1610441Z Default properties file was found at C:\sonar-scanner\SonarQube.Analysis.xml
2018-02-21T09:04:24.1610441Z Loading analysis properties from C:\sonar-scanner\SonarQube.Analysis.xml
2018-02-21T09:04:24.1610441Z Pre-processing started.
2018-02-21T09:04:24.1610441Z Preparing working directories...
2018-02-21T09:04:24.2079193Z 09:04:24.192 Updating build integration targets...
2018-02-21T09:04:24.2235806Z 09:04:24.223 Fetching analysis configuration settings...
2018-02-21T09:04:24.7727569Z 09:04:24.772 Provisioning analyzer assemblies for cs...
2018-02-21T09:04:24.7883824Z 09:04:24.788 Installing required Roslyn analyzers...
2018-02-21T09:04:25.5384357Z 09:04:25.538 Pre-processing succeeded.
2018-02-21T09:04:25.5540260Z ##[section]Finishing: Run C:\sonar-scanner\SonarQube.Scanner.MSBuild.exe
2018-02-21T09:04:25.5696855Z ##[section]Starting: Build solution **\*.sln
2018-02-21T09:04:25.5696855Z ==============================================================================
2018-02-21T09:04:25.5696855Z Task : Visual Studio Build
2018-02-21T09:04:25.5696855Z Description : Build with MSBuild and set the Visual Studio version property
2018-02-21T09:04:25.5696855Z Version : 1.119.0
2018-02-21T09:04:25.5696855Z Author : Microsoft Corporation
2018-02-21T09:04:25.5696855Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613727)
2018-02-21T09:04:25.5696855Z ==============================================================================
2018-02-21T09:04:28.8509870Z ##[command]"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -latest -format json
2018-02-21T09:04:29.6478808Z ##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" "C:\agent\_work\24\s\ConsoleApp1.sln" /nologo /nr:false /fl /flp:"logfile=C:\agent\_work\24\s\ConsoleApp1.sln.log" /dl:CentralLogger,"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=c29118c4-79c1-4b98-94fb-1f017eb6aa61|SolutionDir=C:\agent\_work\24\s"*ForwardingLogger,"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:AppxBundlePlatforms="x86|x64|ARM" /p:AppxPackageDir="C:\agent\_work\24\a\AppxPackages\\" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload /p:configuration="Debug" /p:VisualStudioVersion="15.0" /p:_MSDeployUserAgent="TFS_f552431a-10fc-454a-afb4-a27665914eda_build_188_35972"
2018-02-21T09:04:29.7885472Z Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
2018-02-21T09:04:29.8822627Z Build started 21/02/2018 09:04:29.
2018-02-21T09:04:30.2103957Z Project "C:\agent\_work\24\s\ConsoleApp1.sln" on node 1 (default targets).
2018-02-21T09:04:30.2103957Z ValidateSolutionConfiguration:
2018-02-21T09:04:30.2103957Z Building solution configuration "Debug|Any CPU".
2018-02-21T09:04:30.6635677Z Project "C:\agent\_work\24\s\ConsoleApp1.sln" (1) is building "C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj" (2) on node 1 (default targets).
2018-02-21T09:04:30.6635677Z PrepareForBuild:
2018-02-21T09:04:30.6635677Z Creating directory "bin\Debug\netcoreapp2.0\".
2018-02-21T09:04:30.6635677Z Creating directory "obj\Debug\netcoreapp2.0\".
2018-02-21T09:04:32.1010692Z CreateProjectSpecificDirs:
2018-02-21T09:04:32.1010692Z Creating directory "C:\agent\_work\24\.sonarqube\conf\0".
2018-02-21T09:04:32.2104800Z CoreCompile:
2018-02-21T09:04:32.2104800Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1705,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /doc:bin\Debug\netcoreapp2.0\ConsoleApp1.xml /define:TRACE;DEBUG;NETCOREAPP2_0 /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.CSharp.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.VisualBasic.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.Win32.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\mscorlib.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\netstandard.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.AppContext.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Buffers.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Concurrent.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Immutable.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.NonGeneric.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Specialized.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Annotations.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Composition.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.DataAnnotations.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.EventBasedAsync.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.TypeConverter.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Configuration.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Console.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Core.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Data.Common.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Data.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Contracts.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Debug.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.DiagnosticSource.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.FileVersionInfo.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Process.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.StackTrace.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.TextWriterTraceListener.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Tools.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.TraceSource.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Tracing.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Drawing.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Drawing.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Dynamic.Runtime.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.Calendars.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.FileSystem.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.ZipFile.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.DriveInfo.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.Watcher.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.IsolatedStorage.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.MemoryMappedFiles.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Pipes.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.UnmanagedMemoryStream.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Expressions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Parallel.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Queryable.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Http.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.HttpListener.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Mail.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.NameResolution.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.NetworkInformation.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Ping.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Requests.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Security.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.ServicePoint.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Sockets.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebClient.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebHeaderCollection.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebProxy.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebSockets.Client.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebSockets.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Numerics.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Numerics.Vectors.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ObjectModel.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.DispatchProxy.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.ILGeneration.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.Lightweight.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Metadata.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.TypeExtensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.Reader.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.ResourceManager.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.Writer.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.CompilerServices.VisualC.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Handles.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.RuntimeInformation.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.WindowsRuntime.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Loader.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Numerics.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Formatters.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Json.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Xml.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Claims.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Algorithms.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Csp.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Encoding.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Primitives.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.X509Certificates.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Principal.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.SecureString.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ServiceModel.Web.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ServiceProcess.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.Encoding.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.Encoding.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.RegularExpressions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Overlapped.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Dataflow.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Extensions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Parallel.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Thread.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.ThreadPool.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Timer.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Transactions.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Transactions.Local.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ValueTuple.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Web.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Web.HttpUtility.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Windows.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.Linq.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.ReaderWriter.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.Serialization.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XDocument.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XmlDocument.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XmlSerializer.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XPath.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XPath.XDocument.dll /reference:C:\Users\INNOVISE_TFS_BUILD\.nuget\packages\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\WindowsBase.dll /debug+ /debug:portable /filealign:512 /nologo /optimize- /out:obj\Debug\netcoreapp2.0\ConsoleApp1.dll /ruleset:C:\agent\_work\24\.sonarqube\conf\SonarQubeRoslyn-cs.ruleset /errorlog:C:\agent\_work\24\s\ConsoleApp1\bin\Debug\netcoreapp2.0\ConsoleApp1.dll.RoslynCA.json /target:exe /warnaserror- /utf8output /deterministic+ /analyzer:C:\agent\_work\_temp\.sonarqube\resources\0\analyzers\dotnet\cs\CodeCracker.Common.dll /analyzer:C:\agent\_work\_temp\.sonarqube\resources\0\analyzers\dotnet\cs\CodeCracker.CSharp.dll /analyzer:C:\agent\_work\_temp\.sonarqube\resources\1\Google.Protobuf.dll /analyzer:C:\agent\_work\_temp\.sonarqube\resources\1\SonarAnalyzer.CSharp.dll /analyzer:C:\agent\_work\_temp\.sonarqube\resources\1\SonarAnalyzer.dll /additionalfile:C:\agent\_work\24\.sonarqube\conf\cs\SonarLint.xml /additionalfile:C:\agent\_work\24\.sonarqube\conf\0\ProjectOutFolderPath.txt Program.cs "C:\agent\_work\_temp\.NETCoreApp,Version=v2.0.AssemblyAttributes.cs" obj\Debug\netcoreapp2.0\ConsoleApp1.AssemblyInfo.cs
2018-02-21T09:04:32.2416997Z Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
2018-02-21T09:04:36.0074201Z ##[warning]ConsoleApp1\Program.cs(27,13): Warning CS0162: Unreachable code detected
2018-02-21T09:04:36.0074201Z Program.cs(27,13): warning CS0162: Unreachable code detected [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:04:36.0074201Z ##[warning]ConsoleApp1\Program.cs(25,13): Warning CC0030: This variables can be made const.
2018-02-21T09:04:36.0074201Z Program.cs(25,13): warning CC0030: This variables can be made const. [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:04:36.0074201Z ##[warning]ConsoleApp1\Program.cs(25,19): Warning S1854: Remove this useless assignment to local variable 'R'.
2018-02-21T09:04:36.0074201Z Program.cs(25,19): warning S1854: Remove this useless assignment to local variable 'R'. [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:04:36.4605682Z CopyFilesToOutputDirectory:
2018-02-21T09:04:36.4605682Z Copying file from "obj\Debug\netcoreapp2.0\ConsoleApp1.dll" to "bin\Debug\netcoreapp2.0\ConsoleApp1.dll".
2018-02-21T09:04:36.4918412Z ConsoleApp1 -> C:\agent\_work\24\s\ConsoleApp1\bin\Debug\netcoreapp2.0\ConsoleApp1.dll
2018-02-21T09:04:36.4918412Z Copying file from "obj\Debug\netcoreapp2.0\ConsoleApp1.pdb" to "bin\Debug\netcoreapp2.0\ConsoleApp1.pdb".
2018-02-21T09:04:36.5855902Z CleanupEmptyRefsFolder:
2018-02-21T09:04:36.5855902Z Directory "C:\agent\_work\24\s\ConsoleApp1\bin\Debug\netcoreapp2.0\refs" doesn't exist. Skipping.
2018-02-21T09:04:36.5855902Z Done Building Project "C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj" (default targets).
2018-02-21T09:04:36.5855902Z Done Building Project "C:\agent\_work\24\s\ConsoleApp1.sln" (default targets).
2018-02-21T09:04:36.6011842Z
2018-02-21T09:04:36.6011842Z Build succeeded.
2018-02-21T09:04:36.6011842Z
2018-02-21T09:04:36.6011842Z "C:\agent\_work\24\s\ConsoleApp1.sln" (default target) (1) ->
2018-02-21T09:04:36.6011842Z "C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj" (default target) (2) ->
2018-02-21T09:04:36.6011842Z (CoreCompile target) ->
2018-02-21T09:04:36.6011842Z Program.cs(27,13): warning CS0162: Unreachable code detected [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:04:36.6011842Z Program.cs(25,13): warning CC0030: This variables can be made const. [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:04:36.6011842Z Program.cs(25,19): warning S1854: Remove this useless assignment to local variable 'R'. [C:\agent\_work\24\s\ConsoleApp1\ConsoleApp1.csproj]
2018-02-21T09:04:36.6011842Z
2018-02-21T09:04:36.6011842Z 3 Warning(s)
2018-02-21T09:04:36.6011842Z 0 Error(s)
Can we close this as a bug of either SonarQube or TFS? I don't use either of these tools so I don't think I'll be much help here.
Ok thanks I now suspect it is sonarqube will report it to them
I have created a test project that contains both stylecop and sonarqube analysers. It contains a stylecop warning and a sonarqube warning. When I build it from visual studio or the command line both warnings are shown but when built as part of the build only the sonarqube warning is shown.
From the build log
If exactly the same msbuild command taken from the build log is run on the build machine manually in a command window
I have attached the test project. TestAnalysers.zip