NUGET UPDATE

Giorgio Sfiligoi 266 Reputation points
2024-11-18T09:28:04.1766667+00:00

I am developing with .NET MAUI 8 in VS version 17.12.0.

NuGet Package Manager offers an update for library Microsoft.Maui.Controls, from version 8.0.83 currently installed, to version 9.0.10.

However, after installing this update, I get a number of errors:

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Coding\source\repos\LearnMAUI\FirstApp\obj\Debug\net8.0-android\resizetizer\sp\drawable-mdpi\splash.png'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at Microsoft.Maui.Resizetizer.SkiaSharpTools.Save(String destination, SKBitmap tempBitmap) in //src/SingleProject/Resizetizer/src/SkiaSharpTools.cs:line 153 at Microsoft.Maui.Resizetizer.SkiaSharpTools.Resize(DpiPath dpi, String destination, Double additionalScale, Boolean dpiSizeIsAbsolute) in //src/SingleProject/Resizetizer/src/SkiaSharpTools.cs:line 74 at Microsoft.Maui.Resizetizer.Resizer.Resize(DpiPath dpi, String inputsFile) in //src/SingleProject/Resizetizer/src/Resizer.cs:line 107 at Microsoft.Maui.Resizetizer.GenerateSplashAndroidResources.WriteImages(Resizer resizer) in //src/SingleProject/Resizetizer/src/GenerateSplashAndroidResources.cs:line 72 at Microsoft.Maui.Resizetizer.GenerateSplashAndroidResources.Execute() in /_/src/SingleProject/Resizetizer/src/GenerateSplashAndroidResources.cs:line 47

So I rolled back this update. Any clue?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,693 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 45,026 Reputation points Microsoft Vendor
    2024-11-19T01:07:24.3866667+00:00

    Hello,

    This is a compatibility error. The Microsoft.Maui.Controls dependency in version 9.0.10 has been changed to .NET 9, so it will cause an error that it cannot be compiled in a .NET 8.0 project.

    The last version based on .net 8.0 is 8.0.100. You can refer to the Nuget Package page Microsoft.Maui.Controls 8.0.100 to access this information.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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