|
34 | 34 | <FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" IsImplicitlyDefined="true" />
|
35 | 35 | </ItemGroup>
|
36 | 36 |
|
| 37 | + <!-- |
| 38 | + Traditionally, Visual Studio has supplied these references for .NET Framework based |
| 39 | + WPF Projects: |
| 40 | + |
| 41 | + .NET 3.x: PresentationCore, PresentationFramework, WindowsBase |
| 42 | + .NET 4.x: PresentationCore, PresentationFramework, WindowsBase, System.Xaml |
| 43 | +
|
| 44 | +
|
| 45 | + Microsoft.NET.WindowsDesktop.SDK will supply the following references to .NET Framework based |
| 46 | + WPF Projects: |
| 47 | + |
| 48 | + .NET 3.x: PresentationCore, PresentationFramework, WindowsBase |
| 49 | + |
| 50 | + .NET 4.0: PresentationCore, PresentationFramework, WindowsBase, System.Xaml, |
| 51 | + UIAutomationClient, UIAutomationClientSideProviders, UIAutomationProvider, UIAutomationTypes |
| 52 | + |
| 53 | + .NET 4.5+: PresentationCore, PresentationFramework, WindowsBase, System.Xaml, |
| 54 | + UIAutomationClient, UIAutomationClientSideProviders, UIAutomationProvider, UIAutomationTypes |
| 55 | + System.Windows.Controls.Ribbon |
| 56 | + --> |
37 | 57 | <ItemGroup Condition=" '$(DisableImplicitFrameworkReferences)' != 'true' and '$(TargetFrameworkIdentifier)' == '.NETFramework' And '$(UseWPF)' == 'true' ">
|
38 | 58 | <_SDKImplicitReference Include="WindowsBase"/>
|
39 | 59 | <_SDKImplicitReference Include="PresentationCore"/>
|
40 | 60 | <_SDKImplicitReference Include="PresentationFramework"/>
|
41 |
| - <_SDKImplicitReference Include="System.Windows.Controls.Ribbon"/> |
42 |
| - <_SDKImplicitReference Include="System.Xaml"/> |
| 61 | + </ItemGroup> |
| 62 | + |
| 63 | + <ItemGroup Condition=" '$(DisableImplicitFrameworkReferences)' != 'true' and '$(TargetFrameworkIdentifier)' == '.NETFramework' And '$(UseWPF)' == 'true' And $(TargetFramework.StartsWith('net4'))"> |
| 64 | + <_SDKImplicitReference Include="System.Xaml"> |
| 65 | + <RequiredTargetFramework>4.0</RequiredTargetFramework> |
| 66 | + </_SDKImplicitReference> |
43 | 67 | <_SDKImplicitReference Include="UIAutomationClient"/>
|
44 | 68 | <_SDKImplicitReference Include="UIAutomationClientSideProviders"/>
|
45 | 69 | <_SDKImplicitReference Include="UIAutomationProvider"/>
|
46 | 70 | <_SDKImplicitReference Include="UIAutomationTypes"/>
|
| 71 | + <_SDKImplicitReference Condition="'$(TargetFramework)' != 'net40'" Include="System.Windows.Controls.Ribbon"/> |
47 | 72 | </ItemGroup>
|
48 | 73 |
|
49 | 74 | <ItemGroup Condition=" '$(DisableImplicitFrameworkReferences)' != 'true' and '$(TargetFrameworkIdentifier)' == '.NETFramework' And '$(UseWindowsForms)' == 'true' ">
|
|
0 commit comments