Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 97cd360

Browse files
committed
Fix duplicate types in ports on desktop
1 parent 142932a commit 97cd360

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

pkg/test/packageSettings/System.IO.Ports/net/ignoreTypes.targets

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/System.IO.Ports/ref/Configurations.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup>
44
<BuildConfigurations>
55
netstandard;
6+
netfx;
67
</BuildConfigurations>
78
</PropertyGroup>
89
</Project>

src/System.IO.Ports/ref/System.IO.Ports.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
44
<PropertyGroup>
55
<ProjectGuid>{75DE4259-43BB-4067-9F30-3AC920D51AEC}</ProjectGuid>
6+
<IsPartialFacadeAssembly Condition="'$(TargetGroup)' == 'netfx'">true</IsPartialFacadeAssembly>
67
</PropertyGroup>
78
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Debug|AnyCPU'" />
89
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Release|AnyCPU'" />
10+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netfx-Debug|AnyCPU'" />
11+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netfx-Release|AnyCPU'" />
912
<ItemGroup>
1013
<Compile Include="System.IO.Ports.cs" />
11-
<Reference Include="netstandard" />
14+
</ItemGroup>
15+
<ItemGroup Condition="'$(TargetGroup)' == 'netfx'">
16+
<Reference Include="mscorlib" />
17+
<Reference Include="System" />
1218
</ItemGroup>
1319
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
1420
</Project>

0 commit comments

Comments
 (0)