microsoft / sarif-sdk

.NET code and supporting files for working with the 'Static Analysis Results Interchange Format' (SARIF, see https://github.com/oasis-tcs/sarif-spec)
Other
193 stars 91 forks source link

Fix SPMI dotnet publish package version conflict errors by explicitly adding related package. #2785

Closed yongyan-gh closed 7 months ago

yongyan-gh commented 7 months ago

Description:

In order to build a standalone self-contained .net6.0 application, these build errors need to be resolved.

The similar fixes already made in sarif.csproj (https://github.com/microsoft/sarif-sdk/pull/2765/files)

C:\Repos\1ES\SpmiNew1\src\sarif-sdk\src\Sarif.Driver\Sarif.Driver.csproj : error NU1605: Warning As Error: Dete
cted package downgrade: System.Diagnostics.Debug from 4.3.0 to 4.0.11. Reference the package directly from the
project to select a different version.  [C:\Repos\1ES\SpmiNew1\src\Sarif.PatternMatcher.Cli\Sarif.PatternMatche
r.Cli.csproj]
...
C:\Repos\1ES\SpmiNew1\src\sarif-sdk\src\Sarif.Driver\Sarif.Driver.csproj : error NU1605: Warning As Error: Dete
cted package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1. Reference the package directly fro
m the project to select a different version.  [C:\Repos\1ES\SpmiNew1\src\Sarif.PatternMatcher.Cli\Sarif.Pattern
Matcher.Cli.csproj]
...
C:\Repos\1ES\SpmiNew1\src\sarif-sdk\src\Sarif.Driver\Sarif.Driver.csproj : error NU1605: Warning As Error: Dete
cted package downgrade: System.Text.Encoding.Extensions from 4.3.0 to 4.0.11. Reference the package directly fr
om the project to select a different version.  [C:\Repos\1ES\SpmiNew1\src\Sarif.PatternMatcher.Cli\Sarif.Patter
nMatcher.Cli.csproj]
...