This downloads symbols missing from your build. Use it by adding a dependency to Cobalt.Symbols.MSBuild
:
<Project Sdk="Microsoft.NET.Sdk">
...
<ItemGroup>
<PackageReference Include="Cobalt.Symbols.MSBuild" Version="1.0.0" />
</ItemGroup>
</Project>
Building this package requires manual steps:
Steps:
-
Create the tool to download symbols
dotnet publish -c Release -f net472 ./src/Cobalt.Symbols.Downloader/
dotnet publish -c Release -f net5.0 ./src/Cobalt.Symbols.Downloader/
-
Create the NuGet package
- Create the base package:
dotnet pack -c Release ./src/Cobalt.Symbols.MSBuild
- Use NuGet Package Explorer to open
./src/Cobalt.Symbols.MSBuild/bin/Release/Cobalt.Symbols.MSBuild.1.0.0.nupkg
- Add the tool to the NuGet package
- Copy all files from
./src/Cobalt.Symbols.Downloader/bin/Release/net472/publish/
into the package at pathtools/net472
- Copy all files from
../src/Cobalt.Symbols.Downloader/bin/Release/net5.0/publish/
into the package at pathtools/net5.0
- Copy all files from
- Create the base package: