WindowsBase NETCoreApp vs WindowsDesktopApp
See original GitHub issueI am starting this as a question, if there is a bug I am not quite sure who it belongs to.
It appears that WindowsBase assembly is both part of Microsoft.WindowsDesktop.App as well as Microsoft.NETCore.App. However, they have different assembly version (4.0.0.0 vs 6.0.2.0):
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.14\WindowsBase.dll
WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
vs
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.14\WindowsBase.dll
WindowsBase, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
My question is why do they have different versions?
(Obviously I do have an issue for context, when you compile C++/CLI assembly targeting net6.0, it uses references from Microsoft.WindowsDesktop.App. When you then add the C++/CLI assembly as a reference to a normal net6.0 project, you get a MSB3277 conflict between WindowsBase 4.0.0.0 coming from a Microsoft.NETCore.App.Ref and WindowsBase 6.0.2.0 coming from the C++/CLI reference.)
Issue Analytics
- State:
- Created 7 months ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top Results From Across the Web
.NET Core 3 and Support for Windows Desktop ...
NET Core 3 is support for Windows desktop applications, specifically Windows Forms, Windows Presentation Framework (WPF), and UWP XAML.
Read more >What's new with .NET for Desktop?
NET Core is to provide a unified platform for all types of applications, which includes Windows, cross-platform, and mobile applications. .NET ...
Read more >Started to get "This project is targeting a version of .NET ...
Before VS 2022 came out I started working on a .NET 5 API ... App 3.1.5 [C:\Program Files\dotnet\shared\Microsoft. ... WindowsDesktop.App ...
Read more >.NET desktop apps | Free tools and frameworks
Free tools and frameworks for building desktop applications with the .NET platform. Develop desktop apps for Windows, macOS, and the web.
Read more >.NET Core 3 for Windows Desktop - .NET Blog
While developing desktop applications, you won't notice much difference between .NET Framework and .NET Core versions of WPF and Windows Forms.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Normally NuGet restore flows that information, either for project or package references.
If you’re referencing a DLL directly, then that information doesn’t flow and you need to know to add the FrameworkReference.
I believe this is why.