diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index be91ed8..e7317bb 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -18,13 +18,13 @@ jobs: # Install and Setup GitVersion - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.7 + uses: gittools/actions/gitversion/setup@v0 with: versionSpec: '5.x' - name: Use GitVersion # Step id is used as reference for the output values id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.7 + uses: gittools/actions/gitversion/execute@v0 # Setup .NET 6 - name: Setup .NET diff --git a/pack.ps1 b/pack.ps1 index 738ae6a..62de8e4 100644 --- a/pack.ps1 +++ b/pack.ps1 @@ -39,7 +39,7 @@ if ($publish) { # if token is given, we will publish the package to Chocolatey here if ($env:CHOCO_TOKEN) { & $chocoCommand apiKey -k $env:CHOCO_TOKEN -source https://push.chocolatey.org/ - & $chocoCommand push $nupkgName + & $chocoCommand push $nupkgName -source https://push.chocolatey.org/ } else { Write-Warning "Chocolatey token was not set. Publication skipped." } diff --git a/src/DocLinkChecker/DocLinkChecker/DocLinkChecker.csproj b/src/DocLinkChecker/DocLinkChecker/DocLinkChecker.csproj index d37744a..63ddf17 100644 --- a/src/DocLinkChecker/DocLinkChecker/DocLinkChecker.csproj +++ b/src/DocLinkChecker/DocLinkChecker/DocLinkChecker.csproj @@ -3,7 +3,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net6.0</TargetFramework> - <LangVersion>11.0</LangVersion> + <LangVersion>10.0</LangVersion> <TreatWarningsAsErrors>true</TreatWarningsAsErrors> <GenerateDocumentationFile>True</GenerateDocumentationFile> <PackageLicenseExpression>MIT</PackageLicenseExpression> @@ -16,6 +16,8 @@ <PackageProjectUrl>https://github.com/Ellerbach/docfx-companion-tools</PackageProjectUrl> <Description>This tool can be used to check references in markdown files.</Description> <PackageTags>docfx tools companion link check</PackageTags> + <SelfContained>true</SelfContained> + <UseAppHost>true</UseAppHost> </PropertyGroup> <ItemGroup> @@ -26,5 +28,6 @@ <PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" /> <PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Http.Polly" Version="7.0.5" /> + <None Include="..\README.md" Pack="true" PackagePath=""/> </ItemGroup> </Project> diff --git a/src/build/dotnet/common.props b/src/build/dotnet/common.props index e2874d2..0ac1943 100644 --- a/src/build/dotnet/common.props +++ b/src/build/dotnet/common.props @@ -17,5 +17,6 @@ <LangVersion>9.0</LangVersion> <TreatWarningsAsErrors>true</TreatWarningsAsErrors> <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)/CodeAnalysis.ruleset</CodeAnalysisRuleSet> + <_SkipUpgradeNetAnalyzersNuGetWarning>true</_SkipUpgradeNetAnalyzersNuGetWarning> </PropertyGroup> </Project>