dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.53k stars 4.53k forks source link

Microsoft.NET.Sdk.WebAssembly.Pack #103429

Open Lindokuhle-Makanda opened 2 months ago

Lindokuhle-Makanda commented 2 months ago

I'm having issues trying to run migration on my MVC app that I am currently creating for practice. I am encountering these errors 1) Severity Code Description Project File Line Suppression State Error MSB4025 The project file could not be loaded. '<', hexadecimal value 0x3C, is an invalid attribute character. Line 10, position 79. The project file is invalid on disk and was not reloaded. Bloggie.Web C:\BloggieMVC\Bloggie\Bloggie.Web\Bloggie.Web.csproj 10
2)Severity Code Description Project File Line Suppression State Error Project "C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\6.0.23\Sdk\AutoImport.props" was not imported by "C:\Program Files\dotnet\sdk\7.0.402\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props" at (14,3), due to the file being invalid. Bloggie.Web C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\6.0.23\Sdk\AutoImport.props 14

How can i fix them and my .NET SDK version is 7.0.402

Lindokuhle-Makanda commented 2 months ago
net7.0 enable enable all runtime; build; native; contentfiles; analyzers; buildtransitive
maraf commented 2 months ago

It seems like the content of your csproj Bloggie.Web.csproj is not valid. Can you please share it's content here or privately through https://developercommunity.visualstudio.com and link the created ticket here?

dotnet-policy-service[bot] commented 2 weeks ago

This issue has been marked needs-author-action and may be missing some important information.

dotnet-policy-service[bot] commented 3 days ago

This issue has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.