Skip to content

Commit

Permalink
Wrokaround for dotnet pack failure. dotnet/sdk#12160
Browse files Browse the repository at this point in the history
  • Loading branch information
jahav committed Jan 7, 2024
1 parent cfefc6b commit cc9ee4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ClosedXML.Parser/ClosedXML.Parser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<!--
For some reason, the dotnet pack fails: https://github.com/dotnet/sdk/issues/10335
This is a workaround.
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
-->
<Optimize>true</Optimize>
</PropertyGroup>

Expand Down Expand Up @@ -51,7 +55,7 @@

<ItemGroup>
<PackageReference Include="System.Memory" Version="4.5.4" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<!-- Lexer isn't CLS compliant thus neither should be the assembly. -->
Expand Down

0 comments on commit cc9ee4a

Please sign in to comment.