-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+semver:minor - Add .NET Standard 2.0 target (#1436)
* Add .NET Standard 2.0 target * .NET Framework Pipeline * Fixes * Tidy * Tidy backport locks * Fix * Fix * IsLibraryPackage * Backport lock fix * Fix * Compilation fixes * Fixes * Source Gen tweaks * Fixes * Fixes * Fixes * Fixes * Fix * Fixes * Fixes * ContainingNamespace * Fixes * Fixes * More net472 * IsLibraryTestProject * Remove reference * Fix * Rework props * MSBuildThisFileDirectory * Fixes * Fix * Fix * Fixes * Tidy * WIP * Compilation fixes * Compilation fixes * Trim on .NET 8 upwards * Fix * Fixes * Skip * Environment.GetEnvironmentVariable("NET_VERSION") * Fixes * Fix * Fix * Source generate attribute invocations * MethodInfoRetriever * MethodInfoRetriever * MethodInfoRetriever * Enum fix * Enum fix * Remove dupe package versions * Remove dupe package versions * Remove calls to GetCustomAttributes * Fix verify tests * Fix * Fix * record * IComparable * IComparable * Tweak * Tweak * IComparable * Nullable * TargetFrameworks * return early * IComparable * New PriorityQueue implementation * Remove C5 * Update TUnit.NugetTester.Library.csproj * Update TUnit.NugetTester.csproj --------- Co-authored-by: Tom Longhurst <[email protected]>
- Loading branch information
Showing
223 changed files
with
3,201 additions
and
1,361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: .NET Framework | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
modularpipeline-netframework: | ||
environment: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Pull Requests' }} | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET 9 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 9.0.x | ||
|
||
- name: Setup .NET Framework | ||
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Build | ||
run: dotnet build -c Release -p:TreatWarningsAsErrors=true | ||
|
||
- name: Run Pipeline | ||
uses: ./.github/actions/execute-pipeline | ||
with: | ||
environment: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }} | ||
netversion: 'net472' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,45 @@ | ||
<Project> | ||
<Import | ||
Condition="('$(IsLibraryPackage)' == 'true' or '$(IsLibraryTestProject)' == 'true') and '$(EnablePolyfill)' != 'false'" | ||
Project="$(MSBuildThisFileDirectory)Polyfill.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks Condition="'$(IsLibraryPackage)' == 'true'">netstandard2.0;net8.0;net9.0</TargetFrameworks> | ||
<TargetFrameworks Condition="'$(IsLibraryTestProject)' == 'true'">net472;net8.0;net9.0</TargetFrameworks> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(IsTestingPlatformApplication)' == 'true'"> | ||
<OutputType>Exe</OutputType> | ||
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport> | ||
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure> | ||
<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput> | ||
<IsTestProject>true</IsTestProject> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DefineConstants Condition="$(RoslynVersion) >= 4.7">$(DefineConstants);ROSLYN4_7_OR_GREATER</DefineConstants> | ||
<EnableTrimAnalyzer Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</EnableTrimAnalyzer> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(IsTestingPlatformApplication)' == 'true'"> | ||
<OutputType>Exe</OutputType> | ||
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport> | ||
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure> | ||
<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput> | ||
<IsTestProject>true</IsTestProject> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DefineConstants Condition="$(RoslynVersion) >= 4.7">$(DefineConstants);ROSLYN4_7_OR_GREATER</DefineConstants> | ||
<EnableTrimAnalyzer Condition="'$(TargetFramework)' != 'netstandard2.0'">true</EnableTrimAnalyzer> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="'$(IsTestingPlatformApplication)' == 'true'"> | ||
<Using Include="TUnit.Core.HookType" Static="True" /> | ||
<Using Include="TUnit.Core" /> | ||
<ProjectReference Include="..\TUnit.Engine\TUnit.Engine.csproj" /> | ||
<ProjectReference Include="..\TUnit.Assertions\TUnit.Assertions.csproj" /> | ||
<PackageReference Include="Microsoft.Testing.Platform.MSBuild" /> | ||
|
||
<ProjectReference Include="$(MSBuildThisFileDirectory)TUnit.Core.SourceGenerator\TUnit.Core.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
<ProjectReference Include="$(MSBuildThisFileDirectory)TUnit.Analyzers\TUnit.Analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
<ProjectReference Include="$(MSBuildThisFileDirectory)TUnit.Assertions.Analyzers\TUnit.Assertions.Analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
<TestingPlatformBuilderHook Include="6ADF853A-6945-4A06-9A4B-D99BC1DC1094"> | ||
<DisplayName>TUnit</DisplayName> | ||
<TypeFullName>TUnit.Engine.Framework.TestingPlatformBuilderHook</TypeFullName> | ||
</TestingPlatformBuilderHook> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(IsTestingPlatformApplication)' == 'true'"> | ||
<Using Include="TUnit.Core.HookType" Static="True" /> | ||
<Using Include="TUnit.Core" /> | ||
|
||
<ProjectReference Include="..\TUnit.Engine\TUnit.Engine.csproj" /> | ||
<ProjectReference Include="..\TUnit.Assertions\TUnit.Assertions.csproj" /> | ||
<PackageReference Include="Microsoft.Testing.Platform.MSBuild" /> | ||
|
||
<ProjectReference | ||
Include="$(MSBuildThisFileDirectory)TUnit.Core.SourceGenerator\TUnit.Core.SourceGenerator.csproj" | ||
OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
<ProjectReference Include="$(MSBuildThisFileDirectory)TUnit.Analyzers\TUnit.Analyzers.csproj" | ||
OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
<ProjectReference | ||
Include="$(MSBuildThisFileDirectory)TUnit.Assertions.Analyzers\TUnit.Assertions.Analyzers.csproj" | ||
OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
|
||
<TestingPlatformBuilderHook Include="6ADF853A-6945-4A06-9A4B-D99BC1DC1094"> | ||
<DisplayName>TUnit</DisplayName> | ||
<TypeFullName>TUnit.Engine.Framework.TestingPlatformBuilderHook</TypeFullName> | ||
</TestingPlatformBuilderHook> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageReference Include="Polyfill"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFrameworkIdentifier)'!='.NETCoreApp'"> | ||
<PackageReference Include="System.Text.Json" /> | ||
<PackageReference Include="System.Threading.Tasks.Extensions" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.