|
6 | 6 | <MauiWorkloadTargetFrameworkVersion>@MAUI_DOTNET_VERSION@</MauiWorkloadTargetFrameworkVersion> |
7 | 7 | <MauiVersion Condition=" '$(MauiVersion)' == '' ">$(MauiWorkloadVersion)</MauiVersion> |
8 | 8 |
|
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 | | - |
16 | 9 | <!-- |
17 | 10 | If opted into NuGet Central Package Management, $(DisableMauiImplicitPackageReferences) defaults to true |
18 | 11 | https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management |
|
38 | 31 |
|
39 | 32 | One thing to note: the old and unsupported $(UseMauiNuGets) property is the same as the new |
40 | 33 | $(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. |
42 | 35 | --> |
43 | 36 | <ItemGroup Condition=" '$(DisableMauiImplicitPackageReferences)' != 'true' and '$(UseMauiNuGets)' != 'true' "> |
44 | 37 | <_MauiImplicitPackageReference Include="Microsoft.Maui.Resizetizer" Version="$(MauiVersion)" PrivateAssets="all" Condition=" '$(UseMauiAssets)' == 'true' " /> |
|
51 | 44 | <_MauiImplicitPackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" Condition=" '$(UseMaui)' == 'true' "> |
52 | 45 | <PrivateAssets Condition=" '$(OutputType)' == 'Library' and '$(AndroidApplication)' != 'true' and '$(IsAppExtension)' != 'true'">all</PrivateAssets> |
53 | 46 | </_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> |
57 | 47 | <_MauiImplicitPackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" Condition=" '$(UseMaui)' == 'true' and '$(UsingMicrosoftNETSdkRazor)' == 'true' "> |
58 | 48 | <PrivateAssets Condition=" '$(OutputType)' == 'Library' and '$(AndroidApplication)' != 'true' and '$(IsAppExtension)' != 'true'">all</PrivateAssets> |
59 | 49 | </_MauiImplicitPackageReference> |
|
0 commit comments