diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20c8f15..67305d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,9 @@ jobs: - name: Build run: dotnet build --configuration ${{ env.CONFIGURATION }} + - name: Build Roslyn 4.4 variant + run: dotnet build src/DocoptNet/DocoptNet.csproj -f netstandard2.0 -p:RoslynVersion=4.4 --configuration ${{ env.CONFIGURATION }} + - name: Pack (Windows only) if: runner.os == 'Windows' shell: pwsh diff --git a/src/DocoptNet/DocoptNet.csproj b/src/DocoptNet/DocoptNet.csproj index 3f8221c..1e1527b 100644 --- a/src/DocoptNet/DocoptNet.csproj +++ b/src/DocoptNet/DocoptNet.csproj @@ -1,5 +1,16 @@ + + <_Roslyn44AnalyzerDir>$(MSBuildProjectDirectory)/bin/roslyn4.4/ + + + + $(_Roslyn44AnalyzerDir) + $(MSBuildProjectDirectory)/obj/roslyn4.4/ + $(DefaultItemExcludes);$(MSBuildProjectDirectory)/obj/** + $(DefineConstants);ROSLYN4_4 + + netstandard2.1;netstandard2.0;net47 $(DefineConstants);DOCOPTNET_PUBLIC @@ -49,14 +60,26 @@ Portions Copyright (C) West Wind Technologies, 2008. - + + + + + + + + - - + + + +