fix: Remove svg package from wasm head
This commit is contained in:
Родитель
3ecfcd914b
Коммит
c1c62fe508
|
@ -194,6 +194,8 @@ Get-ChildItem -Recurse -Filter global.json | ForEach-Object {
|
|||
$globalJson | ConvertTo-Json -Depth 100 | Set-Content $globalJsonfilePath
|
||||
}
|
||||
|
||||
$sdkFeatures = $(If ($IsWindows) {"-p:UnoFeatures=Material%3BExtensions%3BToolkit%3BCSharpMarkup%3BSvg%3BMVUX"} Else { "-p:UnoFeatures=Material%3BToolkit" }));
|
||||
|
||||
$projects =
|
||||
@(
|
||||
#
|
||||
|
@ -223,12 +225,17 @@ $projects =
|
|||
# 5.2 Blank
|
||||
#
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0"), $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0", $sdkFeatures, $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-browserwasm"), $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-browserwasm", $sdkFeatures, $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-ios"), $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-ios", $sdkFeatures, $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-android"), $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-android", $sdkFeatures, $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-maccatalyst"), $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-maccatalyst", $sdkFeatures, $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-desktop"), $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-desktop", $(If ($IsWindows) {"-p:UnoFeatures=Material%3BExtensions%3BToolkit%3BCSharpMarkup%3BSvg%3BMVUX"} Else { "-p:UnoFeatures=Material%3BToolkit" })), $true, $true),
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-desktop", $sdkFeatures, $true, $true),
|
||||
|
||||
# Default mode for the template is WindowsAppSDKSelfContained=true, which requires specifying a target platform.
|
||||
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-p:Platform=x86" , "-p:TargetFramework=net8.0-windows10.0.19041"), $false, $false),
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
<_UnoProjectSystemPackageReference Include="SkiaSharp.Views.Uno.WinUI" ProjectSystem="true"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_UnoProjectSystemPackageReference Include="Uno.WinUI.Svg" ProjectSystem="true" Condition="$(UnoFeatures.Contains(';Svg;')) AND $(IsUnoHead) == 'true'" />
|
||||
<ItemGroup Condition="$(UnoFeatures.Contains(';Svg;')) AND $(IsUnoHead) == 'true' AND '$(IsBrowserWasm)' != 'true' ">
|
||||
<_UnoProjectSystemPackageReference Include="Uno.WinUI.Svg" ProjectSystem="true" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(IsBrowserWasm) != 'true' AND '$(IsPackable)' != 'true'">
|
||||
|
|
Загрузка…
Ссылка в новой задаче