File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 77 * Moving on from net46 targeting
88 * Fixes for anonymous record generation
99 * Dependency updates
10- * Checking for constructors in FSharpMemberOrFunctionOrValue..ctor(cenv, minfo)
10+ * Checking for constructors in FSharpMemberOrFunctionOrValue
1111 * Fix unused opens false positive for record fields
1212
1313#### 28.0.0
Original file line number Diff line number Diff line change @@ -103,8 +103,19 @@ Target "Test" (fun _ ->
103103 runDotnet __ SOURCE_ DIRECTORY__ ( sprintf " test FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj --no-restore --no-build -v n -c Release --test-adapter-path . --logger \" nunit;LogFilePath=%s \" " logFilePath)
104104)
105105
106+ // escape a string's content so that it can be passed on the command line
107+ let escapeString ( s : string ) =
108+ let replaced = s.Replace( " \" " , " \\\" " )
109+ sprintf " \" %s \" " replaced
110+
106111Target " NuGet" ( fun _ ->
107- runDotnet __ SOURCE_ DIRECTORY__ " pack FSharp.Compiler.Service.sln -v n -c Release"
112+ let props =
113+ [ " PackageVersion" , ( string release.NugetVersion)
114+ " PackageReleaseNotes" , release.Notes |> String.concat " \n " ]
115+ |> Seq.map ( fun ( prop , value ) -> sprintf " -p:%s =%s " prop ( escapeString value))
116+ |> String.concat " "
117+
118+ runDotnet __ SOURCE_ DIRECTORY__ ( sprintf " pack FSharp.Compiler.Service.sln -v n -c Release %s " props)
108119)
109120
110121Target " GenerateDocsEn" ( fun _ ->
You can’t perform that action at this time.
0 commit comments