Skip to content

Commit c2ab942

Browse files
authored
Merge pull request #785 from dsyme/pu1
move MSBuild support to separate nuget package
2 parents bf8524e + 18b6de0 commit c2ab942

File tree

8 files changed

+36
-32
lines changed

8 files changed

+36
-32
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### 13.0.0
2+
* Move FSharp.Compiler.Service.MSBuild.v12.dll to a separate nuget package
3+
14
#### 12.0.8
25
* Set bit on output executables correctly
36

build.fsx

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44

55
#I "packages/FAKE/tools"
66
#r "packages/FAKE/tools/FakeLib.dll"
7-
#load "packages/SourceLink.Fake/tools/SourceLink.fsx"
87
open System
98
open Fake.AppVeyor
109
open Fake
1110
open Fake.Git
1211
open Fake.ReleaseNotesHelper
1312
open Fake.UserInputHelper
1413
open 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"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
type file
2+
id FSharp.Compiler.Service.MSBuild.v12
3+
description
4+
Adds legacy MSBuild 12.0 support to the F# compiler services package for
5+
resolving references such as #r "System, Version=4.1.0.0,..."
6+
authors
7+
Microsoft Corporation, Dave Thomas, Anh-Dung Phan, Tomas Petricek
8+
summary
9+
Adds legacy MSBuild 12.0 support to the F# compiler services package
10+
licenseurl https://github.com/fsharp/FSharp.Compiler.Service/blob/master/LICENSE
11+
projecturl https://github.com/fsharp/FSharp.Compiler.Service
12+
iconurl https://raw.github.com/fsharp/FSharp.Compiler.Service/master/misc/logo.png
13+
tags
14+
F#, fsharp, interactive, compiler, editor
15+
files
16+
../bin/v4.5/FSharp.Compiler.Service.MSBuild.v12.dll ==> lib/net45

nuget/FSharp.Compiler.Service.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ files
1919
../bin/v4.5/FSharp.Compiler.Service.xml ==> lib/net45
2020
../bin/v4.5/FSharp.Compiler.Service.?db ==> lib/net45
2121
../bin/v4.5/FSharp.Compiler.Service.dll.?db ==> lib/net45
22-
../bin/v4.5/FSharp.Compiler.Service.MSBuild.v12.dll ==> lib/net45
2322
dependencies
2423
System.Collections.Immutable >= LOCKEDVERSION
2524
System.Reflection.Metadata >= LOCKEDVERSION

src/fsharp/FSharp.Compiler.Service.ProjectCracker/FSharp.Compiler.Service.ProjectCracker.netcore.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<VersionPrefix>12.0.8</VersionPrefix>
3+
<VersionPrefix>13.0.0</VersionPrefix>
44
<TargetFramework>netstandard1.6</TargetFramework>
55
<OutputType>Library</OutputType>
66
<DefineConstants>$(DefineConstants);DOTNETCORE;</DefineConstants>

src/fsharp/FSharp.Compiler.Service/FSharp.Compiler.Service.netcore.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<VersionPrefix>12.0.8</VersionPrefix>
3+
<VersionPrefix>13.0.0</VersionPrefix>
44
<TargetFramework>netstandard1.6</TargetFramework>
55
<AssemblyName>FSharp.Compiler.Service</AssemblyName>
66
<DefineConstants>$(DefineConstants);BUILDING_WITH_LKG</DefineConstants>

tests/service/MultiProjectAnalysisTests.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
#if INTERACTIVE
33
#r "../../bin/v4.5/FSharp.Compiler.Service.dll"
4+
#r "../../bin/v4.5/FSharp.Compiler.Service.ProjectCracker.dll"
45
#r "../../packages/NUnit/lib/nunit.framework.dll"
56
#load "FsUnit.fs"
67
#load "Common.fs"

0 commit comments

Comments
 (0)