Skip to content

Commit

Permalink
Pass msbuild sign prop to fsharp
Browse files Browse the repository at this point in the history
  • Loading branch information
ellahathaway committed Nov 14, 2024
1 parent 4fed5a3 commit 9ef5b62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SourceBuild/content/repo-projects/fsharp.proj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

<!-- Restore and Build actions are already passed in by the root script. -->
<BuildActions>$(FlagParameterPrefix)pack $(FlagParameterPrefix)publish</BuildActions>
<BuildActions Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(Sign)' == 'true'">$(BuildActions) $(FlagParameterPrefix)sign</BuildActions>

<!--
'sign' is not a valid argument in fsharp's custom build script,
so we pass the msbuild property itself. -->
<BuildArgs Condition="'$(DotNetBuildSourceOnly)' != 'true' and '$(Sign)' == 'true'">$(BuildArgs) /p:Sign=true</BuildArgs>

<BuildArgs>$(BuildArgs) /p:TreatWarningsAsErrors=false</BuildArgs>
<BuildArgs>$(BuildArgs) /p:GenerateResourceUsePreserializedResources=true</BuildArgs>
Expand Down

0 comments on commit 9ef5b62

Please sign in to comment.