Skip to content

Commit

Permalink
Merge pull request #79 from punker76/issues/netcoreapp3.1
Browse files Browse the repository at this point in the history
Add target framework for .Net Core 3.1
  • Loading branch information
DVaughan authored Oct 28, 2020
2 parents 2cad12e + 3674b5a commit cbe8b5c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ To use behaviors in your project, add the [Microsoft.Xaml.Behaviors.Wpf](https:/
Buiding Behaviors from Source
------------------------------
**What You Need**

- [Visual Studio 2017](https://www.visualstudio.com/features/windows-apps-games-vs)

**Clone the Repository**

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

Expand Down
4 changes: 2 additions & 2 deletions Test/UnitTests/BehaviorUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public static DebugOutputListener Listen()

private DebugOutputListener()
{
#if !NETCOREAPP3_0
#if !NETCOREAPP
this.storedListeners = new TraceListener[Debug.Listeners.Count];
Debug.Listeners.CopyTo(this.storedListeners, 0);
Debug.Listeners.Clear();
Expand All @@ -197,7 +197,7 @@ private DebugOutputListener()

public void Dispose()
{
#if !NETCOREAPP3_0
#if !NETCOREAPP
Debug.Listeners.Clear();
Debug.Listeners.AddRange(this.storedListeners);
#endif
Expand Down
4 changes: 2 additions & 2 deletions Test/UnitTests/ChangePropertyActionTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Xaml.Interactions.UnitTests
{
Expand Down Expand Up @@ -228,7 +228,7 @@ public void Invoke_IncompatiblePropertyWithValueType_ThrowsArgumentException()
}

[TestMethod]
#if NETCOREAPP3_0
#if NETCOREAPP
[ExpectedException(typeof(ArgumentException))]
#else
[ExpectedException(typeof(Exception))]
Expand Down
4 changes: 2 additions & 2 deletions Test/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras/2.0.43">
<Project Sdk="MSBuild.Sdk.Extras/2.0.43">
<PropertyGroup>
<TargetFrameworks>net45;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>net45;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
<IsPackable>false</IsPackable>
<UseWPF>true</UseWPF>
<OutputType>Library</OutputType>
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.Xaml.Behaviors/Microsoft.Xaml.Behaviors.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="MSBuild.Sdk.Extras/2.0.43">
<Project Sdk="MSBuild.Sdk.Extras/2.0.43">
<PropertyGroup>
<TargetFrameworks>net45;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>net45;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeProjectToProjectAssets</TargetsForTfmSpecificBuildOutput>
<OutputType>Library</OutputType>
<PackageId>Microsoft.Xaml.Behaviors.Wpf</PackageId>
Expand Down Expand Up @@ -103,7 +103,7 @@
<Target Name="IncludeProjectToProjectAssets">
<ItemGroup>
<BuildOutputInPackage Include="$(ProjectDir)bin\$(Configuration)\net45\Design\Microsoft.Xaml.Behaviors.DesignTools.dll"
Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
Condition="'$(TargetFramework.StartsWith('netcoreapp3.'))">
<TargetPath>Design</TargetPath>
</BuildOutputInPackage>
<BuildOutputInPackage Include="$(ProjectDir)bin\$(Configuration)\net45\Design\Microsoft.Xaml.Behaviors.Design.dll"
Expand Down

0 comments on commit cbe8b5c

Please sign in to comment.