Update to 100.15.1 - preview4

824
10
08-19-2022 05:58 PM
MichaelDavis3
Occasional Contributor III

Has anyone been able to update to the 100.15 preview for MAUI? I keep getting package restore errors from Nuget.  Have tried clearing the nugget cache with not luck.

0 Kudos
10 Replies
dotMorten_esri
Esri Notable Contributor

What errors are you getting?

Could you try and delete the \obj\ folder and restart Visual Studio?

0 Kudos
MichaelDavis3
Occasional Contributor III

No errors to speak of - it just runs through what seems like thousands of compatibility checks and then fails:

MichaelDavis3_0-1661370968685.png

Tried deleting obj folder, tried uninstalling Preview 3, no dice.  I can reinstall Preview 3 with no issues.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Were you able to get this working? If not, can you share your csproj?

 

0 Kudos
MichaelDavis3
Occasional Contributor III

We actually had to abandon MAUI for now and go back to XF5 as the project requires MSAL and AppCenter, both of which are VERY not ready for prime-time.

I can share the csproj if it would help diagnose what's up.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

I'm curious whether you were specifically targeting net6.0-ios15.4, and whether just specifying net6.0-ios might make any difference?

 

0 Kudos
MichaelDavis3
Occasional Contributor III

here's what's in the project file for the MAUI version of the app

 

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>net6.0-android;net6.0-ios</TargetFrameworks>
    <OutputType>Exe</OutputType>
    <RootNamespace>simsa.Mobile</RootNamespace>
    <UseMaui>true</UseMaui>
    <SingleProject>true</SingleProject>
    <ImplicitUsings>enable</ImplicitUsings>
    <!-- Display name -->
    <ApplicationTitle>SIMSA</ApplicationTitle>
    <!-- App Identifier -->
    <ApplicationId>com.hdrinc.gis.simsa</ApplicationId>
    <!-- Versions -->
    <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
    <ApplicationVersion>1</ApplicationVersion>
    <!-- Required for C# Hot Reload -->
    <UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter>
    <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion>
    <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">23.0</SupportedOSPlatformVersion>
    <UserSecretsId>d3e58def-2f84-474a-9667-77585fcfbc8a</UserSecretsId>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0-ios|AnyCPU'">
    <MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
    <CodesignProvision>Automatic</CodesignProvision>
    <CodesignKey>iPhone Developer</CodesignKey>
    <CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0-ios|AnyCPU'">
    <CodesignProvision>Automatic</CodesignProvision>
    <CodesignKey>iPhone Developer</CodesignKey>
  </PropertyGroup>
  <ItemGroup>
    <!-- App Icon -->
    <MauiIcon Include="Resources\appicon.png" ForegroundFile="Resources\appicon.png" />
    <!-- Splash Screen -->
    <MauiSplashScreen Include="Resources\splash.png" Color="#4298b5" BaseSize="128,128" />
    <!-- Images -->
    <MauiImage Include="Resources\Images\*" />
    <!-- Custom Fonts -->
    <MauiFont Include="Resources\Fonts\*" />
    <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
    <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
  </ItemGroup>
  <ItemGroup>
    <None Remove="GrialLicense" />
    <None Remove="Esri.ArcGISRuntime" />
    <None Remove="Esri.ArcGISRuntime.Maui" />
    <None Remove="Rg.Plugins.Popup" />
    <None Remove="Mopups" />
    <None Remove="Realm" />
    <None Remove="CommunityToolkit.Maui" />
    <None Remove="Microsoft.EntityFrameworkCore.Sqlite" />
    <None Remove="Platforms\Android\Linker.xml" />
    <None Remove="Platforms\iOS\Linker.xml" />
    <None Remove="Models\" />
    <None Remove="Services\" />
    <None Remove="Microsoft.Identity.Client" />
    <None Remove="Microsoft.AppCenter" />
    <None Remove="Microsoft.AppCenter.Crashes" />
    <None Remove="Microsoft.AppCenter.Analytics" />
    <None Remove="Microsoft.Extensions.Configuration.UserSecrets" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="GrialLicense" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="UXDivers.GrialMaui" Version="4.0.48" />
    <PackageReference Include="CommunityToolkit.Maui" Version="1.2.0" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.0-preview.7.22376.2" />
    <PackageReference Include="Esri.ArcGISRuntime.Maui" Version="100.14.1-preview3" />
    <PackageReference Include="Microsoft.Identity.Client" Version="4.46.1" />
    <PackageReference Include="Microsoft.AppCenter" Version="4.5.3" />
    <PackageReference Include="Microsoft.AppCenter.Crashes" Version="4.5.3" />
    <PackageReference Include="Microsoft.AppCenter.Analytics" Version="4.5.3" />
    <PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="7.0.0-preview.7.22375.6" />
  </ItemGroup>
  <ItemGroup></ItemGroup>
  <ItemGroup Condition="'$(RuntimeIdentifier)' == 'iossimulator-x64'">
        <PackageReference Include="Esri.ArcGISRuntime.Xamarin.iOS" Version="100.14.1" GeneratePathProperty="true" />
        <Content Include="$(PkgEsri_ArcGISRuntime_Xamarin_iOS)\resources\shaders\simx64\*.metallib" Visible="false" Condition="'$(RuntimeIdentifier)' == 'iossimulator-x64'">
            <Link>RuntimeCoreNet\resources\shaders\%(RecursiveDir)%(Filename)%(Extension)</Link>
            <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        </Content>    
    </ItemGroup>
  <ItemGroup>
    <Compile Update="Resx\AppResources.Designer.cs">
      <DesignTime>True</DesignTime>
      <AutoGen>True</AutoGen>
      <DependentUpon>AppResources.resx</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Update="Resx\AppResources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>AppResources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <MauiXaml Update="Views\LayerControlView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\MainMapView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\MapTabView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\SearchView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\SettingsView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\StructureDetailView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\InspectionDetailView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\InspectionSummaryView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\InspectionElementListView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\InspectionEntryCell_Phone.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\InspectionEntryCell_Tablet.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\MyInspectionsView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\StructureListView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\NewMapPopupView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Condition=" '$(EnableDefaultXamlItems)' == 'true' " Update="Views\SimsaMainPage.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Update="Views\StructureElementDetailView.xaml">
      <SubType></SubType>
    </MauiXaml>
    <MauiXaml Condition=" '$(EnableDefaultXamlItems)' == 'true' " Update="Views\InspectionElementCollectionView.xaml">
      <SubType></SubType>
    </MauiXaml>
  </ItemGroup>
  <ItemGroup>
    <LinkDescription Include="Platforms\Android\Linker.xml" />
    <LinkDescription Include="Platforms\iOS\Linker.xml" />
  </ItemGroup>
  <ItemGroup>
    <Folder Include="Models\" />
    <Folder Include="Services\" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\simsa.Core\simsa.Core.csproj" />
  </ItemGroup>
</Project>
0 Kudos
dotMorten_esri
Esri Notable Contributor

That project file is referencing 100.14.1 though?

0 Kudos
MichaelDavis3
Occasional Contributor III

Yes when it fails to update to 100.15-preview4 it stays at 100.14.1-preview3

0 Kudos
MichaelDavis3
Occasional Contributor III

Of course your message prompted me to revisit the project - which I haven't opened or modified since the last message - and the update worked just fine.

 

Gotta love Visual Studio!

0 Kudos