diff --git a/.github/workflows/validatePullRequest.yml b/.github/workflows/validatePullRequest.yml index 89c259b5731..ff722721f8c 100644 --- a/.github/workflows/validatePullRequest.yml +++ b/.github/workflows/validatePullRequest.yml @@ -25,6 +25,8 @@ jobs: run: dotnet build ${{ env.projectName }} -f netstandard2.0 --no-restore -c Release - name: Build for netstandard2.1 run: dotnet build ${{ env.projectName }} -f netstandard2.1 --no-restore -c Release + - name: Build for net5.0 + run: dotnet build ${{ env.projectName }} -f net5.0 --no-restore -c Release - name: Build run: dotnet build ${{ env.solutionName }} --no-restore -c Release - name: Test diff --git a/pipelines/ci-build.yml b/pipelines/ci-build.yml index 4757a263c30..afc7029bf36 100644 --- a/pipelines/ci-build.yml +++ b/pipelines/ci-build.yml @@ -88,6 +88,12 @@ steps: projects: '$(Build.SourcesDirectory)\src\Microsoft.Graph\Microsoft.Graph.Beta.csproj' arguments: '-c $(BuildConfiguration) --no-incremental -f netstandard2.1 --no-restore' +- task: DotNetCoreCLI@2 + displayName: 'dotnet build net5.0' + inputs: + projects: '$(Build.SourcesDirectory)\src\Microsoft.Graph\Microsoft.Graph.Beta.csproj' + arguments: '-c $(BuildConfiguration) --no-incremental -f net5.0 --no-restore' + - task: DotNetCoreCLI@2 displayName: 'dotnet build test project' inputs: diff --git a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj index 696211286b1..3e0055bd82c 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj @@ -56,6 +56,14 @@ bin\Release\Microsoft.Graph.Beta.xml 1701;1702;1705;1591 + + bin\Debug\Microsoft.Graph.Beta.xml + 1701;1702;1705;1591 + + + bin\Release\Microsoft.Graph.Beta.xml + 1701;1702;1705;1591 + true