Skip to content

Commit

Permalink
Remove Microsoft.Windows.Compatibility.Shims package (dotnet#36644)
Browse files Browse the repository at this point in the history
* Remove Microsoft.Windows.Compatibility.Shims package

* PR Feedback
  • Loading branch information
safern authored and stephentoub committed Apr 6, 2019
1 parent d00fa24 commit f61f497
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 98 deletions.
1 change: 0 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@
<TargetOutputRelPath Condition="'$(TargetGroup)'!=''">$(TargetGroup)/</TargetOutputRelPath>

<RuntimePath Condition="'$(RuntimePath)' == ''">$(ArtifactsBinDir)runtime/$(BuildConfiguration)/</RuntimePath>
<ShimsTargetRuntimeRoot>$(ArtifactsBinDir)shimsTargetRuntime/</ShimsTargetRuntimeRoot>
<TestWorkingDir Condition="'$(TestWorkingDir)'==''">$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'tests'))</TestWorkingDir>
<TestPath Condition="'$(TestPath)' == ''">$([MSBuild]::NormalizeDirectory('$(TestWorkingDir)', '$(MSBuildProjectName)', '$(BuildConfiguration)'))</TestPath>
<RefRootPath>$(ArtifactsBinDir)ref/</RefRootPath>
Expand Down
3 changes: 0 additions & 3 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@
<BinPlaceConfiguration Condition="'$(BuildingNETCoreAppVertical)' == 'true'" Include="netcoreapp2.0">
<RefPath>$(RefRootPath)netcoreapp2.0/</RefPath>
</BinPlaceConfiguration>
<BinPlaceConfiguration Include="netcoreapp2.0-Windows_NT">
<RuntimePath>$(ShimsTargetRuntimeRoot)netcoreapp2.0/</RuntimePath>
</BinPlaceConfiguration>
<!-- some libraries that produce packages will remain targeting uap10.0.16299 -->
<BinPlaceConfiguration Condition="'$(BuildingUAPVertical)' == 'true' OR '$(BuildingUAPAOTVertical)' == 'true'" Include="uap10.0.16299">
<RefPath>$(RefRootPath)uap10.0.16299/</RefPath>
Expand Down
4 changes: 0 additions & 4 deletions eng/dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@
</XmlUpdateStep>
</ItemGroup>

<PropertyGroup>
<CompatibilityShimsPackageVersion>2.1.0</CompatibilityShimsPackageVersion>
</PropertyGroup>

<!-- Set up dependencies on packages that aren't found in a BuildInfo. -->
<ItemGroup>
<TargetingPackDependency Include="Microsoft.TargetingPack.NETFramework.v4.5" />
Expand Down
1 change: 0 additions & 1 deletion external/netcoreapp/Configurations.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<BuildConfigurations>
netcoreapp2.0;
netcoreapp2.0-Windows_NT;
netcoreapp2.1;
</BuildConfigurations>
</PropertyGroup>
Expand Down
13 changes: 1 addition & 12 deletions external/netcoreapp/netcoreapp.depproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
<BinPlaceRef>true</BinPlaceRef>
</PropertyGroup>

<!-- The windows specific configuration provides the implementation assemblies to create shims
and the non-OS the ref assemblies. -->
<PropertyGroup Condition="'$(TargetsWindows)' == 'true'">
<!-- We use the win implementation to create the shims shipped inside the compat pack -->
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<BinPlaceRuntime>true</BinPlaceRuntime>
<BinPlaceRef>false</BinPlaceRef>
<NuGetDeploySourceItem>ReferenceCopyLocalPaths</NuGetDeploySourceItem>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NETCore.App">
<Version>$(NETCoreAppPackageVersion)</Version>
Expand All @@ -28,8 +18,7 @@
<ItemGroup>
<!-- for all configurations this project provides refs for that configuration -->
<BinPlaceConfiguration Include="$(Configuration)">
<RefPath Condition="'$(BinPlaceRef)' == 'true'">$(RefPath)</RefPath>
<RuntimePath Condition="'$(BinPlaceRuntime)' == 'true'">$(ShimsTargetRuntimeRoot)$(TargetGroup)/</RuntimePath>
<RefPath>$(RefPath)</RefPath>
</BinPlaceConfiguration>

<FileToExclude Include="System.ComponentModel.Composition" />
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</Dependency>
<!-- Include dependency to shims package -->
<Dependency Include="Microsoft.Windows.Compatibility.Shims">
<Version>$(CompatibilityShimsPackageVersion)</Version>
<Version>2.0.1</Version>
<TargetFramework>netcoreapp2.0</TargetFramework>
</Dependency>
</ItemGroup>
Expand Down
10 changes: 2 additions & 8 deletions src/shims/manual/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<Project>
<PropertyGroup>
<PackageConfigurations>
netcoreapp2.0;
</PackageConfigurations>
<BuildConfigurations>
$(PackageConfigurations);
netcoreapp;
netcoreappaot;
uap;
Expand All @@ -15,8 +11,6 @@
<!-- need to by-pass the Directory.Build.props in the shims directory for this project -->
<Import Project="..\..\Directory.Build.props" />
<PropertyGroup>
<_RuntimePath Condition="'$(TargetGroup)' == 'netcoreapp' OR '$(TargetGroup)' == 'uap' OR '$(TargetGroup)' == 'netcoreappaot'">$(RuntimePath)</_RuntimePath>
<_RuntimePath Condition="'$(TargetGroup)' == 'netcoreapp2.0'">$(ShimsTargetRuntimeRoot)netcoreapp2.0/</_RuntimePath>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<StrongNameKeyId>ECMA</StrongNameKeyId>
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
Expand All @@ -31,7 +25,7 @@

<ItemGroup>
<ReferencePath
Include="$(_RuntimePath)System.*.dll;$(_RuntimePath)Microsoft.Win32.*.dll"
Exclude="$(_RuntimePath)System.dll;$(_RuntimePath)System.Data.dll" />
Include="$(RuntimePath)System.*.dll;$(RuntimePath)Microsoft.Win32.*.dll"
Exclude="$(RuntimePath)System.dll;$(RuntimePath)System.Data.dll" />
</ItemGroup>
</Project>
31 changes: 0 additions & 31 deletions src/shims/shims.proj
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
<Project DefaultTargets="Build">
<PropertyGroup>
<PackageConfigurations>
netcoreapp2.0
</PackageConfigurations>
<BuildConfigurations>
$(PackageConfigurations)
</BuildConfigurations>
</PropertyGroup>

<Import Project="Directory.Build.props" />

<Target Name="GetGenFacadesInputs">
Expand Down Expand Up @@ -49,7 +40,6 @@
FacadePath="$(GenFacadesOutputPath)"
ProducePdb="$(ProducePdb)"
IgnoreMissingTypes="$(GenFacadesIgnoreMissingTypes)"
IgnoreBuildAndRevisionMismatch="$(GenFacadesIgnoreBuildAndRevisionMismatch)"
ForceZeroVersionSeeds="$(GenFacadesForceZeroVersionSeeds)"
BuildPartialReferenceFacade="$(GenFacadesBuildPartialReferenceFacade)"
/>
Expand Down Expand Up @@ -98,25 +88,4 @@
<FileWrites Include="@(BinPlaceItem)" />
</ItemGroup>
</Target>

<Target Name="GetCompatibilityShimsToPackage"
BeforeTargets="GetFilesToPackage">
<ItemGroup>
<!-- All the shims defined in netfxreference.props produced by this project need to be included in the ref path. -->
<FilesToPackage Include="@(NetFxReference->'$(GenFacadesOutputPath)%(Identity).dll')">
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetPath>/ref/netcoreapp2.0</TargetPath>
</FilesToPackage>

<!-- For the implementation path in the package we only want to include the non-manual shims produced by this project
and the manual shims that we produce against the 2.0.0 implementation will be included to the shims package through
a project reference, therefore we need to exclude them here. -->
<_manualShimProjects Include="manual\*.csproj" />
<_manualShims Include="@(_manualShimProjects->'%(FileName)')" />
<_libShims Include="@(NetFxReference)" Exclude="@(_manualShims)" />
</ItemGroup>
<PropertyGroup>
<TargetPath>@(_libShims->'$(GenFacadesOutputPath)%(Identity).dll')</TargetPath>
</PropertyGroup>
</Target>
</Project>

0 comments on commit f61f497

Please sign in to comment.