-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Reproducible builds with Razor Class Library in .NET 6 RC1 #37182
Comments
@meziantou I tried the repro app that you shared, and it looks like the net6.0 app works correctly. I have a rc2 SDK installed: Are your results different when building locally? |
You can build the .NET 6 project (RazorClassLibrary1) locally using:
You can see using NuGet Package Explorer:
Using the .NET SDK 5.0.401To build the .NET 5 project (RazorClassLibrary2), you may need to use .NET 5 SDK (5.0.401) as the .NET 6 SDK RC1 produces an error because of #35568 You can see using NuGet Package Explorer:
dotnet --info
|
Unfortunately the screen shots don't line up with the |
@jaredpar The screenshots from the first post was from another project (before I made the repro projects). The screenshots from the next messages should line up with the binlogs from the first post. Also, you can have a look at the GitHub project which contains the source code for all other screenshots and binlog. |
That's sounds like a Razor SDK issue. We were intentionally changing the path root to workaround an issue with O# which was recently resolved. I can take it from here and see if removing the workaround helps. |
As part of addressing dotnet/aspnetcore#30750, we had added a workaround to the RazorSDK to ensure building inside O# worked. This issue is being resolved as part of the upcoming O# v1.37.16. In the meanwhile, the workaround affects sourcelink for razor files. Fixes dotnet/aspnetcore#37182
As part of addressing dotnet/aspnetcore#30750, we had added a workaround to the RazorSDK to ensure building inside O# worked. This issue is being resolved as part of the upcoming O# v1.37.16. In the meanwhile, the workaround affects sourcelink for razor files. Fixes dotnet/aspnetcore#37182
@meziantou this was resolved as part of dotnet/sdk#21806. A nightly build from the Release/6.0.1XX channel - https://github.com/dotnet/installer#installers-and-binaries - should have this fix if you'd like to give this a try. |
Thanks @pranavkm! I gave it a try this morning and it's all green using |
RC2 builds are mostly wrapped up now, the fix targets RTM. |
As part of addressing dotnet/aspnetcore#30750, we had added a workaround to the RazorSDK to ensure building inside O# worked. This issue is being resolved as part of the upcoming O# v1.37.16. In the meanwhile, the workaround affects sourcelink for razor files. Fixes dotnet/aspnetcore#37182
Describe the bug
I try to update a project to .NET 6 RC1. The project is a Razor Class Library that contains Blazor components.
I use the
[email protected]
package to set the MSBuild properties for reproducible builds. It works great in .NET 5. However, in .NET 6 RC1, the path to the razor files in the pdb are local paths (C:\...
) instead of a deterministic path (/_/...
)..NET 5:
.NET 6:
To Reproduce
Is there a new property to set in the csproj file to handle razor files in .NET 6?
The text was updated successfully, but these errors were encountered: