Skip to content

Conversation

hallipr
Copy link
Contributor

@hallipr hallipr commented Apr 28, 2022

$(NuGetPackageRoot) may not end in a trailing slash, but SourceRoot must end in a trailing slash.

Without a trailing slash, builds produce an error like:

/opt/dotnet/6.0.100/sdk/6.0.100/Roslyn/Microsoft.Managed.Core.targets(236,5): error : SourceRoot paths are required to end with a slash or backslash: '/var/nuget'

This is the source for the task that generates the exception:
https://github.com/dotnet/roslyn/blob/315c2e149ba7889b0937d872274c33fcbfe9af5f/src/Compilers/Core/MSBuildTask/MapSourceRoots.cs#L113

This has caused issues in consuming projects:
NuGet/Home#9431 (comment)
https://github.amrom.workers.devmunity/t/nugetpackageroot-should-end-in-slash/138118

@dnfadmin
Copy link

dnfadmin commented Apr 28, 2022

CLA assistant check
All CLA requirements met.

Copy link
Collaborator

@MarcoRossignoli MarcoRossignoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@MarcoRossignoli MarcoRossignoli merged commit 7219aee into coverlet-coverage:master May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants