Skip to content

CocoDico78/StaticWebAssetsBug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal repo to reproduce dotnet/aspnetcore#35345

Steps to reproduce the issue

  • Build the RazorClassLibrary project (in VS, right-click -> Build)
  • Run the following command in the MyBlazorApp folder: dotnet publish

This error pops-up:

C:\Program Files\dotnet\sdk\6.0.100-rc.1.21463.6\Microsoft.Common.CurrentVersion.targets(5109,5): error MSB3030: Could not copy the file "C:\path\to\repo\StaticWebAssetsBug\RazorClassLibrary\obj\Debug\net5.0\staticwebassets\RazorClassLibrary.StaticWebAssets.xml" because it was not found. [C:\path\to\repo\StaticWebAssetsBug\MyBlazorApp\MyBlazorApp.csproj]

Running dotnet publish a second time works fine.

How to create this repo?

  • Create a templated Blazor App
  • Add a templated Razor Component Library
  • Refernce the RCL from the app and use a component from it.

About

Reproducing https://github.com/dotnet/aspnetcore/issues/35345, unexpected deletion of `*StaticWebAssets.xml`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published