Skip to content

Ensure that implicit references for .NET Framework projects are appropriate when targeting net3x and net40 - #881

Merged
vatsan-madhavan merged 3 commits into
masterfrom
dev/vatsan/wd-multitarget
Jun 8, 2019
Merged

vatsan-madhavan merged 3 commits into
masterfrom
dev/vatsan/wd-multitarget

Conversation

@vatsan-madhavan

@vatsan-madhavan vatsan-madhavan commented Jun 5, 2019 •

Copy link
Copy Markdown
Member

Fixes #255

Traditionally, Visual Studio has supplied these references for .NET Framework based WPF Projects:

  • .NET 3.x: PresentationCore, PresentationFramework, WindowsBase

  • .NET 4.x: PresentationCore, PresentationFramework, WindowsBase, System.Xaml

    Microsoft.NET.WindowsDesktop.SDK will supply the following references to .NET Framework based
    WPF Projects:

    • .NET 3.x:

      • PresentationCore, PresentationFramework, WindowsBase
    • .NET 4.0:

      • PresentationCore, PresentationFramework, WindowsBase, System.Xaml,
      • UIAutomationClient, UIAutomationClientSideProviders, UIAutomationProvider, UIAutomationTypes
    • .NET 4.5+:

      • PresentationCore, PresentationFramework, WindowsBase, System.Xaml,
      • UIAutomationClient, UIAutomationClientSideProviders, UIAutomationProvider, UIAutomationTypes
      • System.Windows.Controls.Ribbon

Also adds $(_MicrosoftNetSdkWindowsDesktop) . This can be used later in Microsoft.NET.Sdk to test whether properties like UseWpf or UseWindowsForms are set without import Microsoft.NET.Sdk.WindowsDesktop and show a warning.

@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jun 5, 2019
@ghost
ghost requested review from rladuca, ryalanms and stevenbrix June 5, 2019 23:34
@vatsan-madhavan
vatsan-madhavan force-pushed the dev/vatsan/wd-multitarget branch from ea70eed to cc2c477 Compare June 6, 2019 22:16
@vatsan-madhavan vatsan-madhavan added this to the Preview milestone Jun 6, 2019
…Microsoft.NET.Sdk` to test whether properties like `UseWpf` or `UseWindowsForms` are set without import `Microsoft.NET.Sdk.WindowsDesktop` and show a warning.
@vatsan-madhavan
vatsan-madhavan merged commit 7129d5a into master Jun 8, 2019
@vatsan-madhavan
vatsan-madhavan deleted the dev/vatsan/wd-multitarget branch June 8, 2019 06:13
@ghost ghost locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft.NET.Sdk.WindowsDesktop.props references System.Windows.Controls.Ribbon on .NET 4.0

5 participants