Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ReleaseHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ Each release entry below is prefixed with one of:

Entries are terse by design: one line per change, present-tense behavior, complete but only essential data. No issue/PR archaeology or narrative — that history lives in the engineering system.

## **v5.9.0** [Sdk](https://www.nuget.org/packages/Sarif.Sdk/v5.9.0) | [Driver](https://www.nuget.org/packages/Sarif.Driver/v5.9.0) | [Converters](https://www.nuget.org/packages/Sarif.Converters/v5.9.0) | [Multitool](https://www.nuget.org/packages/Sarif.Multitool/v5.9.0) | [Multitool Library](https://www.nuget.org/packages/Sarif.Multitool.Library/v5.9.0)
## **UNRELEASED**
* BRK: `Sarif.Multitool` targets .NET 10 instead of .NET 8; .NET tool users must install the .NET 10 runtime.
* BRK: `Sarif.Driver`, `Sarif.Multitool.Library`, `Sarif.WorkItems`, and `Microsoft.WorkItems` replace their `net461` assets with `net462`; consumers of those assets must target .NET Framework 4.6.2 or later.
* NEW: `Sarif.Sdk`, `Sarif.Converters`, `Sarif.Driver`, `Sarif.Multitool.Library`, `Sarif.WorkItems`, `Microsoft.WorkItems`, and `Sarif.Multitool` add `net472` targets.

## **v5.9.0** [Sdk](https://www.nuget.org/packages/Sarif.Sdk/v5.9.0) | [Driver](https://www.nuget.org/packages/Sarif.Driver/v5.9.0) | [Converters](https://www.nuget.org/packages/Sarif.Converters/v5.9.0) | [Multitool](https://www.nuget.org/packages/Sarif.Multitool/v5.9.0) | [Multitool Library](https://www.nuget.org/packages/Sarif.Multitool.Library/v5.9.0)
* NEW: `SarifJson` and `ResultLogWriter` expose SARIF serialization, errors, prerelease conversion, and streaming without requiring callers to reference Newtonsoft.Json types.
* BUG: `GHAzDO1016.ProvideRequiredLocationProperties` and `GH1016.ProvideRequiredLocationProperties` report locations missing `physicalLocation` during validation.
* BUG: `GHAzDO1017.ProvideRequiredPhysicalLocationProperties` enforces required `artifactLocation` and `region` properties and region consistency checks.
Expand Down
16 changes: 3 additions & 13 deletions scripts/Projects.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,13 @@
$Frameworks = @{}

# .NET Framework versions for which we build.
# net462 is this minimal support .NET framework. We allow linkage
# to net461 for compatibility reasons.
# and any upstream consumer of them.
$Frameworks.NetFx = @("net461")
$Frameworks.NetFx = @("net462", "net472")

# Frameworks for which we build libraries.
$Frameworks.Library = @("netstandard2.0") + $Frameworks.NetFx

# net462 is the current minimum supported .NET
# framework, so we use it for all client tools.
# it is fine to support a down-level, unsupported
# .NET framework for a library, because the client
# app can then control timing for updating to a more
# current .NET framework. When we control the app
# we will require the minimal supported version to
# ensure that the runtime we are executing on is secure.
$Frameworks.ApplicationNetFx = @("net462")
# net462 is the current minimum supported .NET framework for client tools.
$Frameworks.ApplicationNetFx = @("net462", "net472")

# Frameworks for which we build applications.
$Frameworks.Application = @("net10.0") + $Frameworks.ApplicationNetFx
Expand Down
10 changes: 8 additions & 2 deletions src/Nuget/Sarif.Multitool.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@
exclude="bld\bin\$platform$_$configuration$\Sarif.Multitool\Publish\net462\Sarif*;bld\bin\$platform$_$configuration$\Sarif.Multitool\Publish\net462\WorkItems.dll;" />
<file src="bld\bin\Signing\net462\**"
target="tools\net462" />
<file src="bld\bin\Signing\net461\**"
target="tools\net462" />

<file src="bld\bin\$platform$_$configuration$\Sarif.Multitool\Publish\net472\Sarif.Multitool.exe.config"
target="tools\net472" />
<file src="bld\bin\$platform$_$configuration$\Sarif.Multitool\Publish\net472\**"
target="tools\net472"
exclude="bld\bin\$platform$_$configuration$\Sarif.Multitool\Publish\net472\Sarif*;bld\bin\$platform$_$configuration$\Sarif.Multitool\Publish\net472\WorkItems.dll;" />
<file src="bld\bin\Signing\net472\**"
target="tools\net472" />

<!-- net10.0 packs to tools\TargetFramework\any\* for compatibility with dotnet tool install -->
<file src="bld\bin\$platform$_$configuration$\Sarif.Multitool\Publish\net10.0\**"
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif.Converters/Sarif.Converters.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462;net472</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/Sarif.Driver/Sarif.Driver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net461</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462;net472</TargetFrameworks>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>

Expand Down Expand Up @@ -50,6 +50,7 @@
</ItemGroup>

<ItemGroup>
<Reference Condition="'$(TargetFramework)' == 'net45'" Include="System.Net.Http" />
<Reference Condition="'$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'net472'" Include="System.Net.Http" />
<Reference Condition="'$(TargetFramework)' == 'net472'" Include="System.IO.Compression" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/Sarif.Multitool.Library/Sarif.Multitool.Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0;</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net461</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462;net472</TargetFrameworks>
<RootNamespace>Microsoft.CodeAnalysis.Sarif.Multitool</RootNamespace>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>
Expand Down Expand Up @@ -69,7 +69,7 @@
</ItemGroup>

<ItemGroup>
<None Include="default.configuration.xml" Pack="true" PackagePath="lib/netstandard2.0;lib/net461" CopyToOutputDirectory="PreserveNewest" />
<None Include="default.configuration.xml" Pack="true" PackagePath="lib/netstandard2.0;lib/net462;lib/net472" CopyToOutputDirectory="PreserveNewest" />
<None Include="..\..\policies\*" Pack="true" PackagePath="policies" />
<None Include="**\*.cs" Pack="true" PackagePath="src" />
<None Include="..\..\ReleaseHistory.md" Pack="true" PackagePath="/" />
Expand Down
4 changes: 2 additions & 2 deletions src/Sarif.Multitool/Sarif.Multitool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
<PropertyGroup>
<TargetFrameworks>net10.0</TargetFrameworks>
<!-- net462 is the current minimal supported .NET framework. -->
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462;net472</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" />
<PackageReference Include="System.Private.Uri" Condition="'$(TargetFramework)' == 'net462'" />
<PackageReference Include="System.Private.Uri" Condition="'$(TargetFramework)' == 'net462' Or '$(TargetFramework)' == 'net472'" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Sarif.WorkItems/Sarif.WorkItems.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net461</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462;net472</TargetFrameworks>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>

Expand Down
4 changes: 3 additions & 1 deletion src/Sarif/Sarif.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462;net472</TargetFrameworks>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

Expand All @@ -44,6 +44,8 @@

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Reference Include="System.Web" />
<Reference Include="System.IO.Compression" Condition="'$(TargetFramework)' == 'net472'" />
<Reference Include="System.Net.Http" Condition="'$(TargetFramework)' == 'net472'" />
</ItemGroup>

<ItemGroup Label="Packaging">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

namespace Microsoft.CodeAnalysis.Sarif.Driver
{
[Collection("TestsUsingDriverExceptionInjection")]
public class MultithreadedAnalyzeCommandBaseAsyncTests
{
private const int FAILURE = CommandBase.FAILURE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

namespace Microsoft.CodeAnalysis.Sarif.Driver
{
[Collection("TestsUsingDriverExceptionInjection")]
public class MultithreadedAnalyzeCommandBaseTests
{
private const int FAILURE = CommandBase.FAILURE;
Expand Down Expand Up @@ -989,14 +990,19 @@ public void ExceptionRaisedInEngine()
TargetFileSpecifiers = new string[] { GetThisTestAssemblyFilePath() },
};

TestMultithreadedAnalyzeCommand.RaiseUnhandledExceptionInDriverCode = true;

ExceptionTestHelper(
RuntimeConditions.ExceptionInEngine,
ExitReason.UnhandledExceptionInEngine,
analyzeOptions: options);
try
{
TestMultithreadedAnalyzeCommand.RaiseUnhandledExceptionInDriverCode = true;

TestMultithreadedAnalyzeCommand.RaiseUnhandledExceptionInDriverCode = false;
ExceptionTestHelper(
RuntimeConditions.ExceptionInEngine,
ExitReason.UnhandledExceptionInEngine,
analyzeOptions: options);
}
finally
{
TestMultithreadedAnalyzeCommand.RaiseUnhandledExceptionInDriverCode = false;
}
}

[Fact]
Expand Down
3 changes: 1 addition & 2 deletions src/WorkItems/WorkItems.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<!-- We require 461 as a minimal framework due to dependency such as Microsoft.Extensions.Logging.Console -->
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net461</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462;net472</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading