Skip to content

Commit f61f497

Browse files
safernstephentoub
authored andcommitted
Remove Microsoft.Windows.Compatibility.Shims package (dotnet#36644)
* Remove Microsoft.Windows.Compatibility.Shims package * PR Feedback
1 parent d00fa24 commit f61f497

10 files changed

+4
-98
lines changed

Directory.Build.props

-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@
343343
<TargetOutputRelPath Condition="'$(TargetGroup)'!=''">$(TargetGroup)/</TargetOutputRelPath>
344344

345345
<RuntimePath Condition="'$(RuntimePath)' == ''">$(ArtifactsBinDir)runtime/$(BuildConfiguration)/</RuntimePath>
346-
<ShimsTargetRuntimeRoot>$(ArtifactsBinDir)shimsTargetRuntime/</ShimsTargetRuntimeRoot>
347346
<TestWorkingDir Condition="'$(TestWorkingDir)'==''">$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'tests'))</TestWorkingDir>
348347
<TestPath Condition="'$(TestPath)' == ''">$([MSBuild]::NormalizeDirectory('$(TestWorkingDir)', '$(MSBuildProjectName)', '$(BuildConfiguration)'))</TestPath>
349348
<RefRootPath>$(ArtifactsBinDir)ref/</RefRootPath>

Directory.Build.targets

-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@
115115
<BinPlaceConfiguration Condition="'$(BuildingNETCoreAppVertical)' == 'true'" Include="netcoreapp2.0">
116116
<RefPath>$(RefRootPath)netcoreapp2.0/</RefPath>
117117
</BinPlaceConfiguration>
118-
<BinPlaceConfiguration Include="netcoreapp2.0-Windows_NT">
119-
<RuntimePath>$(ShimsTargetRuntimeRoot)netcoreapp2.0/</RuntimePath>
120-
</BinPlaceConfiguration>
121118
<!-- some libraries that produce packages will remain targeting uap10.0.16299 -->
122119
<BinPlaceConfiguration Condition="'$(BuildingUAPVertical)' == 'true' OR '$(BuildingUAPAOTVertical)' == 'true'" Include="uap10.0.16299">
123120
<RefPath>$(RefRootPath)uap10.0.16299/</RefPath>

eng/dependencies.props

-4
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@
9999
</XmlUpdateStep>
100100
</ItemGroup>
101101

102-
<PropertyGroup>
103-
<CompatibilityShimsPackageVersion>2.1.0</CompatibilityShimsPackageVersion>
104-
</PropertyGroup>
105-
106102
<!-- Set up dependencies on packages that aren't found in a BuildInfo. -->
107103
<ItemGroup>
108104
<TargetingPackDependency Include="Microsoft.TargetingPack.NETFramework.v4.5" />

external/netcoreapp/Configurations.props

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<PropertyGroup>
33
<BuildConfigurations>
44
netcoreapp2.0;
5-
netcoreapp2.0-Windows_NT;
65
netcoreapp2.1;
76
</BuildConfigurations>
87
</PropertyGroup>

external/netcoreapp/netcoreapp.depproj

+1-12
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@
99
<BinPlaceRef>true</BinPlaceRef>
1010
</PropertyGroup>
1111

12-
<!-- The windows specific configuration provides the implementation assemblies to create shims
13-
and the non-OS the ref assemblies. -->
14-
<PropertyGroup Condition="'$(TargetsWindows)' == 'true'">
15-
<!-- We use the win implementation to create the shims shipped inside the compat pack -->
16-
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
17-
<BinPlaceRuntime>true</BinPlaceRuntime>
18-
<BinPlaceRef>false</BinPlaceRef>
19-
<NuGetDeploySourceItem>ReferenceCopyLocalPaths</NuGetDeploySourceItem>
20-
</PropertyGroup>
21-
2212
<ItemGroup>
2313
<PackageReference Include="Microsoft.NETCore.App">
2414
<Version>$(NETCoreAppPackageVersion)</Version>
@@ -28,8 +18,7 @@
2818
<ItemGroup>
2919
<!-- for all configurations this project provides refs for that configuration -->
3020
<BinPlaceConfiguration Include="$(Configuration)">
31-
<RefPath Condition="'$(BinPlaceRef)' == 'true'">$(RefPath)</RefPath>
32-
<RuntimePath Condition="'$(BinPlaceRuntime)' == 'true'">$(ShimsTargetRuntimeRoot)$(TargetGroup)/</RuntimePath>
21+
<RefPath>$(RefPath)</RefPath>
3322
</BinPlaceConfiguration>
3423

3524
<FileToExclude Include="System.ComponentModel.Composition" />

pkg/Microsoft.Windows.Compatibility.Shims/Microsoft.Windows.Compatibility.Shims.builds

-10
This file was deleted.

pkg/Microsoft.Windows.Compatibility.Shims/Microsoft.Windows.Compatibility.Shims.pkgproj

-27
This file was deleted.

pkg/Microsoft.Windows.Compatibility/Microsoft.Windows.Compatibility.pkgproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
</Dependency>
9090
<!-- Include dependency to shims package -->
9191
<Dependency Include="Microsoft.Windows.Compatibility.Shims">
92-
<Version>$(CompatibilityShimsPackageVersion)</Version>
92+
<Version>2.0.1</Version>
9393
<TargetFramework>netcoreapp2.0</TargetFramework>
9494
</Dependency>
9595
</ItemGroup>

src/shims/manual/Directory.Build.props

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<PackageConfigurations>
4-
netcoreapp2.0;
5-
</PackageConfigurations>
63
<BuildConfigurations>
7-
$(PackageConfigurations);
84
netcoreapp;
95
netcoreappaot;
106
uap;
@@ -15,8 +11,6 @@
1511
<!-- need to by-pass the Directory.Build.props in the shims directory for this project -->
1612
<Import Project="..\..\Directory.Build.props" />
1713
<PropertyGroup>
18-
<_RuntimePath Condition="'$(TargetGroup)' == 'netcoreapp' OR '$(TargetGroup)' == 'uap' OR '$(TargetGroup)' == 'netcoreappaot'">$(RuntimePath)</_RuntimePath>
19-
<_RuntimePath Condition="'$(TargetGroup)' == 'netcoreapp2.0'">$(ShimsTargetRuntimeRoot)netcoreapp2.0/</_RuntimePath>
2014
<AssemblyVersion>4.0.0.0</AssemblyVersion>
2115
<StrongNameKeyId>ECMA</StrongNameKeyId>
2216
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
@@ -31,7 +25,7 @@
3125

3226
<ItemGroup>
3327
<ReferencePath
34-
Include="$(_RuntimePath)System.*.dll;$(_RuntimePath)Microsoft.Win32.*.dll"
35-
Exclude="$(_RuntimePath)System.dll;$(_RuntimePath)System.Data.dll" />
28+
Include="$(RuntimePath)System.*.dll;$(RuntimePath)Microsoft.Win32.*.dll"
29+
Exclude="$(RuntimePath)System.dll;$(RuntimePath)System.Data.dll" />
3630
</ItemGroup>
3731
</Project>

src/shims/shims.proj

-31
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
<Project DefaultTargets="Build">
2-
<PropertyGroup>
3-
<PackageConfigurations>
4-
netcoreapp2.0
5-
</PackageConfigurations>
6-
<BuildConfigurations>
7-
$(PackageConfigurations)
8-
</BuildConfigurations>
9-
</PropertyGroup>
10-
112
<Import Project="Directory.Build.props" />
123

134
<Target Name="GetGenFacadesInputs">
@@ -49,7 +40,6 @@
4940
FacadePath="$(GenFacadesOutputPath)"
5041
ProducePdb="$(ProducePdb)"
5142
IgnoreMissingTypes="$(GenFacadesIgnoreMissingTypes)"
52-
IgnoreBuildAndRevisionMismatch="$(GenFacadesIgnoreBuildAndRevisionMismatch)"
5343
ForceZeroVersionSeeds="$(GenFacadesForceZeroVersionSeeds)"
5444
BuildPartialReferenceFacade="$(GenFacadesBuildPartialReferenceFacade)"
5545
/>
@@ -98,25 +88,4 @@
9888
<FileWrites Include="@(BinPlaceItem)" />
9989
</ItemGroup>
10090
</Target>
101-
102-
<Target Name="GetCompatibilityShimsToPackage"
103-
BeforeTargets="GetFilesToPackage">
104-
<ItemGroup>
105-
<!-- All the shims defined in netfxreference.props produced by this project need to be included in the ref path. -->
106-
<FilesToPackage Include="@(NetFxReference->'$(GenFacadesOutputPath)%(Identity).dll')">
107-
<TargetFramework>netcoreapp2.0</TargetFramework>
108-
<TargetPath>/ref/netcoreapp2.0</TargetPath>
109-
</FilesToPackage>
110-
111-
<!-- For the implementation path in the package we only want to include the non-manual shims produced by this project
112-
and the manual shims that we produce against the 2.0.0 implementation will be included to the shims package through
113-
a project reference, therefore we need to exclude them here. -->
114-
<_manualShimProjects Include="manual\*.csproj" />
115-
<_manualShims Include="@(_manualShimProjects->'%(FileName)')" />
116-
<_libShims Include="@(NetFxReference)" Exclude="@(_manualShims)" />
117-
</ItemGroup>
118-
<PropertyGroup>
119-
<TargetPath>@(_libShims->'$(GenFacadesOutputPath)%(Identity).dll')</TargetPath>
120-
</PropertyGroup>
121-
</Target>
12291
</Project>

0 commit comments

Comments
 (0)