-
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
Blazor WebAssembly App does not build when referencing .NET Standard 2.0 assembly. #35349
Comments
Unfortunately we haven't received the repro project that is mentioned above. If you're able to repost it, preferably as a GitHub issue, we'd be happy to investigate. |
Hi, I have recreated the repro steps and attached the solution: Create a new Blazor Web Application, do not build. Add a .NET Standard 2.0 Class Library, building the latter (class library) only. Add a reference to the built output in the Blazor project and build - build fails. Seems that the extension gets lost somewhere in the MSBuild machinery. I have also included a workaround in the project file - moving the HintPath directly into the Reference. |
@johnhmuller could you share the repro app as a GitHub repo? Thanks! |
Hi, would this suffice? |
I've confirmed it's a bug. It's an issue with how we choose the path to the file we are about to compress, we look at the original item spec expecting that its the path to an existing file. |
* Fixes an issue with projects not working with reference assemblies using HintPath. * Fixes an issue where files without an extension where being included inside an additional folder with the file name on nuget packages. * Adds additional error logging for the brotli compression tool. * Adds additional login for the gzip compress task. * Adds editor config files in the blazor wasm and razor sdk folders to handle 'var' usage preferences in ASP.NET Core projects. * Performs a more selective filtering for static web assets candidates from the build candidates in blazor webassembly applications. * Fixes an issue with AppendTargetFramework=false causing issues dotnet/aspnetcore#35349 dotnet/aspnetcore#32744 dotnet/aspnetcore#29561 dotnet/aspnetcore#35561
* Fixes an issue with projects not working with reference assemblies using HintPath. * Fixes an issue where files without an extension where being included inside an additional folder with the file name on nuget packages. * Adds additional error logging for the brotli compression tool. * Adds additional login for the gzip compress task. * Adds editor config files in the blazor wasm and razor sdk folders to handle 'var' usage preferences in ASP.NET Core projects. * Performs a more selective filtering for static web assets candidates from the build candidates in blazor webassembly applications. * Fixes an issue with AppendTargetFramework=false causing issues dotnet/aspnetcore#35349 dotnet/aspnetcore#32744 dotnet/aspnetcore#29561 dotnet/aspnetcore#35561
* Fixes an issue with projects not working with reference assemblies using HintPath. * Fixes an issue where files without an extension where being included inside an additional folder with the file name on nuget packages. * Adds additional error logging for the brotli compression tool. * Adds additional login for the gzip compress task. * Adds editor config files in the blazor wasm and razor sdk folders to handle 'var' usage preferences in ASP.NET Core projects. * Performs a more selective filtering for static web assets candidates from the build candidates in blazor webassembly applications. * Fixes an issue with AppendTargetFramework=false causing issues dotnet/aspnetcore#35349 dotnet/aspnetcore#32744 dotnet/aspnetcore#29561 dotnet/aspnetcore#35561
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version] [regression] [worked-in:Preview 2.1]
When referencing a .NET Standard 2.0 (this is the only option I have tried) assembly (versus Project Reference), I am not able to build the Project/Solution.
I have included the basic project, cleaned in order to keep the download small. Build the ClassLibrary first, then the BlazorApp.
Original Comments
Feedback Bot on 8/12/2021, 02:05 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: