14

I keep getting this error when trying to build in VS 2022 Preview or dotnet build (but it doesn't happen in VS 2019):

Severity Code Description Project File Line Suppression State Error MSB3030 Could not copy the file "C:\projects\■■■■\■■■■.StaticWebAssets.xml" because it was not found. ■■■■.■■■■.■■■■ C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 5100

The trouble is, these are APIs without any static web assets and I don't want to build or deploy static web assets. Is there a way to make this error go away?

Thanks.

devlord
  • 4,054
  • 4
  • 37
  • 55

1 Answers1

35

Maybe try a "Clean Solution". After I did that, I didn't have any errors.

HHansen
  • 366
  • 3
  • 3