How to switch between target frameworks for .NET Core projects in Visual Studio

后端 未结 2 1688
花落未央
花落未央 2020-12-17 16:53

Say you have a .NET Core project that looks like this:

\"frameworks\": {
    \"net40\": {},
    \"dotnet5.1\": {}
}

And this is your C# cod

2条回答
  •  别那么骄傲
    2020-12-17 17:39

    At the top of your editor should be the navigation bar. Left in the navigation bar is a dropdown menu that lets you select the context.

    If the navigation bar is hidden, you can enable it by going into Tools > Options > Text Editor > C# and check the navigation bar checkbox.

提交回复
热议问题