Skip to content

Commit f511135

Browse files
authored
Merge pull request #842 from ctaggart/sourcelink
pack source linked pdb files
2 parents be91427 + fb7046c commit f511135

File tree

6 files changed

+30
-15
lines changed

6 files changed

+30
-15
lines changed

appveyor.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
os: Visual Studio 2017
22

3-
environment:
4-
CLI_VERSION: 2.0.0
5-
6-
install:
7-
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
8-
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
9-
- ps: Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
10-
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version $env:CLI_VERSION -InstallDir $env:DOTNET_INSTALL_DIR'
11-
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
12-
133
init:
144
- git config --global core.autocrlf input
155

166
build_script:
17-
- cmd: dotnet --info
187
- cmd: fcs\build.cmd TestAndNuGet
198

209
test: off
2110
version: '{build}'
2211
artifacts:
2312
- path: release\*.nupkg
24-
type: NuGetPackage
13+
type: NuGetPackage

fcs/Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<ItemGroup>
3+
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.7.4" PrivateAssets="All" />
4+
</ItemGroup>
5+
</Project>

fcs/FSharp.Compiler.Service.netstandard/FSharp.Compiler.Service.netstandard.fsproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,4 +665,14 @@
665665
<Import Project="$(FSharpSourcesRoot)\scripts\fssrgen.targets" />
666666
<Import Project="$(FSharpSourcesRoot)\..\packages\FsLexYacc.7.0.6\build\FsLexYacc.targets" />
667667
<Target Name="GenerateCode" AfterTargets="Restore" BeforeTargets="BeforeBuild" DependsOnTargets="CallFsLex;CallFsYacc;ProcessFsSrGen"></Target>
668+
<ItemGroup>
669+
<EmbeddedFiles Include="$(IntermediateOutputPath)FSComp.fs" />
670+
<EmbeddedFiles Include="$(IntermediateOutputPath)FSIStrings.fs" />
671+
<EmbeddedFiles Include="lex.fs" />
672+
<EmbeddedFiles Include="pplex.fs" />
673+
<EmbeddedFiles Include="pars.fs" />
674+
<EmbeddedFiles Include="pppars.fs" />
675+
<EmbeddedFiles Include="illex.fs" />
676+
<EmbeddedFiles Include="ilpars.fs" />
677+
</ItemGroup>
668678
</Project>

fcs/build.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CleanDir (__SOURCE_DIRECTORY__ + "/../tests/TestResults")
1818
File.WriteAllText(__SOURCE_DIRECTORY__ + "/../tests/TestResults/notestsyet.txt","No tests yet")
1919
#endif
2020

21-
let dotnetExePath = DotNetCli.InstallDotNetSDK "2.0.2"
21+
let dotnetExePath = DotNetCli.InstallDotNetSDK "2.1.3"
2222

2323
let runDotnet workingDir args =
2424
let result =
@@ -109,7 +109,7 @@ Target "BuildVersion" (fun _ ->
109109

110110
Target "Build.NetFx" (fun _ ->
111111
!! "FSharp.Compiler.Service.sln"
112-
|> MSBuild "" "Build" ["Configuration","Release" ]
112+
|> MSBuild "" "Build" ["Configuration","Release"; "SourceLinkCreate","true"]
113113
|> Log (".NETFxBuild-Output: ")
114114
)
115115

fcs/paket.dependencies

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ nuget Microsoft.Build.Utilities.Core 14.3.0
99
nuget Microsoft.Build.Framework 14.3.0
1010
nuget Microsoft.Build.Engine 14.3.0
1111
nuget Microsoft.Build 14.3.0
12-
nuget System.Threading.Tasks.Dataflow 4.5.24.0
12+
nuget System.Threading.Tasks.Dataflow 4.5.24.0
13+
14+
group SourceLink
15+
storage: none
16+
source https://www.nuget.org/api/v2/
17+
nuget SourceLink.Create.CommandLine 2.7.4

fcs/paket.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ NUGET
2222
System.Runtime (4.3) - restriction: || (&& (== net45) (>= netstandard1.3)) (== net46)
2323
System.Runtime.InteropServices (4.3) - restriction: || (&& (== net45) (>= netstandard1.3)) (== net46)
2424
System.Threading.Tasks.Dataflow (4.5.24)
25+
26+
GROUP SourceLink
27+
STORAGE: NONE
28+
NUGET
29+
remote: https://www.nuget.org/api/v2
30+
SourceLink.Create.CommandLine (2.7.4)

0 commit comments

Comments
 (0)