diff options
author | Wes Haggard <Wes.Haggard@microsoft.com> | 2017-04-06 01:18:01 +0300 |
---|---|---|
committer | Wes Haggard <Wes.Haggard@microsoft.com> | 2017-04-06 22:59:22 +0300 |
commit | fac469aae0da205eb6bb6fa8a85f5129f758f384 (patch) | |
tree | 8b318cc803e3f3a8a967b6e292b3cfff679d19c5 /src/shims/shims.proj | |
parent | 0325187c9d2ef504a2adf984f94655408ec1315e (diff) |
Add netfx configuration to shim project to build netstandard shim
Diffstat (limited to 'src/shims/shims.proj')
-rw-r--r-- | src/shims/shims.proj | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/shims/shims.proj b/src/shims/shims.proj index 822f128c86..229c304208 100644 --- a/src/shims/shims.proj +++ b/src/shims/shims.proj @@ -4,13 +4,13 @@ <Target Name="GetGenFacadesInputs"> <ItemGroup> - <NetFxContracts Include="@(NetFxReference->'$(NetFxRefPath)%(Identity).dll')"> + <NetFxContracts Include="@(NetFxReference->'$(NetFxRefPath)%(Identity).dll')" Condition="'$(TargetGroup)' != 'netfx'"> <StrongNameSig Condition="'%(NetfxReference.StrongNameSig)' == ''">StrongName</StrongNameSig> <StrongNameSig Condition="'%(NetfxReference.StrongNameSig)' != ''">%(NetfxReference.StrongNameSig)</StrongNameSig> </NetFxContracts> <NETStandardContracts Include="$(NetStandardRefPath)netstandard.dll" /> <GenFacadesContracts Include="@(NetFxContracts);@(NETStandardContracts)" /> - <GenFacadesSeeds Include="$(RefPath)*.dll" Exclude="$(RefPath)System.Private.CoreLib.dll" /> + <GenFacadesSeeds Include="$(RefPath)*.dll" /> </ItemGroup> </Target> @@ -43,9 +43,13 @@ <GenFacadesCmd>$(ToolHostCmd) "$(ToolsDir)GenFacades.exe"</GenFacadesCmd> </PropertyGroup> - <Exec Command="$(GenFacadesCmd) -contracts:"@(NetFxContracts)" @"$(GenFacadesResponseFile)"" WorkingDirectory="$(ToolRuntimePath)" /> + <Exec Condition="'@(NetFxContracts)' != ''" + Command="$(GenFacadesCmd) -contracts:"@(NetFxContracts)" @"$(GenFacadesResponseFile)"" + WorkingDirectory="$(ToolRuntimePath)" /> - <Exec Command="$(GenFacadesCmd) -contracts:"@(NETStandardContracts)" @"$(GenFacadesResponseFile)"" WorkingDirectory="$(ToolRuntimePath)" /> + <Exec Condition="'@(NETStandardContracts)' != ''" + Command="$(GenFacadesCmd) -contracts:"@(NETStandardContracts)" @"$(GenFacadesResponseFile)"" + WorkingDirectory="$(ToolRuntimePath)" /> <WriteSigningRequired Condition="'$(SkipSigning)' != 'true' and '$(SignType)' != 'oss'" |