Revert the PRs that moved Tizen out and added a pack step for library templates (#7072)
This commit is contained in:
Родитель
7dda2c6ef6
Коммит
f19eec2bcc
|
@ -127,7 +127,7 @@
|
|||
<PackageReference Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" '$(_MauiTargetPlatformIsTizen)' == 'True' ">
|
||||
<PackageReference Include="Tizen.UIExtensions.ElmSharp" PrivateAssets="all" />
|
||||
<PackageReference Include="Tizen.UIExtensions.ElmSharp" />
|
||||
<PackageReference Include="Microsoft.Maui.Graphics.Skia" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
/>
|
||||
<PackageReference
|
||||
Update="Tizen.UIExtensions.ElmSharp"
|
||||
Version="$(SamsungTizenUIExtensionsElmSharpPackageVersion)"
|
||||
Version="$(TizenUIExtensionsVersion)"
|
||||
/>
|
||||
<PackageReference
|
||||
Update="Svg.Skia"
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
<MicrosoftmacOSSdkPackageVersion>12.3.303</MicrosoftmacOSSdkPackageVersion>
|
||||
<MicrosofttvOSSdkPackageVersion>15.4.303</MicrosofttvOSSdkPackageVersion>
|
||||
<SamsungTizenSdkPackageVersion>7.0.300-rc.3.0</SamsungTizenSdkPackageVersion>
|
||||
<SamsungTizenUIExtensionsElmSharpPackageVersion>0.8.0-pre1</SamsungTizenUIExtensionsElmSharpPackageVersion>
|
||||
<!-- emsdk -->
|
||||
<MicrosoftNETWorkloadEmscriptenManifest60300PackageVersion>6.0.4</MicrosoftNETWorkloadEmscriptenManifest60300PackageVersion>
|
||||
<MicrosoftNETWorkloadEmscriptenPackageVersion>$(MicrosoftNETWorkloadEmscriptenManifest60300PackageVersion)</MicrosoftNETWorkloadEmscriptenPackageVersion>
|
||||
|
@ -58,6 +57,7 @@
|
|||
<MicrosoftDotNetXHarnessTestRunnersCommonVersion>1.0.0-prerelease.22256.2</MicrosoftDotNetXHarnessTestRunnersCommonVersion>
|
||||
<MicrosoftDotNetXHarnessTestRunnersXunitVersion>1.0.0-prerelease.22256.2</MicrosoftDotNetXHarnessTestRunnersXunitVersion>
|
||||
<MicrosoftDotNetXHarnessCLIVersion>1.0.0-prerelease.22256.2</MicrosoftDotNetXHarnessCLIVersion>
|
||||
<TizenUIExtensionsVersion>0.8.0-pre1</TizenUIExtensionsVersion>
|
||||
<SvgSkiaVersion>0.4.1</SvgSkiaVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -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>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->",
|
||||
"<TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks>");
|
||||
|
||||
// Build
|
||||
RunMSBuildWithDotNet(projectName, properties, warningsAsError: true, forceDotNetBuild: forceDotNetBuild);
|
||||
|
||||
// Pack
|
||||
if (alsoPack.Contains(templateName)) {
|
||||
var packProperties = new Dictionary<string, string>(properties);
|
||||
packProperties["PackageVersion"] = FileReadText("GitInfo.txt").Trim();
|
||||
RunMSBuildWithDotNet(projectName, packProperties, warningsAsError: true, forceDotNetBuild: forceDotNetBuild, target: "Pack");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
|
||||
<PackageReference Include="Xamarin.Android.Glide" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('tizen'))">
|
||||
<PackageReference Include="Microsoft.Maui.Graphics.Skia" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Essentials\src\Essentials.csproj" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<PackageReference Include="Microsoft.Graphics.Win2D" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" '$(TargetPlatformIdentifier)' == 'tizen'" >
|
||||
<PackageReference Include="Tizen.UIExtensions.ElmSharp" />
|
||||
<PackageReference Include="Microsoft.Maui.Graphics.Skia" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -80,12 +80,6 @@
|
|||
OldValue="@MicrosoftWindowsSDKBuildToolsPackageVersion@"
|
||||
NewValue="$(MicrosoftWindowsSDKBuildToolsPackageVersion)"
|
||||
/>
|
||||
<ReplaceText
|
||||
Input="$(IntermediateOutputPath)BundledVersions.targets"
|
||||
Output="$(IntermediateOutputPath)BundledVersions.targets"
|
||||
OldValue="@SamsungTizenUIExtensionsElmSharpPackageVersion@"
|
||||
NewValue="$(SamsungTizenUIExtensionsElmSharpPackageVersion)"
|
||||
/>
|
||||
<ItemGroup>
|
||||
<None
|
||||
Include="$(IntermediateOutputPath)BundledVersions.targets"
|
||||
|
|
|
@ -72,8 +72,5 @@
|
|||
<ItemGroup Condition=" ('$(UseMaui)' == 'true' or '$(UseMauiCore)' == 'true') and ('$(TargetPlatformIdentifier)' == 'windows') ">
|
||||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="@MicrosoftWindowsSDKBuildToolsPackageVersion@" IsImplicitlyDefined="true" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" ('$(UseMaui)' == 'true' or '$(UseMauiCore)' == 'true') and ('$(TargetPlatformIdentifier)' == 'tizen') ">
|
||||
<PackageReference Include="Tizen.UIExtensions.ElmSharp" Version="@SamsungTizenUIExtensionsElmSharpPackageVersion@" IsImplicitlyDefined="true" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче