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.
Maybe try a "Clean Solution". After I did that, I didn't have any errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With