Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit ab57c66

Browse files
authored
Merge pull request #132 from dotnet/update-net7
Update the project to .NET 7 latest version
2 parents a441ce8 + aab271e commit ab57c66

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

Microsoft.Maui.Graphics.Controls.MultiTargeting.targets

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
2-
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.iOS')) != true AND $(TargetFramework.StartsWith('net6.0-ios')) != true AND $(TargetFramework.StartsWith('net6.0-maccatalyst')) != true ">
2+
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.iOS')) != true AND $(TargetFramework.StartsWith('net7.0-ios')) != true AND $(TargetFramework.StartsWith('net7.0-maccatalyst')) != true ">
33
<Compile Remove="**\**\*.iOS.cs" />
44
<None Include="**\**\*.iOS.cs" />
55
<Compile Remove="**\iOS\**\*.cs" />
@@ -11,13 +11,13 @@
1111
<Compile Remove="**\Mac\**\*.cs" />
1212
<None Include="**\Mac\**\*.cs" />
1313
</ItemGroup>
14-
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac')) != true AND $(TargetFramework.StartsWith('Xamarin.iOS')) != true AND $(TargetFramework.StartsWith('net6.0-ios')) != true AND $(TargetFramework.StartsWith('net6.0-maccatalyst')) != true">
14+
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac')) != true AND $(TargetFramework.StartsWith('Xamarin.iOS')) != true AND $(TargetFramework.StartsWith('net7.0-ios')) != true AND $(TargetFramework.StartsWith('net6.0-maccatalyst')) != true">
1515
<Compile Remove="**\*.MaciOS.cs" />
1616
<None Include="**\*.MaciOS.cs" />
1717
<Compile Remove="**\MaciOS\**\*.cs" />
1818
<None Include="**\MaciOS\**\*.cs" />
1919
</ItemGroup>
20-
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) != true AND $(TargetFramework.StartsWith('net6.0-android')) != true ">
20+
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) != true AND $(TargetFramework.StartsWith('net7.0-android')) != true ">
2121
<Compile Remove="**\**\*.Android.cs" />
2222
<None Include="**\**\*.Android.cs" />
2323
<Compile Remove="**\Android\**\*.cs" />
@@ -55,16 +55,16 @@
5555
</ItemGroup>
5656

5757
<!-- Android -->
58-
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-android'))">
58+
<PropertyGroup Condition="$(TargetFramework.StartsWith('net7.0-android'))">
5959
<DefineConstants>$(DefineConstants);MONOANDROID</DefineConstants>
6060
</PropertyGroup>
6161

6262
<!-- iOS -->
63-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0-ios' ">
63+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net7.0-ios' ">
6464
<DefineConstants>$(DefineConstants);IOS</DefineConstants>
6565
</PropertyGroup>
6666

67-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0-maccatalyst' ">
67+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net7.0-maccatalyst' ">
6868
<DefineConstants>$(DefineConstants);MACCATALYST;IOS</DefineConstants>
6969
</PropertyGroup>
7070

@@ -82,8 +82,4 @@
8282
<DefineConstants>WINDOWS_UWP;$(DefineConstants)</DefineConstants>
8383
</PropertyGroup>
8484

85-
<ItemGroup Condition="$(TargetFramework.Contains('-windows')) == true ">
86-
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.3.1" />
87-
<PackageReference Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop" Version="6.0.501" />
88-
</ItemGroup>
8985
</Project>

src/GraphicsControls.Sample/GraphicsControls.Sample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
7-
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
7+
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
88
<OutputType>Exe</OutputType>
99
<RootNamespace>GraphicsControls.Sample</RootNamespace>
1010
<UseMaui>true</UseMaui>
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="MSBuild.Sdk.Extras">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
4-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net6.0-windows10.0.19041</TargetFrameworks>
3+
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
4+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net7.0-windows10.0.19041</TargetFrameworks>
55
<RootNamespace>Microsoft.Maui.Graphics.Controls</RootNamespace>
66
<AssemblyName>Microsoft.Maui.Graphics.Controls</AssemblyName>
77
<LangVersion>10.0</LangVersion>
@@ -12,8 +12,5 @@
1212
<PropertyGroup>
1313
<PackageId>Microsoft.Maui.Graphics.Controls</PackageId>
1414
</PropertyGroup>
15-
<ItemGroup>
16-
<PackageReference Include="Microsoft.Maui.Graphics" Version="6.0.501" />
17-
</ItemGroup>
1815
<Import Project="..\..\Microsoft.Maui.Graphics.Controls.MultiTargeting.targets" />
1916
</Project>

0 commit comments

Comments
 (0)