diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff21958..0baf87a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,8 @@ jobs: steps: - uses: actions/checkout@v7 + with: + fetch-depth: '0' - name: Setup .NET uses: actions/setup-dotnet@v6 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f643f7..3bab96b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,9 @@ jobs: dotnet-version: | 11.0.x + - name: Restore tools + run: dotnet tool restore + - name: Restore dependencies run: dotnet restore - name: Build @@ -39,6 +42,8 @@ jobs: - name: Package run: dotnet pack -c Release --no-build --property:PackageOutputPath=../../nupkgs + - name: Validate Package + run: dotnet tool run dotnet-validate -- package local ./nupkgs/*.nupkg - name: NuGet login (OIDC → temp API key) uses: NuGet/login@v1 diff --git a/Directory.Build.props b/Directory.Build.props index 4a8879d..9be27cb 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0;net11.0 + net8.0;net10.0;net11.0 latest enable diff --git a/Directory.Packages.props b/Directory.Packages.props index f4a233f..8d3f1ab 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,7 +5,7 @@ - + @@ -47,27 +47,20 @@ - + - + - - - - - - - @@ -75,7 +68,7 @@ - + @@ -84,8 +77,8 @@ - - + + diff --git a/src/Immediate.Injections.Analyzers/Immediate.Injections.Analyzers.csproj b/src/Immediate.Injections.Analyzers/Immediate.Injections.Analyzers.csproj index b36bf1d..4f21b1a 100644 --- a/src/Immediate.Injections.Analyzers/Immediate.Injections.Analyzers.csproj +++ b/src/Immediate.Injections.Analyzers/Immediate.Injections.Analyzers.csproj @@ -1,7 +1,7 @@  - netstandard2.0;net10.0 + roslyn4.8;roslyn5.0;roslyn5.9 true true @@ -15,4 +15,22 @@ + + .NETStandard + v2.0 + .NETStandard,Version=v2.0 + + + + .NETStandard + v2.0 + .NETStandard,Version=v2.0 + + + + .NETStandard + v2.0 + .NETStandard,Version=v2.0 + + diff --git a/src/Immediate.Injections.Generators/Immediate.Injections.Generators.csproj b/src/Immediate.Injections.Generators/Immediate.Injections.Generators.csproj index c94091d..797839f 100644 --- a/src/Immediate.Injections.Generators/Immediate.Injections.Generators.csproj +++ b/src/Immediate.Injections.Generators/Immediate.Injections.Generators.csproj @@ -1,7 +1,7 @@  - netstandard2.0;net10.0 + roslyn4.8;roslyn5.0;roslyn5.9 true true $(NoWarn);CA1716 @@ -23,27 +23,45 @@ - + - + true $(DefineConstants);SCRIBAN_NO_ASYNC - + - + $(GetTargetPathDependsOn);GetDependencyTargetPaths - + + + .NETStandard + v2.0 + .NETStandard,Version=v2.0 + + + + .NETCoreApp + v10.0 + .NETCoreApp,Version=v10.0 + + + + .NETCoreApp + v10.0 + .NETCoreApp,Version=v10.0 + + diff --git a/src/Immediate.Injections/Immediate.Injections.csproj b/src/Immediate.Injections/Immediate.Injections.csproj index 32a7277..9da08e6 100644 --- a/src/Immediate.Injections/Immediate.Injections.csproj +++ b/src/Immediate.Injections/Immediate.Injections.csproj @@ -3,6 +3,9 @@ true false + + true + 1.0.0 @@ -20,14 +23,13 @@ https://github.com/ImmediatePlatform/Immediate.Injections - - + - - - + - - - - + - + + + + + + + + - - + + roslyn4.8 + roslyn5.0 + roslyn5.9 + + + + + TargetFramework=$(RoslynVersion) + + + + TargetFramework=$(RoslynVersion) + + + diff --git a/tests/Immediate.Injections.FunctionalTests/Immediate.Injections.FunctionalTests.csproj b/tests/Immediate.Injections.FunctionalTests/Immediate.Injections.FunctionalTests.csproj index e774e84..c191e30 100644 --- a/tests/Immediate.Injections.FunctionalTests/Immediate.Injections.FunctionalTests.csproj +++ b/tests/Immediate.Injections.FunctionalTests/Immediate.Injections.FunctionalTests.csproj @@ -17,8 +17,22 @@ - - + + + + roslyn4.8 + roslyn5.0 + roslyn5.9 + + + + + TargetFramework=$(RoslynVersion) + + + + TargetFramework=$(RoslynVersion) + diff --git a/tests/Immediate.Injections.Tests/Immediate.Injections.Tests.csproj b/tests/Immediate.Injections.Tests/Immediate.Injections.Tests.csproj index 8462b2c..6322bac 100644 --- a/tests/Immediate.Injections.Tests/Immediate.Injections.Tests.csproj +++ b/tests/Immediate.Injections.Tests/Immediate.Injections.Tests.csproj @@ -2,7 +2,6 @@ Exe - <_SkipUpgradeNetAnalyzersNuGetWarning>true @@ -46,9 +45,26 @@ - - - + + + + roslyn4.8 + roslyn5.0 + roslyn5.9 + + + + + TargetFramework=$(RoslynVersion) + + + + + TargetFramework=$(RoslynVersion) + + + +