dotnet / dotnet/msbuild

Regression: Pack targets failing - trying to add pdb for embedded type

Open
#2,754 28 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 19h
Merged PRs (30d)
135

Description

_From @onovotny on November 28, 2017 1:48_

I’m seeing a regression that’s causing Ix.NET to fail with 2.0.3 and higher. I don’t know when the break was introduced. Nothing in Ix has changed related to this:
https://github.com/Reactive-Extensions/Rx.NET/tree/develop/Ix.NET/Source

Getting errors like this:
"C:\dev\RxNET\Ix.NET\Source\System.Interactive\System.Interactive.csproj" (pack target) (1) ->
(GenerateNuspec target) ->
C:\Program Files\dotnet\sdk\2.1.1-preview-007165\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(204,5): err or : The file 'C:\dev\RxNET\Ix.NET\Source\System.Interactive\bin\Release\net45\System.Interactive.pdb' to be packed was not found on disk. [C :\dev\RxNET\Ix.NET\Source\System.Interactive\System.Interactive.csproj]

And the build log shows this:
![image](https://user-images.githubusercontent.com/1427284/33298428-54458240-d3b4-11e7-9198-2a1278805e70.png)

This is in error because there are no symbols for DebugType = embedded. The build log clearly shows DebugType set to embedded.

[msbuild.zip](https://github.com/NuGet/Home/files/1508255/msbuild.zip)

_Copied from original issue: NuGet/Home#6230_

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the pack target failure from Ix.NET/Source, starting with System.Interactive/System.Interactive.csproj and the NuGet.Build.Tasks.Pack buildCrossTargeting target at line 204. Use the attached msbuild.zip log to compare DebugType=embedded with the requested PDB; done means the pack target no longer fails because the expected net45 PDB is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.