Skip to content

Commit 1a9b971

Browse files
committed
Merge pull request #845 from ctaggart/SourceLink
update to SourceLink 1.0
2 parents de594fb + dca5e27 commit 1a9b971

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

build.fsx

+3-14
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,11 @@ Target "Test" (fun _ ->
143143
)
144144

145145
Target "SourceLink" (fun _ ->
146-
use repo = new GitRepo(__SOURCE_DIRECTORY__)
147146
!! "src/app/**/*.fsproj"
148147
|> Seq.iter (fun f ->
149148
let proj = VsProj.LoadRelease f
150-
logfn "source linking %s" proj.OutputFilePdb
151-
let files =
152-
proj.CompilesNotLinked
153-
-- "**/AssemblyInfo.fs"
154-
try
155-
repo.VerifyChecksums files
156-
proj.VerifyPdbChecksums files
157-
with
158-
| _ -> ()
159-
proj.CreateSrcSrv (sprintf "%s/%s/{0}/%%var2%%" gitRaw projectName) repo.Commit (repo.Paths files)
160-
Pdbstr.exec proj.OutputFilePdb proj.OutputFilePdbSrcSrv
161-
)
149+
let url = sprintf "%s/%s/{0}/%%var2%%" gitRaw projectName
150+
SourceLink.Index proj.CompilesNotLinked proj.OutputFilePdb __SOURCE_DIRECTORY__ url )
162151
let pdbFakeLib = "./build/FakeLib.pdb"
163152
CopyFile "./build/FAKE.Deploy" pdbFakeLib
164153
CopyFile "./build/FAKE.Deploy.Lib" pdbFakeLib
@@ -263,7 +252,7 @@ Target "Default" DoNothing
263252
"Clean"
264253
==> "SetAssemblyInfo"
265254
==> "BuildSolution"
266-
==> "Test"
255+
==> "Test"
267256
==> "Default"
268257
==> "CopyLicense"
269258
=?> ("GenerateDocs", isLocalBuild && not isLinux)

paket.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ NUGET
7070
RavenDB.Client (2.5.2956)
7171
Microsoft.CompilerServices.AsyncTargetingPack
7272
RavenDB.Server (3.0.3660)
73-
SourceLink.Fake (0.5.0)
73+
SourceLink.Fake (1.0.0)
7474
SSH.NET (2013.4.7)
7575
System.Web.Razor.Unofficial (2.0.2)
7676
toastr (2.1.1)
@@ -79,4 +79,4 @@ NUGET
7979
xunit (1.9.2)
8080
xunit.extensions (1.9.2)
8181
xunit (1.9.2)
82-
xunit.runners (1.9.2)
82+
xunit.runners (1.9.2)

0 commit comments

Comments
 (0)