-
Notifications
You must be signed in to change notification settings - Fork 796
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
ContinuousIntegrationBuild only works if PathMap is also specified? #11920
Comments
Pretty sure this is just a missed task from when I implemented the MapSourceRoots functionality about a year ago. Looking at the roslyn targets that we started to copy from, there's a section right below the path mapping section I brought over that defines the target that you've discovered is missing: https://github.com/dotnet/roslyn/blob/86ff365d5d28fddd4a4738cf1d9d101522dffd50/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets#L259-L292 the immediate fix would be to bring that over and verify that it gets called to set the PathMap correctly, but the longer term fix still remains that these targets need to be pushed down into a common layer for all languages to consume (as tracked here) |
yep, when I add this target to a Directory.Build.targets in a project I already pack with sourcelink, and run the build with
So we're as complete as we can be at this time, given that the F# compiler doesn't support writing compiler flags to PDBs for reproducibility as of yet. |
Using Source Link +
ContinuousIntegrationBuild
withoutPathMap
fails to produce a source linked or deterministic package.Additionally defining
<PathMap>C:\projectdir\=/_/</PathMap>
succeeds.Is it intended to require this parameter?
An equivalent C# project does not require defining PathMap. According to build logs, the C# project is executing the following task which is absent from the F# log:
Repro steps
F#:
Bad package, no PathMap:
Good package, specify PathMap:
C#, good package, no PathMap:
Related information
Provide any related information (optional):
Windows 10
.NET Core
5.0.302
6.0.100-preview.6.21355.2
The text was updated successfully, but these errors were encountered: