From f19eec2bcce439d64fb9c6467eee74d4544dcfbf Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Thu, 12 May 2022 13:05:37 +0200 Subject: [PATCH] Revert the PRs that moved Tizen out and added a pack step for library templates (#7072) --- ...icrosoft.Maui.Controls.MultiTargeting.targets | 2 +- eng/Microsoft.Extensions.targets | 2 +- eng/Versions.props | 2 +- eng/cake/dotnet.cake | 16 ++++++++++++++++ src/Core/src/Core.csproj | 3 --- .../Microsoft.Maui.Dependencies.csproj | 1 + .../Microsoft.Maui.Sdk/Microsoft.Maui.Sdk.csproj | 6 ------ .../Sdk/BundledVersions.in.targets | 3 --- 8 files changed, 20 insertions(+), 15 deletions(-) diff --git a/.nuspec/Microsoft.Maui.Controls.MultiTargeting.targets b/.nuspec/Microsoft.Maui.Controls.MultiTargeting.targets index 6d16a33ad4ed..4a61874b157e 100644 --- a/.nuspec/Microsoft.Maui.Controls.MultiTargeting.targets +++ b/.nuspec/Microsoft.Maui.Controls.MultiTargeting.targets @@ -127,7 +127,7 @@ - + diff --git a/eng/Microsoft.Extensions.targets b/eng/Microsoft.Extensions.targets index 0cdb0824fe65..6b93e86748fa 100644 --- a/eng/Microsoft.Extensions.targets +++ b/eng/Microsoft.Extensions.targets @@ -111,7 +111,7 @@ /> 12.3.303 15.4.303 7.0.300-rc.3.0 - 0.8.0-pre1 6.0.4 $(MicrosoftNETWorkloadEmscriptenManifest60300PackageVersion) @@ -58,6 +57,7 @@ 1.0.0-prerelease.22256.2 1.0.0-prerelease.22256.2 1.0.0-prerelease.22256.2 + 0.8.0-pre1 0.4.1 diff --git a/eng/cake/dotnet.cake b/eng/cake/dotnet.cake index 1b8c2d2049c9..cc4feae959c7 100644 --- a/eng/cake/dotnet.cake +++ b/eng/cake/dotnet.cake @@ -122,6 +122,10 @@ Task("dotnet-templates") } }, }; + var alsoPack = new [] { + "mauilib" + }; + foreach (var template in templates) { foreach (var forceDotNetBuild in new [] { true, false }) @@ -143,8 +147,20 @@ Task("dotnet-templates") if (template.Value != null) template.Value(projectName); + // Enable Tizen + ReplaceTextInFiles($"{projectName}/*.csproj", + "", + "$(TargetFrameworks);net6.0-tizen"); + // Build RunMSBuildWithDotNet(projectName, properties, warningsAsError: true, forceDotNetBuild: forceDotNetBuild); + + // Pack + if (alsoPack.Contains(templateName)) { + var packProperties = new Dictionary(properties); + packProperties["PackageVersion"] = FileReadText("GitInfo.txt").Trim(); + RunMSBuildWithDotNet(projectName, packProperties, warningsAsError: true, forceDotNetBuild: forceDotNetBuild, target: "Pack"); + } } } diff --git a/src/Core/src/Core.csproj b/src/Core/src/Core.csproj index 28665f3badf7..da9dbc18a4f3 100644 --- a/src/Core/src/Core.csproj +++ b/src/Core/src/Core.csproj @@ -20,9 +20,6 @@ - - - diff --git a/src/Workload/Microsoft.Maui.Dependencies/Microsoft.Maui.Dependencies.csproj b/src/Workload/Microsoft.Maui.Dependencies/Microsoft.Maui.Dependencies.csproj index 88a9dd12518d..2bdb652b0923 100644 --- a/src/Workload/Microsoft.Maui.Dependencies/Microsoft.Maui.Dependencies.csproj +++ b/src/Workload/Microsoft.Maui.Dependencies/Microsoft.Maui.Dependencies.csproj @@ -34,6 +34,7 @@ + diff --git a/src/Workload/Microsoft.Maui.Sdk/Microsoft.Maui.Sdk.csproj b/src/Workload/Microsoft.Maui.Sdk/Microsoft.Maui.Sdk.csproj index 0199936e9fe8..01794e7a3832 100644 --- a/src/Workload/Microsoft.Maui.Sdk/Microsoft.Maui.Sdk.csproj +++ b/src/Workload/Microsoft.Maui.Sdk/Microsoft.Maui.Sdk.csproj @@ -80,12 +80,6 @@ OldValue="@MicrosoftWindowsSDKBuildToolsPackageVersion@" NewValue="$(MicrosoftWindowsSDKBuildToolsPackageVersion)" /> - - - - \ No newline at end of file