-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to port a library fails because of linksource test #228
Comments
I don't have a solution off the top of my head. This would be a better issue for the sourcelink repo. |
By the way, as I understand it, using <Project>
<PropertyGroup>
<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
<!-- This is useful if you generate files during the build -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<ItemGroup>
<!-- Generate symbol packages (.snupkg) -->
<!-- You must publish both packages, the package that contains the dll (.nupkg) and the one that contains the symbols (.snupkg) -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<!-- Required -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All"/>
<!-- Required if your repository is on VSTS -->
<!--<PackageReference Include="Microsoft.SourceLink.Vsts.Git" Version="1.0.0-*" PrivateAssets="All"/>-->
<!-- Required if your repository is on GitLab -->
<!--<PackageReference Include="Microsoft.SourceLink.GitLab" Version="1.0.0-*" PrivateAssets="All"/>-->
</ItemGroup>
</Project> |
Don't use snupkg, it's so much work for so little reward. Just embed the pdb into your dll using |
I'm not sure if this is a proper solution, but I had the same issue earlier today and I solved it by adding: <DebugType>embedded</DebugType>
<EmbedAllSources>true</EmbedAllSources> to my project file. Using |
In my understanding, you'll want to use |
I think it's time we remove that tool. While it did seem useful, it hasn't gotten updates in years at this point. |
Asked about an equivalent on the SourceLink repo. We'll either move to that or remove it from the tool chain. |
It’s WIP currently dotnet/sourcelink#678 |
Is there any work continuing on this? Just made a new project and first time trying to get it to publish to nuget (first package upload was done by hand). I'm not sure if my issue falls under this mini-scaffold issue or not. This is a fresh miniscaffolded project created today.
|
Since this is an upstream problem, the only thing you can do as of right now is to remove the target. |
Describe the bug
I am trying to port an existing project to the MiniScaffold setup. I could create an empty scaffold project. But with my Utils.Lib I can't pass the sourcelink test. Somehow it doesn't add the urls and I get:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The git urls attached to the sources in the pdb file.
Any help greatly appreciated. Spend already some hours searching for a solution, but very little to go on.
The text was updated successfully, but these errors were encountered: