You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can’t tell what it is but every time I open my MAUI project in Visual Studio, the NuGet package references show errors:
Visual Studio doesn’t show the reason for these package references to fail.
What is causing this error? Please help, I’m not able to compile and finish my project.
`Shop.csproj` project file
<ProjectSdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
<TargetFrameworksCondition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --><!-- <TargetFrameworks>$(TargetFrameworks);net9.0-tizen</TargetFrameworks> --><!-- Note for MacCatalyst: The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64. When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>. The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated; either BOTH runtimes must be indicated or ONLY macatalyst-x64. --><!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
<OutputType>Exe</OutputType>
<RootNamespace>Shop</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NeutralLanguage>en</NeutralLanguage>
<!-- Display name -->
<ApplicationTitle>Shop</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>de.shop</ApplicationId>
<!-- Versions -->
<ApplicationDisplayVersion>0.1</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
<WindowsPackageType>None</WindowsPackageType>
<SupportedOSPlatformVersionCondition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersionCondition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersionCondition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersionCondition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersionCondition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersionCondition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
</PropertyGroup>
<PropertyGroupCondition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-android|AnyCPU'">
<AndroidLinkTool>r8</AndroidLinkTool>
</PropertyGroup>
<PropertyGroupCondition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiIconInclude="Resources\AppIcon\appicon.svg"ForegroundFile="Resources\AppIcon\appiconfg.svg"Color="#512BD4" />
<!-- Splash Screen -->
<MauiSplashScreenInclude="Resources\Splash\splash.svg"Color="#512BD4"BaseSize="128,128" />
<!-- Images -->
<MauiImageInclude="Resources\Images\*" />
<MauiImageUpdate="Resources\Images\dotnet_bot.png"Resize="True"BaseSize="300,185" />
<!-- Custom Fonts -->
<MauiFontInclude="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAssetInclude="Resources\Raw\**"LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageReferenceInclude="Microsoft.Maui.Controls"Version="$(MauiVersion)" />
<PackageReferenceInclude="Microsoft.Extensions.Logging.Debug"Version="9.0.8" />
</ItemGroup>
</Project>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I can’t tell what it is but every time I open my MAUI project in Visual Studio, the NuGet package references show errors:
Visual Studio doesn’t show the reason for these package references to fail.
What is causing this error? Please help, I’m not able to compile and finish my project.
`Shop.csproj` project file
Beta Was this translation helpful? Give feedback.
All reactions