Skip to content

Commit

Permalink
Merge pull request #31 from egvijayanand/working
Browse files Browse the repository at this point in the history
Added target platform options
  • Loading branch information
egvijayanand authored Feb 1, 2022
2 parents dec11f7 + f99de77 commit 6d44741
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
<TargetFrameworks Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">$(TargetFrameworks);net6.0-ios;net6.0-maccatalyst;net6.0-windows10.0.19041</TargetFrameworks>
<!-- Targets possible from macOS -->
<TargetFrameworks Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">$(TargetFrameworks);net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<!-- Minimum Target OS Version for Windows Platform -->
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
<!-- .NET MAUI -->
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<!-- Project Options -->
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MauiClassLib</RootNamespace>
<!-- Target Platform Options -->
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
<!-- Minimum Target OS Version for Windows Platform -->
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion src/ItemTemplates/MauiTemplatesCLI/PackageVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.5
1.0.6
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<PackageType>Template</PackageType>
<PackageId>VijayAnand.MauiTemplates</PackageId>
<PackageVersion>1.0.5</PackageVersion>
<PackageVersion>1.0.6</PackageVersion>
<Title>.NET MAUI Templates</Title>
<Authors>Vijay Anand E G</Authors>
<Copyright>Copyright &#169; 2022 Vijay Anand E G</Copyright>
Expand Down
4 changes: 3 additions & 1 deletion src/ItemTemplates/MauiTemplatesCLI/release-notes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
What's new in ver. 1.0.5:
What's new in ver. 1.0.6:

Templates have been updated for .NET MAUI Preview 12.

Added the target platform options to the project file.

0 comments on commit 6d44741

Please sign in to comment.