-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[net7] include net6 templates (#8203)
* Previous template pack version - Make this the released nuget package version as defined in version.props by a new variable. * Make --framework and -f work! * Support older SDKs Co-authored-by: Matthew Leibowitz <[email protected]>
- Loading branch information
1 parent
2d1b9f4
commit 724e795
Showing
10 changed files
with
119 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/Workload/Microsoft.NET.Sdk.Maui/WorkloadManifest.in.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<Project> | ||
|
||
<ItemGroup Condition=" '$(UseMaui)' == 'true' or '$(UseMauiCore)' == 'true' "> | ||
<ProjectCapability Include="UseMauiCore" /> | ||
<ProjectCapability Condition=" '$(UseMaui)' == 'true' " Include="UseMaui" /> | ||
</ItemGroup> | ||
|
||
<Import | ||
Condition=" ('$(UseMaui)' == 'true' or '$(UseMauiCore)' == 'true' or '$(UseMauiEssentials)' == 'true' or '$(UseMauiAssets)' == 'true') and ($([MSBuild]::VersionEquals($(TargetFrameworkVersion), '@MAUI_DOTNET_VERSION@'))) " | ||
Project="Sdk.targets" Sdk="Microsoft.Maui.Sdk" | ||
/> | ||
<Import | ||
Condition=" ('$(UseMaui)' == 'true' or '$(UseMauiCore)' == 'true' or '$(UseMauiEssentials)' == 'true' or '$(UseMauiAssets)' == 'true') and ($([MSBuild]::VersionEquals($(TargetFrameworkVersion), '@MAUI_PREVIOUS_DOTNET_VERSION@'))) " | ||
Project="Sdk.targets" Sdk="Microsoft.Maui.Sdk-@MAUI_PREVIOUS_DOTNET_VERSION@" | ||
/> | ||
|
||
<Import | ||
Condition=" '$(UseMaui)' == 'true' or '$(UseMauiAssets)' == 'true' " | ||
Project="Sdk.targets" Sdk="Microsoft.Maui.Resizetizer.Sdk" | ||
/> | ||
|
||
<!-- | ||
Previous versions of the .NET MAUI SDK used **FromWorkload**, so replace with explicit versions. | ||
The BundledVersions.targets that is imported is from the previous SDK, so all the other values are correct. | ||
--> | ||
<ItemGroup Condition=" $([MSBuild]::VersionEquals($(TargetFrameworkVersion), '@MAUI_PREVIOUS_DOTNET_VERSION@')) "> | ||
<KnownFrameworkReference | ||
Update="Microsoft.Maui.Core" | ||
DefaultRuntimeFrameworkVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
LatestRuntimeFrameworkVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
TargetingPackVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
/> | ||
<KnownFrameworkReference | ||
Update="Microsoft.Maui.Controls" | ||
DefaultRuntimeFrameworkVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
LatestRuntimeFrameworkVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
TargetingPackVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
/> | ||
<KnownFrameworkReference | ||
Update="Microsoft.Maui.Essentials" | ||
DefaultRuntimeFrameworkVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
LatestRuntimeFrameworkVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
TargetingPackVersion="@MAUI_PREVIOUS_DOTNET_RELEASED_NUGET_VERSION@" | ||
/> | ||
</ItemGroup> | ||
|
||
</Project> |
14 changes: 0 additions & 14 deletions
14
src/Workload/Microsoft.NET.Sdk.Maui/WorkloadManifest.targets
This file was deleted.
Oops, something went wrong.