Support for Deterministic Source Paths
See original GitHub issueToday, it appears that ReportGenerator requires the “real” path to a file to work. If ContinousIntegrationBuild is set to true though, the paths in the report files should generate file paths of the like
/_/some/directory/file.cs
/_/some/directory/file2.cs
/_1/anotherRoot/frob/bar.cs
etc.
They’ll always be normalized across OS versions.
What we’d need is for the sources parameter to search against all roots (ignore the /_{n}/) and try to find it against something like
C:\agent\1\work\s\some\directory\file.cs
C:\agent\1\work\s\some\directory\file2.cs
and match the files.
What can we do here?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:21 (10 by maintainers)
Top Results From Across the Web
c# - Get source file location with DeterministicSourcePaths ...
I need the source code location in order to be able to unit test product specific functionality (that has to do with inspecting...
Read more >SourceLink breaks coverage report generation - SonarCloud
I had conflated source link and deterministic source paths. And after much wrangling, I discover that coverlet doesn't support deterministic ...
Read more >C# Compiler Options that control code generation
Deterministic compilation can be used for establishing whether a binary is compiled from a trusted source. Deterministic output can be useful ...
Read more >Deterministic Networking
Deterministic Networking (DetNet) is an effort by the IETF DetNet Working Group to study implementation of deterministic data paths ... To support real-time...
Read more >An introduction to deterministic builds with C/C++
A deterministic build is a process of building the same source code with the same build environment and build instructions producing the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It comes from here: https://github.com/dotnet/roslyn/blob/8637000fc35f01a453349147b71d5ecdae8d0bff/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets#L183-L199
Just made some additional changes 1350d0f and published release 4.8.6