Search code examples
c#wpf.net-coreprojectavalondock

Why my C# Project properties has no target framework and no combo box choices?


I downloaded AvalonDock from GitHub and I open in in Visual Studio. There is no "Target framework" and the ComboBox list is empty and the ComboBox is disabled.

Anybody know why?

Note: I have a .net Core WPF application and add AvalonDock project as a dependency and everything works well.

enter image description here


Solution

  • The reason is most likely because of Multi-Targets.

    Open the project in Notepad, or Visual Studio by right clicking the Project name, and selecting 'Edit Project File' (if available), and look for a line like this:

    <TargetFrameworks>netstandard1.4;net40;net45</TargetFrameworks>
    

    Here is more information from Microsoft:

    https://learn.microsoft.com/en-us/dotnet/standard/frameworks

    Unfortunately, there is no Gui way to Multi-target, so that is why you will not see a target framework in your project.