Skip to content

Commit

Permalink
(microsoftGH-78) Add target framework for .Net Core 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Oct 21, 2020
1 parent e1629d5 commit 5e0c6f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
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('netcoreapp'))">
<TargetPath>Design</TargetPath>
</BuildOutputInPackage>
<BuildOutputInPackage Include="$(ProjectDir)bin\$(Configuration)\net45\Design\Microsoft.Xaml.Behaviors.Design.dll"
Expand Down

0 comments on commit 5e0c6f7

Please sign in to comment.