Skip to content

Commit

Permalink
Lower WindowsAppSDK min version to be 17763 (#234)
Browse files Browse the repository at this point in the history
* Update expired test certificate

* Fix readme formatting based on linter

* Add info in readme about building WinUI/WindowsAppSDK version of nuget package locally

* Lower min version for WindowsAppSDK to 17763

Removes invalid design dlls (no designer for WinUI 3) that caused local build to fail
bump version number

* Update README.md to include extra escape for parameter
  • Loading branch information
michael-hawker authored Sep 21, 2022
1 parent 72f00ab commit 0740084
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 73 deletions.
104 changes: 56 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
# **XAML Behaviors**
# 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

Build Status
-------------------
## Build Status

| Platform | Status |
| -------- | ------ |
| Managed | ![Build Managed](https://github.com/microsoft/XamlBehaviors/workflows/Build%20Managed/badge.svg) |
| Native | ![Build Native](https://github.com/microsoft/XamlBehaviors/workflows/Build%20Native/badge.svg) |

Getting Started
-------------------
**Where to get it**
## Getting Started

### Where to get it

- NuGet package for [Native](https://www.nuget.org/packages/Microsoft.Xaml.Behaviors.Uwp.Native/) and [Managed](https://www.nuget.org/packages/Microsoft.Xaml.Behaviors.Uwp.Managed/)
- [Source Code](https://github.com/Microsoft/XamlBehaviors)
- NuGet package for [Native](https://www.nuget.org/packages/Microsoft.Xaml.Behaviors.Uwp.Native/) and [Managed](https://www.nuget.org/packages/Microsoft.Xaml.Behaviors.Uwp.Managed/)
- [Source Code](https://github.com/Microsoft/XamlBehaviors)

**Resources**
### Resources

- [Documentation](https://github.com/Microsoft/XamlBehaviors/wiki)
- [Samples](/samples)
- [Changelog](https://github.com/Microsoft/XamlBehaviors/wiki/Changelog)
- [![Join the chat at https://gitter.im/Microsoft/XamlBehaviors](https://badges.gitter.im/Microsoft/XamlBehaviors.svg)](https://gitter.im/Microsoft/XamlBehaviors?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
- [Documentation](https://github.com/Microsoft/XamlBehaviors/wiki)
- [Samples](/samples)
- [Changelog](https://github.com/Microsoft/XamlBehaviors/wiki/Changelog)
- [![Join the chat at https://gitter.im/Microsoft/XamlBehaviors](https://badges.gitter.im/Microsoft/XamlBehaviors.svg)](https://gitter.im/Microsoft/XamlBehaviors?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

**More Info**
### More Info

- [Report a bug or ask a question](https://github.com/Microsoft/XamlBehaviors/issues)
- [Contribute](https://github.com/Microsoft/XamlBehaviors/wiki/Contribute-to-XAML-Behaviors)
- [License](http://opensource.org/licenses/MIT)
- [Report a bug or ask a question](https://github.com/Microsoft/XamlBehaviors/issues)
- [Contribute](https://github.com/Microsoft/XamlBehaviors/wiki/Contribute-to-XAML-Behaviors)
- [License](http://opensource.org/licenses/MIT)

### Code Example

Code Example
------------
For an example of using Behaviors in an application, here is a snippet of XAML:

```xml
<Button>
<Button xmlns:Core="using:Microsoft.Xaml.Interactions.Core" xmlns:Interactivity="using:Microsoft.Xaml.Interactivity">
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="Click">
<Core:ChangePropertyAction PropertyName="Background">
Expand All @@ -44,33 +46,39 @@ For an example of using Behaviors in an application, here is a snippet of XAML:
</Interactivity:Interaction.Behaviors>
</Button>
```
Using Behaviors SDK
-------------------

### Using Behaviors SDK

The [documentation](https://github.com/Microsoft/XamlBehaviors/wiki) explains how to install Visual Studio, add the XAML Behaviors NuGet package to your project, and get started using the API.

Building Behaviors from Source
------------------------------
**What You Need**

- [Visual Studio 2017 w/ Universal Windows Tools](https://visualstudio.microsoft.com/vs/features/universal-windows-platform/)
- [Multilingual App Toolkit](https://developer.microsoft.com/en-us/windows/develop/multilingual-app-toolkit)

**Clone the Repository**

- Go to 'View' -> 'Team Explorer' -> 'Local Git Repositories' -> 'Clone'
- Add the XAML Behaviors repository URL (https://github.com/Microsoft/XamlBehaviors) and hit 'Clone'

**Build and Create Managed XAML Behaviors NuGet**

- Open the "BehaviorsSDKManaged.sln" solution in Visual Studio
- Change Build Configuration to Release
- Build [Ctrl + B]
- Run **msbuild /t:Pack src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj**
- *(Optional)* Add /p:TimestampPackage=true to include the timestamp in the NuGet package version

**Build and Create Native XAML Behaviors NuGet**

- Open the "BehaviorsSDKNative.sln" solution in Visual Studio
- [Batch Build](https://msdn.microsoft.com/en-us/library/169az28z(v=vs.90).aspx) for x86, x64, and ARM in Release
- Run **msbuild /t:Pack src/BehaviorsSDKNative/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj**
- *(Optional)* Add /p:TimestampPackage=true to include the timestamp in the NuGet package version
### Building Behaviors from Source

#### What You Need

- [Visual Studio 2017 w/ Universal Windows Tools](https://visualstudio.microsoft.com/vs/features/universal-windows-platform/)
- [Multilingual App Toolkit](https://developer.microsoft.com/en-us/windows/develop/multilingual-app-toolkit)

#### Clone the Repository

- Go to 'View' -> 'Team Explorer' -> 'Local Git Repositories' -> 'Clone'
- Add the XAML Behaviors repository URL (https://github.com/Microsoft/XamlBehaviors) and hit 'Clone'

#### Build and Create Managed XAML Behaviors NuGet

- Open the "BehaviorsSDKManaged.sln" solution in Visual Studio
- Change Build Configuration to Release
- Build [Ctrl + B]
- Run `msbuild /t:Pack src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj`
- *(Optional)* Add `/p:TimestampPackage=true` to include the timestamp in the NuGet package version

For WinUI:

- Run `msbuild /t:Pack src\BehaviorsSDKManaged\Microsoft.Xaml.Interactivity.WinUI\Microsoft.Xaml.Interactivity.WinUI.csproj`
- *(Optional)* Add `/p:TimestampPackage=true` to include the timestamp in the NuGet package version

#### Build and Create Native XAML Behaviors NuGet

- Open the "BehaviorsSDKNative.sln" solution in Visual Studio
- [Batch Build](https://msdn.microsoft.com/en-us/library/169az28z(v=vs.90).aspx) for x86, x64, and ARM in Release
- Run `msbuild /t:Pack src/BehaviorsSDKNative/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj`
- *(Optional)* Add `/p:TimestampPackage=true` to include the timestamp in the NuGet package version
34 changes: 17 additions & 17 deletions scripts/Microsoft.Xaml.Behaviors.WinUI.Managed.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,33 @@
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
<tags>Behavior Action Behaviors Actions Blend Managed C# Interaction Interactivity Interactions WinUI</tags>
<dependencies>
<group targetFramework="net5.0-windows10.0.18362.0">
<group targetFramework="net5.0-windows10.0.17763.0">
<dependency id="Microsoft.WindowsAppSDK" version="1.0.0" />
</group>
</dependencies>
</metadata>

<files>
<file target="lib\net5.0-windows10.0.18362.0\Microsoft.Xaml.Interactivity.dll" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.dll" />
<file target="lib\net5.0-windows10.0.18362.0\Microsoft.Xaml.Interactivity.pdb" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.pdb" />
<file target="lib\net5.0-windows10.0.18362.0\Microsoft.Xaml.Interactivity.xml" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.xml" />
<file target="lib\net5.0-windows10.0.18362.0\Microsoft.Xaml.Interactivity.pri" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.pri" />
<file target="lib\net5.0-windows10.0.18362.0\Microsoft.Xaml.Interactions.dll" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.dll" />
<file target="lib\net5.0-windows10.0.18362.0\Microsoft.Xaml.Interactions.pdb" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.pdb" />
<file target="lib\net5.0-windows10.0.18362.0\Microsoft.Xaml.Interactions.xml" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.xml" />
<file target="lib\net5.0-windows10.0.18362.0\Microsoft.Xaml.Interactions.pri" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.pri" />
<file target="lib\net5.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity.dll" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.dll" />
<file target="lib\net5.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity.pdb" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.pdb" />
<file target="lib\net5.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity.xml" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.xml" />
<file target="lib\net5.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity.pri" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.pri" />
<file target="lib\net5.0-windows10.0.17763.0\Microsoft.Xaml.Interactions.dll" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.dll" />
<file target="lib\net5.0-windows10.0.17763.0\Microsoft.Xaml.Interactions.pdb" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.pdb" />
<file target="lib\net5.0-windows10.0.17763.0\Microsoft.Xaml.Interactions.xml" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.xml" />
<file target="lib\net5.0-windows10.0.17763.0\Microsoft.Xaml.Interactions.pri" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.pri" />

<!--
<file target="lib\net5.0-windows10.0.18362.0\Design\Microsoft.Xaml.Interactivity.Design.dll" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.Design.dll" />
<file target="lib\net5.0-windows10.0.18362.0\Design\Microsoft.Xaml.Interactivity.Design.pdb" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.Design.pdb" />
<file target="lib\net5.0-windows10.0.18362.0\Design\Microsoft.Xaml.Interactions.Design.dll" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.Design.dll" />
<file target="lib\net5.0-windows10.0.18362.0\Design\Microsoft.Xaml.Interactions.Design.pdb" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.Design.pdb" />
<file target="lib\net5.0-windows10.0.17763.0\Design\Microsoft.Xaml.Interactivity.Design.dll" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.Design.dll" />
<file target="lib\net5.0-windows10.0.17763.0\Design\Microsoft.Xaml.Interactivity.Design.pdb" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.Design.pdb" />
<file target="lib\net5.0-windows10.0.17763.0\Design\Microsoft.Xaml.Interactions.Design.dll" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.Design.dll" />
<file target="lib\net5.0-windows10.0.17763.0\Design\Microsoft.Xaml.Interactions.Design.pdb" src="..\out\WinUI\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.Design.pdb" />
-->

<file target="lib\net5.0-windows10.0.18362.0\Design\Microsoft.Xaml.Interactivity.DesignTools.dll" src="..\out\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.DesignTools.dll" />
<file target="lib\net5.0-windows10.0.18362.0\Design\Microsoft.Xaml.Interactivity.DesignTools.pdb" src="..\out\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.DesignTools.pdb" />
<file target="lib\net5.0-windows10.0.18362.0\Design\Microsoft.Xaml.Interactions.DesignTools.dll" src="..\out\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.DesignTools.dll" />
<file target="lib\net5.0-windows10.0.18362.0\Design\Microsoft.Xaml.Interactions.DesignTools.pdb" src="..\out\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.DesignTools.pdb" />
<file target="lib\net5.0-windows10.0.17763.0\Design\Microsoft.Xaml.Interactivity.DesignTools.dll" src="..\out\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.DesignTools.dll" />
<file target="lib\net5.0-windows10.0.17763.0\Design\Microsoft.Xaml.Interactivity.DesignTools.pdb" src="..\out\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactivity.DesignTools.pdb" />
<file target="lib\net5.0-windows10.0.17763.0\Design\Microsoft.Xaml.Interactions.DesignTools.dll" src="..\out\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.DesignTools.dll" />
<file target="lib\net5.0-windows10.0.17763.0\Design\Microsoft.Xaml.Interactions.DesignTools.pdb" src="..\out\BehaviorsSDKManaged\bin\AnyCPU\Release\Microsoft.Xaml.Interactions.DesignTools.pdb" />

<file target="src\BehaviorsSDKManaged\Microsoft.Xaml.Interactions.WinUI" src="..\src\BehaviorsSDKManaged\Microsoft.Xaml.Interactions.Shared\**\*.cs" />
<file target="src\BehaviorsSDKManaged\Microsoft.Xaml.Interactivity.WinUI" src="..\src\BehaviorsSDKManaged\Microsoft.Xaml.Interactivity.Shared\**\*.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<PackageCertificateKeyFile>ManagedUnitTests_TemporaryKey.pfx</PackageCertificateKeyFile>
<UnitTestPlatformVersion Condition="'$(UnitTestPlatformVersion)' == ''">14.0</UnitTestPlatformVersion>
<PackageCertificateThumbprint>53B4C4E9C6183759FC360908E622D9D4118884E4</PackageCertificateThumbprint>
<PackageCertificateThumbprint>165EB0CFBCAEED515D3C8ACE42670AD0AE7A6253</PackageCertificateThumbprint>
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
<RuntimeIdentifiers>win10-arm;win10-arm-aot;win10-x86;win10-x86-aot;win10-x64;win10-x64-aot</RuntimeIdentifiers>
</PropertyGroup>
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions src/BehaviorsSDKManaged/ManagedUnitTests/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
<Identity Name="25012dc2-4bd7-4ff2-8c5f-6ad0b90f3df4" Publisher="CN=davaugh" Version="1.0.0.0" />
<Identity Name="25012dc2-4bd7-4ff2-8c5f-6ad0b90f3df4" Publisher="CN=xamlbehaviors" Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="25012dc2-4bd7-4ff2-8c5f-6ad0b90f3df4" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>ManagedUnitTests</DisplayName>
<PublisherDisplayName>drewgil</PublisherDisplayName>
<PublisherDisplayName>xamlbehaviors</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net5.0-windows10.0.18362.0</TargetFramework>
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<TargetPlatformVersion>10.0.17763.0</TargetPlatformVersion>
<RootNamespace>Microsoft.Xaml.Interactions</RootNamespace>
<Platforms>AnyCPU;x86;x64</Platforms>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net5.0-windows10.0.18362.0</TargetFramework>
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
<TargetPlatformVersion>10.0.17763.0</TargetPlatformVersion>
<RootNamespace>Microsoft.Xaml.Interactivity</RootNamespace>
<Platforms>AnyCPU;x86;x64</Platforms>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/BehaviorsSDKManaged/Version/NuGetPackageVersion.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PackageVersion>2.0.8</PackageVersion>
<PackageVersion>2.0.9</PackageVersion>
</PropertyGroup>
</Project>

0 comments on commit 0740084

Please sign in to comment.