Родитель
121834e685
Коммит
e59b243289
|
@ -29,8 +29,8 @@ jobs:
|
|||
|
||||
- template: scripts/ci/dotnet-install-windows.yml
|
||||
|
||||
- powershell: .\scripts\Install-WindowsSdkISO.ps1 18362
|
||||
displayName: Install Windows SDK 18362
|
||||
- powershell: .\scripts\Install-WindowsSdkISO.ps1 19041
|
||||
displayName: Install Windows SDK 19041
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build WinUI package
|
||||
|
|
|
@ -7,14 +7,14 @@ The WinUI [Uno.Microsoft.Xaml.Behaviors.WinUI.Managed](https://www.nuget.org/pac
|
|||
To install the WinUI behaviors in .NET class libraries, such as the ones found in Uno Platform 4.7, use the following:
|
||||
|
||||
```xml
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-windows10.0.18362.0'">
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-windows10.0.19041.0'">
|
||||
<PackageReference Include="Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.0.9" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' != 'net6.0-windows10.0.18362.0'">
|
||||
<ItemGroup Condition="'$(TargetFramework)' != 'net6.0-windows10.0.19041.0'">
|
||||
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.3.0" />
|
||||
</ItemGroup>
|
||||
```
|
||||
You may need to adjust `net6.0-windows10.0.18362.0` to the TargetFramework value found in your project.
|
||||
You may need to adjust `net6.0-windows10.0.19041.0` to the TargetFramework value found in your project.
|
||||
|
||||
# **XAML Behaviors**
|
||||
XAML Behaviors is an easy-to-use means of adding common and reusable interactivity to your Windows UWP applications with minimal code. It is available for both native and managed applications. Use of XAML Behaviors is governed by the MIT License
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
<AssemblyName>XAMLBehaviorsSample</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
|
||||
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
|
||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
</PackageReference>
|
||||
<PackageReference Include="Uno.Wasm.Bootstrap" Version="7.0.20" />
|
||||
<PackageReference Include="Uno.Wasm.Bootstrap.DevServer" Version="7.0.20" />
|
||||
<PackageReference Include="Uno.UI.WebAssembly" Version="5.0.0-feature.5x.655" PrivateAssets="All" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="5.0.0-feature.5x.655" />
|
||||
<PackageReference Include="Uno.UI.WebAssembly" Version="5.0.0-dev.1148" PrivateAssets="All" />
|
||||
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="5.0.0-dev.1148" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug">
|
||||
|
|
|
@ -24,21 +24,21 @@
|
|||
<PropertyGroup>
|
||||
<DefineConstants>WinUI</DefineConstants>
|
||||
<PackageId>Uno.Microsoft.Xaml.Behaviors.WinUI.Managed</PackageId>
|
||||
<TargetFrameworks>$(TargetFrameworks);net5.0-windows10.0.18362.0</TargetFrameworks>
|
||||
<TargetFrameworks>$(TargetFrameworks);net5.0-windows10.0.19041.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Condition="'$(TargetFramework)'!='net5.0-windows10.0.18362.0'" Include="Uno.WinUI" Version="5.0.0-feature.5x.655" />
|
||||
<PackageReference Condition="'$(TargetFramework)'=='net5.0-windows10.0.18362.0'" Include="Microsoft.WindowsAppSDK" Version="1.0.1" />
|
||||
<PackageReference Condition="'$(TargetFramework)'!='net5.0-windows10.0.19041.0'" Include="Uno.WinUI" Version="5.0.0-dev.1148" />
|
||||
<PackageReference Condition="'$(TargetFramework)'=='net5.0-windows10.0.19041.0'" Include="Microsoft.WindowsAppSDK" Version="1.0.1" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<DefineConstants>NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<PackageId>Uno.Microsoft.Xaml.Behaviors.Uwp.Managed</PackageId>
|
||||
<TargetFrameworks>$(TargetFrameworks);uap10.0.18362</TargetFrameworks>
|
||||
<TargetFrameworks>$(TargetFrameworks);uap10.0.19041</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.UI" Version="5.0.0-feature.5x.655" />
|
||||
<PackageReference Include="Uno.UI" Version="5.0.0-dev.1148" />
|
||||
</ItemGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -23,21 +23,21 @@
|
|||
<PropertyGroup>
|
||||
<DefineConstants>WinUI</DefineConstants>
|
||||
<PackageId>Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI</PackageId>
|
||||
<TargetFrameworks>$(TargetFrameworks);net5.0-windows10.0.18362.0</TargetFrameworks>
|
||||
<TargetFrameworks>$(TargetFrameworks);net5.0-windows10.0.19041.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Condition="'$(TargetFramework)'!='net5.0-windows10.0.18362.0'" Include="Uno.WinUI" Version="5.0.0-feature.5x.655" />
|
||||
<PackageReference Condition="'$(TargetFramework)'=='net5.0-windows10.0.18362.0'" Include="Microsoft.WindowsAppSDK" Version="1.0.1" />
|
||||
<PackageReference Condition="'$(TargetFramework)'!='net5.0-windows10.0.19041.0'" Include="Uno.WinUI" Version="5.0.0-dev.1148" />
|
||||
<PackageReference Condition="'$(TargetFramework)'=='net5.0-windows10.0.19041.0'" Include="Microsoft.WindowsAppSDK" Version="1.0.1" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<DefineConstants>NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<PackageId>Uno.Microsoft.Xaml.Behaviors.Interactivity</PackageId>
|
||||
<TargetFrameworks>$(TargetFrameworks);uap10.0.18362</TargetFrameworks>
|
||||
<TargetFrameworks>$(TargetFrameworks);uap10.0.19041</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.UI" Version="5.0.0-feature.5x.655" />
|
||||
<PackageReference Include="Uno.UI" Version="5.0.0-dev.1148" />
|
||||
</ItemGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
Загрузка…
Ссылка в новой задаче