diff --git a/global.json b/global.json index d35b44f4e5b..7e462b908b7 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "tools": { - "dotnet": "3.0.100-preview6-012264", + "dotnet": "3.0.100-preview7-012512", "runtimes": { "dotnet": [ "2.1.7", diff --git a/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props b/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props index ffc525ac3f5..985437424fe 100644 --- a/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props +++ b/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props @@ -2,8 +2,29 @@ <_MicrosoftNetSdkWindowsDesktop>true - - + + + + <_WindowsDesktopSdkTargetFrameworkVersionFloor>3.0 + + + MSBuild:Compile @@ -13,30 +34,43 @@ MSBuild:Compile - - MSBuild:Compile - - - - - + + - - + + + + + + + + + - - <_WpfCommonNetFxReference Include="WindowsBase" Condition="'$(_TargetFrameworkVersionWithoutV)' >= '3.0'" /> - <_WpfCommonNetFxReference Include="PresentationCore" Condition="'$(_TargetFrameworkVersionWithoutV)' >= '3.0'" /> - <_WpfCommonNetFxReference Include="PresentationFramework" Condition="'$(_TargetFrameworkVersionWithoutV)' >= '3.0'" /> + + + + <_WpfCommonNetFxReference Include="WindowsBase" /> + <_WpfCommonNetFxReference Include="PresentationCore" /> + <_WpfCommonNetFxReference Include="PresentationFramework" /> <_WpfCommonNetFxReference Include="System.Xaml" Condition="'$(_TargetFrameworkVersionWithoutV)' >= '4.0'"> 4.0 @@ -79,15 +118,16 @@ <_WpfCommonNetFxReference Include="System.Windows.Controls.Ribbon" Condition="'$(_TargetFrameworkVersionWithoutV)' >= '4.5'" /> - - <_SDKImplicitReference Include="@(_WpfCommonNetFxReference)" /> - - - - <_SDKImplicitReference Include="System.Windows.Forms"/> - - - - <_SDKImplicitReference Include="WindowsFormsIntegration"/> + + + <_SDKImplicitReference Include="@(_WpfCommonNetFxReference)" + Condition="'$(UseWPF)' == 'true'"/> + + <_SDKImplicitReference Include="System.Windows.Forms" + Condition="('$(UseWindowsForms)' == 'true') " /> + + <_SDKImplicitReference Include="WindowsFormsIntegration" + Condition=" ('$(UseWindowsForms)' == 'true') And ('$(UseWPF)' == 'true') "/> diff --git a/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.targets b/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.targets index 0d4999b49ca..8beb86feab2 100644 --- a/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.targets +++ b/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.targets @@ -1,20 +1,8 @@ + - - - - - - + @@ -25,9 +13,10 @@ - + Condition="('$(UseWPF)' == 'true') And ('$(_TargetFrameworkVersionWithoutV)' != '') And ('$(_TargetFrameworkVersionWithoutV)' >= '$(_WindowsDesktopSdkTargetFrameworkVersionFloor)')"> + + + + + + + + +