Merge pull request #1477 from unoplatform/dev/nr/unologgingfix
fix: Updating Skia/Wasm target packages to net6
This commit is contained in:
Коммит
9be16a0db1
|
@ -92,13 +92,13 @@
|
|||
<GeneratorOutputPath>$(MSBuildProjectDirectory)\$(IntermediateOutputPath)\PackGenerators\</GeneratorOutputPath>
|
||||
</PropertyGroup>
|
||||
<MSBuild Projects="@(GeneratorProjectReference)"
|
||||
Properties="Configuration=$(Configuration);OutputPath=$(GeneratorOutputPath)" />
|
||||
Properties="Configuration=$(Configuration);OutputPath=$(GeneratorOutputPath);TargetFramework=netstandard2.0" />
|
||||
</Target>
|
||||
|
||||
<Target Name="GeneratorPack"
|
||||
AfterTargets="PackageGeneratorBuild">
|
||||
<ItemGroup>
|
||||
<None Include="$(GeneratorOutputPath)**\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
|
||||
<None Include="$(GeneratorOutputPath)**\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Exclude="@(None)" Visible="false" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
<Message Text="Building target framework: $(TargetFramework)" Importance="high" Condition="'$(TargetFramework)'!=''" />
|
||||
</Target>
|
||||
|
||||
<Target Name="_UnoOverrideNuget" AfterTargets="AfterBuild" DependsOnTargets="BuiltProjectOutputGroup" Condition="'$(UnoNugetOverrideVersion)'!=''">
|
||||
<Target Name="_UnoOverrideNuget" AfterTargets="AfterBuild" DependsOnTargets="BuiltProjectOutputGroup" Condition="'$(NugetOverrideVersion)'!=''">
|
||||
|
||||
<PropertyGroup>
|
||||
<_TargetNugetPackageId Condition="'$(PackageId)'!=''">$(PackageId)</_TargetNugetPackageId>
|
||||
<_TargetNugetPackageId Condition="'$(PackageId)'==''">$(AssemblyName)</_TargetNugetPackageId>
|
||||
<_TargetNugetFolder Condition="'$(ToolOfPackage)'!=''">$(USERPROFILE)\.nuget\packages\$(ToolOfPackage)\$(UnoNugetOverrideVersion)\analyzers\dotnet\cs</_TargetNugetFolder>
|
||||
<_TargetNugetFolder Condition="'$(ToolOfPackage)'==''">$(USERPROFILE)\.nuget\packages\$(_TargetNugetPackageId)\$(UnoNugetOverrideVersion)\lib\$(TargetFramework)</_TargetNugetFolder>
|
||||
<_TargetNugetFolder Condition="'$(ToolOfPackage)'!=''">$(USERPROFILE)\.nuget\packages\$(ToolOfPackage)\$(NugetOverrideVersion)\analyzers\dotnet\cs</_TargetNugetFolder>
|
||||
<_TargetNugetFolder Condition="'$(ToolOfPackage)'==''">$(USERPROFILE)\.nuget\packages\$(_TargetNugetPackageId)\$(NugetOverrideVersion)\lib\$(TargetFramework)</_TargetNugetFolder>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -23,14 +23,14 @@ public static class HostBuilderExtensions
|
|||
#if !__WASM__
|
||||
#if __IOS__
|
||||
#pragma warning disable CA1416 // Validate platform compatibility: The net6.0 version is not used on older versions of OS
|
||||
builder.AddProvider(new global::Uno.Extensions.Logging.OSLogLoggerProvider());
|
||||
builder.AddProvider(new global::Uno.Extensions.Logging.OSLogLoggerProvider());
|
||||
#pragma warning restore CA1416 // Validate platform compatibility
|
||||
#elif NET6_0_OR_GREATER // Console isn't supported on all Xamarin targets, so only adding for net6.0 and above
|
||||
builder.AddConsole();
|
||||
#elif NET6_0_OR_GREATER || __SKIA__ // Console isn't supported on all Xamarin targets, so only adding for net6.0 and above
|
||||
builder.AddConsole();
|
||||
#endif
|
||||
builder.AddDebug();
|
||||
#elif __WASM__
|
||||
builder.AddProvider(new global::Uno.Extensions.Logging.WebAssembly.WebAssemblyConsoleLoggerProvider());
|
||||
builder.AddProvider(new global::Uno.Extensions.Logging.WebAssembly.WebAssemblyConsoleLoggerProvider());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,18 @@
|
|||
|
||||
The UnoTargetFrameworkMobileOverride property is use only in Mobile (i.e. the single-project used by net6-ios/android/mac/catalyst)
|
||||
-->
|
||||
<UnoTargetFrameworkMobileOverride>net6.0-ios</UnoTargetFrameworkMobileOverride>
|
||||
<UnoTargetFrameworkOverride>$(UnoTargetFrameworkMobileOverride);netstandard2.0</UnoTargetFrameworkOverride>
|
||||
<!-- <UnoTargetFrameworkMobileOverride>net6.0-ios</UnoTargetFrameworkMobileOverride>-->
|
||||
<!-- <UnoTargetFrameworkOverride>$(UnoTargetFrameworkMobileOverride);netstandard2.0</UnoTargetFrameworkOverride>-->
|
||||
|
||||
<!--
|
||||
|
||||
### NugetOverrideVersion ###
|
||||
|
||||
Allows the override of the nuget local cache.
|
||||
Set it to the version you want to override, used in another app.
|
||||
You will see the override path in the build output.
|
||||
The packages are located under this directory: "%USERPROFILE%\.nuget\packages". -->
|
||||
|
||||
<!-- <NugetOverrideVersion>2.3.0</NugetOverrideVersion> -->
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче