Skip to content

Commit 60cdc7c

Browse files
committed
Few build fixes in new project
1 parent 9228185 commit 60cdc7c

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

src/Microsoft.DotNet.Wpf/tests/UnitTests/WindowsBase.Tests/System/Security/RightsManagement/RightsManagementExceptionTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public void Ctor_RightsManagementFailureCode_String_Exception_Null(RightsManagem
189189
Assert.Null(exception.TargetSite);
190190
}
191191

192+
#pragma warning disable SYSLIB0050, SYSLIB0051
192193
[Fact]
193194
public void Ctor_SerializationInfo_StreamingContext()
194195
{
@@ -255,6 +256,7 @@ public void GetObjectData_NullInfo_ThrowsArgumentNullException()
255256
var exception = new RightsManagementException();
256257
Assert.Throws<ArgumentNullException>("info", () => exception.GetObjectData(null!, default));
257258
}
259+
#pragma warning restore SYSLIB0050, SYSLIB0051
258260

259261
private class SubRightsManagementException : RightsManagementException
260262
{

src/Microsoft.DotNet.Wpf/tests/UnitTests/WindowsBase.Tests/System/Windows/Data/DataSourceProviderTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System.ComponentModel;
6+
using System.Threading;
67
using System.Windows.Threading;
78

89
namespace System.Windows.Data.Tests;

src/Microsoft.DotNet.Wpf/tests/UnitTests/WindowsBase.Tests/System/Windows/Markup/Primitives/MarkupObjectTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.ComponentModel;
77
using System.ComponentModel.Design.Serialization;
88
using System.Globalization;
9+
using System.Linq;
910

1011
namespace System.Windows.Markup.Primitives.Tests;
1112

src/Microsoft.DotNet.Wpf/tests/UnitTests/WindowsBase.Tests/System/Windows/Markup/Primitives/MarkupPropertyTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.ComponentModel;
77
using System.ComponentModel.Design.Serialization;
88
using System.Globalization;
9+
using System.Linq;
910
using System.Windows.Markup.Primitives.Tests.InternalClasses;
1011

1112
namespace System.Windows.Markup.Primitives.Tests

src/Microsoft.DotNet.Wpf/tests/UnitTests/WindowsBase.Tests/WindowsBase.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<ItemGroup>
1111
<ProjectReference Include="$(WpfSourceDir)System.Xaml\System.Xaml.csproj" />
1212
<ProjectReference Include="$(WpfSourceDir)WindowsBase\WindowsBase.csproj" />
13+
<ProjectReference Include="$(WpfSourceDir)PresentationCore\PresentationCore.csproj" />
14+
<ProjectReference Include="$(WpfSourceDir)PresentationFramework\PresentationFramework.csproj" />
1315
</ItemGroup>
1416

1517
<ItemGroup>

0 commit comments

Comments
 (0)