diff --git a/README.md b/README.md index 11012e4..d084c2f 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,8 @@ The [documentation](https://github.com/Microsoft/XamlBehaviors/wiki) explains ho - 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` +- Ensure that [nuget.exe](https://learn.microsoft.com/en-us/nuget/install-nuget-client-tools?tabs=windows) is available in PATH +- 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: diff --git a/azure-pipelines/build.yml b/azure-pipelines/build.yml index 7c94268..07d6b90 100644 --- a/azure-pipelines/build.yml +++ b/azure-pipelines/build.yml @@ -106,6 +106,12 @@ extends: platform: Any CPU configuration: Release clean: true + - task: VSBuild@1 + displayName: Build UWP Managed NuGet package + inputs: + solution: src\BehaviorsSDKManaged\Microsoft.Xaml.Interactions.Design\Microsoft.Xaml.Interactions.Design.csproj + msbuildArgs: /t:Pack /p:SignType=$(SignType) /p:TimestampPackage=$(TimestampPackage) /p:PackageOutputPath="$(Build.SourcesDirectory)out" + configuration: Release - task: VSBuild@1 displayName: Build WinUI Managed NuGet package inputs: diff --git a/scripts/Microsoft.Xaml.Behaviors.Uwp.Managed.nuspec b/scripts/Microsoft.Xaml.Behaviors.Uwp.Managed.nuspec index 67f8eae..ce571d8 100644 --- a/scripts/Microsoft.Xaml.Behaviors.Uwp.Managed.nuspec +++ b/scripts/Microsoft.Xaml.Behaviors.Uwp.Managed.nuspec @@ -1,5 +1,5 @@  - + Microsoft.Xaml.Behaviors.Uwp.Managed $version$ diff --git a/src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj b/src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj index dfc5ce7..da9caa2 100644 --- a/src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj +++ b/src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj @@ -115,20 +115,20 @@ - - Microsoft.Xaml.Behaviors.Uwp.Managed - Microsoft.Xaml.Behaviors.Uwp.Managed - Microsoft - © Microsoft Corporation. All rights reserved. - Behavior Action Behaviors Actions Blend Managed C# Interaction Interactivity Interactions - http://go.microsoft.com/fwlink/?LinkID=708401 - http://go.microsoft.com/fwlink/?LinkID=651678 - http://go.microsoft.com/fwlink/?LinkID=708511 - ..\..\..\scripts\Microsoft.Xaml.Behaviors.Uwp.Managed.nuspec - ..\..\..\out\NuGetPackages - + + + + + ..\..\..\out\NuGetPackages + + + \ No newline at end of file