@@ -68,10 +68,7 @@ Target.initEnvironment()
6868// Travis.Installer
6969//]
7070
71- #if MONO
72- #else
73- //#load @"packages/Build/SourceLink.Fake/tools/SourceLink.fsx"
74- #endif
71+ // SourceLink is now configured via MSBuild properties in the project files
7572
7673//#r @"packages/tests/Npgsql/lib/net451/Npgsql.dll"
7774#I @" ./packages/build/System.Threading.Tasks.Extensions/lib/netstandard2.0/"
@@ -400,6 +397,7 @@ Target.create "NuGet" (fun _ ->
400397)
401398
402399Target.create " PackNuGet" ( fun _ ->
400+ // Pack with embedded PDBs (SourceLink enabled, works with Paket)
403401 let _ =
404402 Fake.DotNet.Paket.pack( fun p ->
405403 { p with
@@ -433,18 +431,8 @@ Target.create "WatchLocalDocs" (fun _ ->
433431
434432)
435433
436- #if MONO
437- Target.create " SourceLink" <| fun _ -> ()
438- #else
439- //open SourceLink
440- Target.create " SourceLink" <| fun _ -> () (*
441- let baseUrl = sprintf "%s/%s/{0}/%%var2%%" gitRaw project
442- !! "src/*.fsproj"
443- |> Seq.iter (fun file ->
444- let proj = VsProj.LoadRelease file
445- SourceLink.Index proj.CompilesNotLinked proj.OutputFilePdb __SOURCE_DIRECTORY__ baseUrl
446- *)
447- #endif
434+ // SourceLink is now automatically handled by Microsoft.SourceLink.GitHub package
435+ // configured in the project files with MSBuild properties
448436
449437// --------------------------------------------------------------------------------------
450438// Release Scripts
@@ -506,10 +494,6 @@ Target.create "BuildDocs" ignore
506494 ==> " BuildDocs"
507495
508496" All"
509- #if MONO
510- #else
511- //=?> ("SourceLink", Pdbstr.tryFind().IsSome )
512- #endif
513497 =?> ( " NuGet" , not ( Fake.Core.Environment.hasEnvironVar " onlydocs" ))
514498 ==> " ReleaseDocs"
515499 ==> " Release"
0 commit comments