Skip to content

Commit 456b0db

Browse files
authored
Remove compatibility project from workloads (#30316)
1 parent 7c5803c commit 456b0db

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

src/Workload/Microsoft.Maui.Sdk/Sdk/BundledVersions.in.targets

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
<MauiWorkloadTargetFrameworkVersion>@MAUI_DOTNET_VERSION@</MauiWorkloadTargetFrameworkVersion>
77
<MauiVersion Condition=" '$(MauiVersion)' == '' ">$(MauiWorkloadVersion)</MauiVersion>
88

9-
<!--
10-
Indicates that the Microsoft.Maui.Controls.Compatibility package should be implicitly
11-
referenced. This will eventually switch to false by default and become opt, in,
12-
however Visual Studio currently depends on this assembly being loaded for Live Visual Tree.
13-
-->
14-
<UseMauiCompat Condition=" '$(UseMauiCompat)' == '' and '$(UseMaui)' == 'true' ">false</UseMauiCompat>
15-
169
<!--
1710
If opted into NuGet Central Package Management, $(DisableMauiImplicitPackageReferences) defaults to true
1811
https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management
@@ -38,7 +31,7 @@
3831
3932
One thing to note: the old and unsupported $(UseMauiNuGets) property is the same as the new
4033
$(DisableMauiImplicitPackageReferences) property and is just kept for compatibility. It should
41-
not be used any any project, but there are some existing projects that have used them.
34+
not be used any project, but there are some existing projects that have used them.
4235
-->
4336
<ItemGroup Condition=" '$(DisableMauiImplicitPackageReferences)' != 'true' and '$(UseMauiNuGets)' != 'true' ">
4437
<_MauiImplicitPackageReference Include="Microsoft.Maui.Resizetizer" Version="$(MauiVersion)" PrivateAssets="all" Condition=" '$(UseMauiAssets)' == 'true' " />
@@ -51,9 +44,6 @@
5144
<_MauiImplicitPackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" Condition=" '$(UseMaui)' == 'true' ">
5245
<PrivateAssets Condition=" '$(OutputType)' == 'Library' and '$(AndroidApplication)' != 'true' and '$(IsAppExtension)' != 'true'">all</PrivateAssets>
5346
</_MauiImplicitPackageReference>
54-
<_MauiImplicitPackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" IsMauiImplicitOptionalPackageReference="true" Condition=" '$(UseMaui)' == 'true' and '$(UseMauiCompat)' == 'true' ">
55-
<PrivateAssets Condition=" '$(OutputType)' == 'Library' and '$(AndroidApplication)' != 'true' and '$(IsAppExtension)' != 'true'">all</PrivateAssets>
56-
</_MauiImplicitPackageReference>
5747
<_MauiImplicitPackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" Condition=" '$(UseMaui)' == 'true' and '$(UsingMicrosoftNETSdkRazor)' == 'true' ">
5848
<PrivateAssets Condition=" '$(OutputType)' == 'Library' and '$(AndroidApplication)' != 'true' and '$(IsAppExtension)' != 'true'">all</PrivateAssets>
5949
</_MauiImplicitPackageReference>

src/Workload/Microsoft.NET.Sdk.Maui.Manifest/WorkloadManifest.in.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"Microsoft.Maui.Controls.Build.Tasks",
3939
"Microsoft.Maui.Controls.Core",
4040
"Microsoft.Maui.Controls.Xaml",
41-
"Microsoft.Maui.Controls.Compatibility",
4241
"Microsoft.Maui.Essentials"
4342
]
4443
},

src/Workload/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ The idea, is a project to be able to set `$(UseMaui)`:
1919
* `Microsoft.NET.Sdk.Maui` - workload manifest
2020
* `Microsoft.Maui.Sdk` - workload SDK
2121
* `Microsoft.Maui.Controls` - nuget
22-
* `Microsoft.Maui.Controls.Compatibility` - nuget
2322
* `Microsoft.Maui.Templates` - nuget
2423

2524
`BlazorWebView` is an addition to MAUI, project can currently opt into

0 commit comments

Comments
 (0)