Skip to content

Commit

Permalink
Merge pull request #34 from Ellerbach/fix/fix-release-doclinkchecker
Browse files Browse the repository at this point in the history
Fixed C# language version for packaging
  • Loading branch information
mtirionMSFT authored Oct 11, 2023
2 parents be45a48 + 0947c60 commit b1314cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
Expand Down
5 changes: 4 additions & 1 deletion src/DocLinkChecker/DocLinkChecker/DocLinkChecker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
1 change: 1 addition & 0 deletions src/build/dotnet/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
<LangVersion>9.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)/CodeAnalysis.ruleset</CodeAnalysisRuleSet>
<_SkipUpgradeNetAnalyzersNuGetWarning>true</_SkipUpgradeNetAnalyzersNuGetWarning>
</PropertyGroup>
</Project>

0 comments on commit b1314cf

Please sign in to comment.