-
Notifications
You must be signed in to change notification settings - Fork 55
help enable source link for Paket #181
Comments
Solved the uknown file with #183. |
The pull request is working. Here are some notes. I switched the AppVeyor build to VS 2017 in os: Visual Studio 2017
init:
- git config --global core.autocrlf input I added the equivalent of Target "MSBuildRestore" (fun _ ->
!! solutionFile
|> Seq.iter (build (fun p -> {p with RestorePackagesFlag=true; Targets=["Restore"]}))
)
Target "Build" (fun _ ->
if isMono then
!! solutionFile
|> MSBuildReleaseExt "" [
"VisualStudioVersion", "14.0"
"ToolsVersion" , "14.0"
] "Rebuild"
|> ignore
else
!! solutionFile
|> MSBuildReleaseExt "" [] "Rebuild"
|> ignore
) I worked around a MSBuild 15 bug with restore by referencing <Project>
<PropertyGroup>
<DebugType>portable</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.1.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.NuGet.Build.Tasks.Workaround" Version="*" PrivateAssets="all" />
</ItemGroup>
</Project> SourceLink.Create.GitHub embeds files not in the repository automatically, but SourceLink.Create.CommandLine can't do that. To get the source files from <Project>
<PropertyGroup>
<BuildDependsOn>EmbedPaketFiles;$(BuildDependsOn)</BuildDependsOn>
</PropertyGroup>
<Target Name="EmbedPaketFiles">
<ItemGroup>
<EmbeddedFiles Include="$([System.IO.Path]::GetFullPath('%(Compile.Identity)'))"
Condition="$([System.String]::Copy('%(Identity)').Contains('paket-files'))" />
</ItemGroup>
<CreateProperty Value="@(EmbeddedFiles)">
<Output TaskParameter="Value" PropertyName="embed" />
</CreateProperty>
</Target>
</Project> I wish F# would have been consistent with the C# MSBuild targets by using |
This is in Packet.Core Added the pdb files to the nupkg: |
Going to need to
We should add a test to the build. |
fsprojects/Paket#2313 shows how to add the portable pdb files to nuget package using both paket pack and dotnet pack. The dotnet pack uses an MSBuild ItemGroup labeled <ItemGroup Label="dotnet pack instructions">
<Content Include="$(OutputPath)Paket.Core.pdb">
<Pack>true</Pack>
<PackagePath>lib/netstandard1.6</PackagePath>
</Content>
</ItemGroup> |
Progress is in fsprojects/Paket#2200
I'm a bit confused why there is a document with a blank guid showing up.
The text was updated successfully, but these errors were encountered: