Skip to content

Commit 7af574f

Browse files
committed
Dotnet update to 9
1 parent 2989143 commit 7af574f

File tree

11 files changed

+50
-55
lines changed

11 files changed

+50
-55
lines changed

Diff for: src/BinSkim.Driver/BinSkim.Driver.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<AssemblyName>BinSkim</AssemblyName>
66
<!-- Condition="'$(OS)'=='Windows_NT'" -->
7-
<TargetFrameworks>$(NetCoreVersion)</TargetFrameworks>
7+
<TargetFrameworks>net9.0</TargetFrameworks>
88
<TargetLatestRuntimePatch>True</TargetLatestRuntimePatch>
99
<OutputType>Exe</OutputType>
1010
<Platforms>x64</Platforms>

Diff for: src/BinSkim.Rules/BinSkim.Rules.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.netcore.props))\build.netcore.props" />
44
<PropertyGroup>
55
<RootNamespace>Microsoft.CodeAnalysis.IL.Rules</RootNamespace>
6-
<TargetFramework>$(NetStandardVersion)</TargetFramework>
6+
<TargetFramework>net9.0</TargetFramework>
77
<Platforms>x64</Platforms>
88
</PropertyGroup>
99
<ItemGroup>

Diff for: src/BinSkim.Sdk/BinSkim.Sdk.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.netcore.props))\build.netcore.props" />
44
<PropertyGroup>
55
<RootNamespace>Microsoft.CodeAnalysis.IL.Sdk</RootNamespace>
6-
<TargetFramework>$(NetStandardVersion)</TargetFramework>
6+
<TargetFramework>net9.0</TargetFramework>
77
<Platforms>x64</Platforms>
88
</PropertyGroup>
99
<ItemGroup>

Diff for: src/BinaryParsers/BinaryParsers.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.netcore.props))\build.netcore.props" />
44
<PropertyGroup>
55
<RootNamespace>Microsoft.CodeAnalysis.BinaryParsers</RootNamespace>
6-
<TargetFramework>$(NetStandardVersion)</TargetFramework>
6+
<TargetFramework>net9.0</TargetFramework>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88
<Platforms>x64</Platforms>
99
</PropertyGroup>

Diff for: src/BinaryParsers/VersionConstants.cs

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT
22
// license. See LICENSE file in the project root for full license information.
3-
namespace Microsoft.CodeAnalysis.IL
4-
{
5-
public static class VersionConstants
6-
{
7-
public const string Prerelease = "";
8-
public const string AssemblyVersion = "4.3.1" + ".0";
9-
public const string FileVersion = "4.3.1" + ".0";
10-
public const string Version = AssemblyVersion + Prerelease;
11-
}
12-
}
3+
namespace Microsoft.CodeAnalysis.IL
4+
{
5+
public static class VersionConstants
6+
{
7+
public const string Prerelease = "";
8+
public const string AssemblyVersion = "4.3.1" + ".0";
9+
public const string FileVersion = "4.3.1" + ".0";
10+
public const string Version = AssemblyVersion + Prerelease;
11+
}
12+
}
+31-36
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,35 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>netcoreapp3.1</TargetFramework>
4-
<CoyoteVersion>1.7.9</CoyoteVersion>
5-
<PowershellExecutable Condition="'$(OS)'=='Windows_NT'">powershell</PowershellExecutable>
6-
<PowershellExecutable Condition="'$(PowershellExecutable)'==''">pwsh</PowershellExecutable>
7-
<PathSeparator Condition="'$(OS)'=='Windows_NT'">\</PathSeparator>
8-
<PathSeparator Condition="'$(OS)'!='Windows_NT'">/</PathSeparator>
4+
<CoyoteVersion>1.7.9</CoyoteVersion>
5+
<PowershellExecutable Condition="'$(OS)'=='Windows_NT'">powershell</PowershellExecutable>
6+
<PowershellExecutable Condition="'$(PowershellExecutable)'==''">pwsh</PowershellExecutable>
7+
<PathSeparator Condition="'$(OS)'=='Windows_NT'">\</PathSeparator>
8+
<PathSeparator Condition="'$(OS)'!='Windows_NT'">/</PathSeparator>
99
</PropertyGroup>
10-
11-
<PropertyGroup>
12-
<ExecCommand>$(PowershellExecutable) -executionpolicy bypass -command ".$(PathSeparator)rewriteUnitTests.ps1 -Configuration $(Configuration) -CoyoteVersion $(CoyoteVersion) -TargetFramework $(TargetFramework)"</ExecCommand>
13-
</PropertyGroup>
14-
15-
<ItemGroup>
16-
<PackageReference Include="Microsoft.Coyote" Version="$(CoyoteVersion)" />
17-
<PackageReference Include="Microsoft.Coyote.Test" Version="$(CoyoteVersion)" />
18-
<PackageReference Include="Microsoft.Coyote.Tool" Version="$(CoyoteVersion)" />
19-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
20-
<PackageReference Include="MSTest.TestAdapter" Version="3.0.4" />
21-
<PackageReference Include="MSTest.TestFramework" Version="3.0.4" />
22-
</ItemGroup>
23-
24-
<ItemGroup>
25-
<None Update="rewrite.coyote.Windows.Debug.json">
26-
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
27-
</None>
28-
<None Update="rewrite.coyote.Windows.Release.json">
29-
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
30-
</None>
31-
<None Update="rewriteUnitTests.ps1">
32-
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
33-
</None>
34-
</ItemGroup>
35-
36-
<Target Name="CoyoteRewriting" AfterTargets="AfterBuild" Condition=" '$(TargetFramework)'=='netcoreapp3.1' And '$(OS)'=='Windows_NT' ">
37-
<Exec Command="$(ExecCommand)" />
38-
</Target>
39-
40-
</Project>
10+
<PropertyGroup>
11+
<ExecCommand>$(PowershellExecutable) -executionpolicy bypass -command ".$(PathSeparator)rewriteUnitTests.ps1 -Configuration $(Configuration) -CoyoteVersion $(CoyoteVersion) -TargetFramework $(TargetFramework)"</ExecCommand>
12+
</PropertyGroup>
13+
<ItemGroup>
14+
<PackageReference Include="Microsoft.Coyote" />
15+
<PackageReference Include="Microsoft.Coyote.Test" />
16+
<PackageReference Include="Microsoft.Coyote.Tool" />
17+
<PackageReference Include="Microsoft.NET.Test.Sdk" />
18+
<PackageReference Include="MSTest.TestAdapter" />
19+
<PackageReference Include="MSTest.TestFramework" />
20+
</ItemGroup>
21+
<ItemGroup>
22+
<None Update="rewrite.coyote.Windows.Debug.json">
23+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
24+
</None>
25+
<None Update="rewrite.coyote.Windows.Release.json">
26+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
27+
</None>
28+
<None Update="rewriteUnitTests.ps1">
29+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
30+
</None>
31+
</ItemGroup>
32+
<Target Name="CoyoteRewriting" AfterTargets="AfterBuild" Condition=" '$(TargetFramework)'=='netcoreapp3.1' And '$(OS)'=='Windows_NT' ">
33+
<Exec Command="$(ExecCommand)" />
34+
</Target>
35+
</Project>

Diff for: src/Test.FunctionalTests.BinSkim.Driver/Test.FunctionalTests.BinSkim.Driver.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.netcore.props))\build.netcore.props" />
44
<PropertyGroup>
5-
<TargetFrameworks>$(NetCoreVersion)</TargetFrameworks>
5+
<TargetFrameworks>net9.0</TargetFrameworks>
66
<OutputType>Library</OutputType>
77
<TargetLatestRuntimePatch>True</TargetLatestRuntimePatch>
88
<Platforms>x64</Platforms>

Diff for: src/Test.FunctionalTests.BinSkim.Rules/Test.FunctionalTests.BinSkim.Rules.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.netcore.props))\build.netcore.props" />
44
<Import Project="..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props')" />
55
<PropertyGroup>
6-
<TargetFrameworks>$(NetCoreVersion)</TargetFrameworks>
6+
<TargetFrameworks>net9.0</TargetFrameworks>
77
<OutputType>Library</OutputType>
88
<TargetLatestRuntimePatch>True</TargetLatestRuntimePatch>
99
<Platforms>x64</Platforms>

Diff for: src/Test.UnitTests.BinSkim.Driver/Test.UnitTests.BinSkim.Driver.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Import Project="..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props')" />
55
<PropertyGroup>
66
<RootNamespace>Microsoft.CodeAnalysis.BinSkim.Rules</RootNamespace>
7-
<TargetFrameworks>$(NetCoreVersion)</TargetFrameworks>
7+
<TargetFrameworks>net9.0</TargetFrameworks>
88
<OutputType>Library</OutputType>
99
<TargetLatestRuntimePatch>True</TargetLatestRuntimePatch>
1010
<Platforms>x64</Platforms>

Diff for: src/Test.UnitTests.BinSkim.Rules/Test.UnitTests.BinSkim.Rules.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Import Project="..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props')" />
55
<PropertyGroup>
66
<RootNamespace>Microsoft.CodeAnalysis.BinSkim.Rules</RootNamespace>
7-
<TargetFrameworks>$(NetCoreVersion)</TargetFrameworks>
7+
<TargetFrameworks>net9.0</TargetFrameworks>
88
<OutputType>Library</OutputType>
99
<TargetLatestRuntimePatch>True</TargetLatestRuntimePatch>
1010
<Platforms>x64</Platforms>

Diff for: src/Test.UnitTests.BinaryParsers/Test.UnitTests.BinaryParsers.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Import Project="..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props')" />
55
<PropertyGroup>
66
<RootNamespace>Microsoft.CodeAnalysis.BinaryParsers</RootNamespace>
7-
<TargetFrameworks>$(NetCoreVersion)</TargetFrameworks>
7+
<TargetFrameworks>net9.0</TargetFrameworks>
88
<OutputType>Library</OutputType>
99
<TargetLatestRuntimePatch>True</TargetLatestRuntimePatch>
1010
<Platforms>x64</Platforms>

0 commit comments

Comments
 (0)