Skip to content

Commit

Permalink
net8
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Nov 15, 2023
1 parent e25c358 commit c9b432c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 60 deletions.
19 changes: 2 additions & 17 deletions ProjectTemplates/ShinyApp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [{
"choice": "net7.0",
"description": "Target .NET 7.0"
},{
"choice": "net8.0",
"description": "Target .NET 8.0"
}],
"replaces": "{DOTNET_TFM}",
"defaultValue": "net7.0"
"defaultValue": "net8.0"
},
"markuptype": {
"type": "parameter",
Expand Down Expand Up @@ -319,13 +316,6 @@
"description": "Sets all up all the necessary boilerplate for the MAUI App Actions",
"displayName": "Setup MAUI Essentials - App Actions"
},
"pureween": {
"type": "parameter",
"datatype": "bool",
"defaultValue": "false",
"description": "Add MAUI Workarounds from Shane Neuville (MAUI Engineer) - Documentation: https://github.com/PureWeen/ShanedlerSamples",
"displayName": "Add MAUI Workarounds (PureWeen.Maui.FixesAndWorkarounds)"
},
"communitytoolkit":{
"type": "parameter",
"datatype": "bool",
Expand Down Expand Up @@ -429,7 +419,7 @@
"datatype": "bool",
"defaultValue": "false",
"description": "Add SkiaSharp Extended (Lottie) - Documentation: https://github.com/mono/SkiaSharp.Extended",
"displayName": "Add SkiaSharp Extended (Lottie)"
"displayName": "Add SkiaSharp Extended (Lottie)"
},
"embedio": {
"type": "parameter",
Expand All @@ -454,11 +444,6 @@
"type": "bind",
"binding": "HostIdentifier"
},
"usenet8":{
"type": "computed",
"datatype": "bool",
"value": "(Framework == \"net8.0\")"
},
"usewebauthenticator":{
"type": "computed",
"datatype": "bool",
Expand Down
18 changes: 0 additions & 18 deletions ProjectTemplates/ShinyApp/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
#if skia || skiaextended
using SkiaSharp.Views.Maui.Controls.Hosting;
#endif
#if pureween
using Maui.FixesAndWorkarounds;
#endif
#if uraniumui
using UraniumUI;
#endif
Expand Down Expand Up @@ -151,21 +148,6 @@ static MauiAppBuilder RegisterInfrastructure(this MauiAppBuilder builder)
#endif
//+:cnd:noEmit
#endif
#if pureween
builder.ConfigureMauiWorkarounds();

// OR optional picks
// builder.ConfigureShellWorkarounds();
// builder.ConfigureTabbedPageWorkarounds();
// builder.ConfigureEntryNextWorkaround();
// builder.ConfigureKeyboardAutoScroll();
// builder.ConfigureFlyoutPageWorkarounds();
//-:cnd:noEmit
// #if ANDROID
// builder.ConfigureEntryFocusOpensKeyboard();
// #endif
//+:cnd:noEmit
#endif
#if useconfig
builder.Configuration.AddJsonPlatformBundle();
#endif
Expand Down
32 changes: 7 additions & 25 deletions ProjectTemplates/ShinyApp/ShinyApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@
<!--#if (usemaccatalyst)-->
<TargetFrameworks>$(TargetFrameworks);{DOTNET_TFM}-maccatalyst</TargetFrameworks>
<!--#endif-->
<!--#if (usenet8)-->
<MauiVersion>8.0.0-rc.2.9511</MauiVersion>
<!--#endif-->
<MauiVersion>8.0.3</MauiVersion>
<OutputType>Exe</OutputType>
<RootNamespace>ShinyApp</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand All @@ -29,7 +26,7 @@
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>

<ShinyVersion>3.1.1</ShinyVersion>
<ShinyVersion>3.1.2</ShinyVersion>
</PropertyGroup>

<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
Expand Down Expand Up @@ -79,54 +76,39 @@
<!--#endif-->
</ItemGroup>

<!--#if (usenet8)-->
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
</ItemGroup>

<!--#endif-->
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" Condition="'$(Configuration)' == 'Debug'" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" Condition="'$(Configuration)' == 'Debug'" />

<!--#if (shinyframework || communitytoolkit)-->
<PackageReference Include="CommunityToolkit.Maui" Version="6.1.0" />
<!--#endif-->
<!--#if (usecsharpmarkup)-->
<PackageReference Include="CommunityToolkit.Maui.Markup" Version="3.3.0" />
<PackageReference Include="CommunityToolkit.Maui.Markup" Version="3.3.1" />
<!--#endif-->
<!--#if (mediaelement)-->
<PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="2.0.0" />
<!--#endif-->
<!--#if (pureween)-->
<PackageReference Include="PureWeen.Maui.FixesAndWorkarounds" Version="1.4.9" />
<!--#endif-->
<!--#if (usemauimaps)-->
<!--#if (usenet8)-->
<PackageReference Include="Microsoft.Maui.Controls.Maps" Version="$(MauiVersion)" />
<!--#else-->
<PackageReference Include="Microsoft.Maui.Controls.Maps" Version="7.0.92" />
<!--#endif-->
<!--#endif-->
<!--#if (usegooglemaps)-->
<PackageReference Include="Onion.Maui.GoogleMaps" Version="5.0.1" />
<!--#endif-->
<!--#if (shinyframework)-->
<!--#if (net8)-->
<PackageReference Include="Prism.DryIoc.Maui" Version="9.0.271-pre" />
<PackageReference Include="ReactiveUI.Fody" Version="19.5.1" />
<PackageReference Include="Shiny.Framework" Version="4.0.0-beta-0010" />
<!--#else-->
<PackageReference Include="Prism.DryIoc.Maui" Version="8.1.273-pre" />
<PackageReference Include="ReactiveUI.Fody" Version="19.5.1" />
<PackageReference Include="Shiny.Framework" Version="3.0.0-beta-0012" />
<!--#endif-->
<PackageReference Include="Shiny.Framework" Version="4.0.0-beta-0013" />
<!--#else-->
<PackageReference Include="Shiny.Core" Version="$(ShinyVersion)" />
<PackageReference Include="Shiny.Hosting.Maui" Version="$(ShinyVersion)" />
<!--#endif-->
<!--#if (localization)-->
<PackageReference Include="Microsoft.Extensions.Localization" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.0" />
<!--#endif-->
<!--#if (usemsal)-->
<PackageReference Include="Microsoft.Identity.Client" Version="4.56.0" />
Expand Down Expand Up @@ -177,7 +159,7 @@
<PackageReference Include="Shiny.Health" Version="1.0.0-beta-0013" />
<!--#endif-->
<!--#if (barcodes)-->
<PackageReference Include="ZXing.Net.Maui.Controls" Version="0.3.0-preview.1" />
<PackageReference Include="ZXing.Net.Maui.Controls" Version="0.4.0" />
<!--#endif-->
<!--#if (storereview)-->
<PackageReference Include="Plugin.StoreReview" Version="6.0.0" />
Expand Down

0 comments on commit c9b432c

Please sign in to comment.