Share via

How to fix that running and build error in the visual studio community 2022

ANOJAN .T 5 Reputation points
2024-02-22T10:26:52.3333333+00:00

**Severity Code Description Project File Line Suppression State Error Project "C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.3\Sdk\AutoImport.props" was not imported by "C:\Program Files\dotnet\sdk\8.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props" at (14,3), due to the file being invalid. back C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.3\Sdk\AutoImport.props 14 **

**Severity Code Description Project File Line Suppression State Error Project "C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\7.0.101\Sdk\AutoImport.props" was not imported by "C:\Program Files\dotnet\sdk\8.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props" at (14,3), due to the file being invalid. back C:\Program Files\dotnet\packs\Microsoft.Maui.Resizetizer.Sdk\7.0.101\Sdk\AutoImport.props 14 **

Developer technologies | Visual Studio | Extensions
Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Testing
Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2024-02-22T10:26:52.3366667+00:00

    This error occurs when Visual Studio is unable to import the AutoImport.props file due to it being invalid. This issue is related to the Microsoft.Maui.Sdk and Microsoft.Maui.Resizetizer.Sdk packages. To fix this issue, try the following steps:

    1. Close Visual Studio.
    2. Delete the contents of the following folders:
      • C:\Program Files\dotnet\sdk\NuGetFallbackFolder
      • C:\Users{username}.nuget\packages
    3. Open Visual Studio and reload the solution.
    4. Rebuild the solution.

    If the issue persists, try uninstalling and reinstalling the Microsoft.Maui.Sdk and Microsoft.Maui.Resizetizer.Sdk packages.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.