44
55#I " packages/FAKE/tools"
66#r " packages/FAKE/tools/FakeLib.dll"
7- #load " packages/SourceLink.Fake/tools/SourceLink.fsx"
87open System
98open Fake.AppVeyor
109open Fake
1110open Fake.Git
1211open Fake.ReleaseNotesHelper
1312open Fake.UserInputHelper
1413open Fake.AssemblyInfoFile
15- open SourceLink
1614
1715#if MONO
1816// prevent incorrect output encoding (e.g. https://github.com/fsharp/FAKE/issues/1196)
@@ -121,30 +119,6 @@ Target "Build.NetFx.Debug" (fun _ ->
121119 CleanDir buildDir
122120)
123121
124- Target " SourceLink" ( fun _ ->
125- #if MONO
126- ()
127- #else
128- netFrameworks
129- |> List.iter ( fun framework ->
130- let outputPath = __ SOURCE_ DIRECTORY__ </> releaseDir </> framework
131- let proj = VsProj.Load " src/fsharp/FSharp.Compiler.Service/FSharp.Compiler.Service.fsproj"
132- [ " Configuration" , " Release" ; " TargetFrameworkVersion" , framework; " OutputPath" , outputPath]
133- let sourceFiles =
134- SetBaseDir __ SOURCE_ DIRECTORY__ proj.Compiles
135- // generated and in fsproj as Compile, but in .gitignore, not source indexed
136- -- " src/fsharp/FSharp.Compiler.Service/illex.fs" // <FsLex Include="..\..\absil\illex.fsl">
137- -- " src/fsharp/FSharp.Compiler.Service/ilpars.fs"
138- -- " src/fsharp/FSharp.Compiler.Service/pplex.fs" // <FsLex Include="..\..\absil\illex.fsl">
139- -- " src/fsharp/FSharp.Compiler.Service/pppars.fs"
140- -- " src/fsharp/FSharp.Compiler.Service/lex.fs"
141- -- " src/fsharp/FSharp.Compiler.Service/pars.fs"
142- let url = sprintf " %s /%s /{0}/%%var2%%" gitRaw gitName
143- SourceLink.Index sourceFiles proj.OutputFilePdb __ SOURCE_ DIRECTORY__ url
144- )
145- #endif
146- )
147-
148122// --------------------------------------------------------------------------------------
149123// Run the unit tests using test runner
150124
@@ -174,7 +148,13 @@ Target "NuGet.NetFx" (fun _ ->
174148 ReleaseNotes = toLines release.Notes })
175149 Paket.Pack ( fun p ->
176150 { p with
177- TemplateFile = " nuget/projectcracker.template"
151+ TemplateFile = " nuget/FSharp.Compiler.Service.ProjectCracker.template"
152+ Version = nugetVersion
153+ OutputPath = releaseDir
154+ ReleaseNotes = toLines release.Notes })
155+ Paket.Pack ( fun p ->
156+ { p with
157+ TemplateFile = " nuget/FSharp.Compiler.Service.MSBuild.v12.template"
178158 Version = nugetVersion
179159 OutputPath = releaseDir
180160 ReleaseNotes = toLines release.Notes })
@@ -190,7 +170,13 @@ Target "NuGet.NetFx.Debug" (fun _ ->
190170 ReleaseNotes = toLines release.Notes })
191171 Paket.Pack ( fun p ->
192172 { p with
193- TemplateFile = " nuget/projectcracker.template"
173+ TemplateFile = " nuget/FSharp.Compiler.Service.ProjectCracker.template"
174+ Version = nugetDebugVersion
175+ OutputPath = debugDir
176+ ReleaseNotes = toLines release.Notes })
177+ Paket.Pack ( fun p ->
178+ { p with
179+ TemplateFile = " nuget/FSharp.Compiler.Service.MSBuild.v12.template"
194180 Version = nugetDebugVersion
195181 OutputPath = debugDir
196182 ReleaseNotes = toLines release.Notes })
@@ -429,7 +415,6 @@ Target "All.NetFx" DoNothing
429415 ==> " NuGet"
430416
431417" All"
432- ==> " SourceLink"
433418 ==> " NuGet"
434419 ==> " CreatePackage"
435420 ==> " GitHubRelease"
0 commit comments