Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing target framework in visual studio

I am getting this following warning while building an app in xamarin: " Package 'SQLite.Net-PCL 3.1.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project."

So, I installed .net framework 4.6 developer pack

Now, when I try to change the target framework in Properties->Applications,

I dont find 4.6 framework. What did I miss here?

like image 556
user Avatar asked Aug 31 '19 14:08

user


People also ask

How to change the target framework in Visual Studio 2022?

In this tutorial, we’ll be using Visual Studio 2022 to change the target .NET Core framework. First, open your .NET Core project in Visual Studio. In the Solution Explorer, right-click on the project and select Edit Project File. Under the Target framework, you’ll see the framework version option ( net5.0) and the option to change it.

How do I change the default framework in Visual Studio?

To change the target Framework In Visual Studio, in Solution Explorer, select your project. On the menu bar, select File, Open, File. In the project file, locate the entry for the target Framework version. Change the value to the Framework version you want, such as v3.5 or v4.6. Save the changes and close the editor.

How do I find the Target Framework version in Visual Studio?

In the Open File dialog box, navigate to your project folder, and then open the project (.vcxproj) file. In the project file, locate the entry for the target Framework version.

How do I change the target version of a project?

Change the target framework. In an existing Visual Basic, C#, or F# project, you change the target .NET version in the project properties dialog box. For information about how to change the target version for C++ projects, see How to modify the target framework and platform toolset instead. In Solution Explorer, open the right-click menu for ...


1 Answers

You don't need to worry about these warnings, they usually don't cause a problem for you, stick with the framework that you prefer. Especially when using quickly changing frameworks you get these warnings all the time: just ignore them

If they still cause you trouble just

  • Alt+Enter on the project
  • Select "Application" on the sidebar
  • Choose your preferred framework version form the combo-box
like image 143
Prophet Lamb Avatar answered Nov 12 '22 16:11

Prophet Lamb