Changing the Default Target Framework Visual Studio 2010
Is there a way in Visual Studio 2010 to change the default target framework that projects point to when they are created? I want to target the 4.0. framework by default and NOT the Client Profile version of the 4.0 framework.
6 Answers 6
Visual Studio 2010 (and older versions) will remember the last target framework you chose when using File -> New -> New Project . So if you create a new project using 4.0, the next time you create a new project 4.0 will be preselected as the target framework.
EDIT : Further to comment below:
Having looked at this a little more there is another solution that is slightly less faffy than the info on the link I posted in the comments below.
Create a new solution/project with the setup you need, then goto File -> Export Template . After you have done there you can then use your new template when you go File -> New -> New Project .
How do I change the target framework in Visual Studio 2010?
Then, how do I change the version of .NET framework?
Net Framework from version 3.5 to version 4.0 – Stack Overflow. In Visual Studio:
- Right-click on your project.
- Select Properties.
- Select the Application tab.
- Change the Target Framework to the desired framework.
One may also ask, what is target framework in Visual Studio? When you target a framework in an app or library, you’re specifying the set of APIs that you’d like to make available to the app or library. You specify the target framework in your project file using Target Framework Monikers (TFMs). An app or library can target a version of .
Also asked, how do I change my target framework to .NET standard?
Right click on the project in solution explorer, select properties, and go to the application tab. You will see that the correct framework is selected in target framework. If you want to target a different version, for example, an older version of . NET Standard for a library, you change that here.
How do I check my .NET framework version?
The simplest way to find the framework version of the current . NET project is: Right-click on the project and go to “Properties.” In the first tab, “Application,” you can see the target framework this project is using.
17 Related Question Answers Found
How do I change the 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. Save the changes and close the editor.
Can you install multiple versions of NET Framework?
NET framework on a single computer? Microsoft designed the . NET Framework so that multiple versions of the framework can be installed and used at the same time. This means that there will be no conflict if multiple applications install different versions of the .
What version of .NET framework do I have?
From the Start menu, choose Run, enter regedit, and then select OK. You must have administrative credentials to run regedit. In the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINESOFTWAREMicrosoftNET Framework SetupNDPv4Full.
How do I check my current .NET framework version?
Answer: You can check the version of . NET Framework installed on a computer by opening a command prompt, navigating to \%windir%Microsoft.NETFrameWork, and then navigating to the directory with the latest version number. Once in the directory with the latest version number, run the command .
How do I enable .NET framework?
Enable the . NET Framework 3.5 in Control Panel Press the Windows key. on your keyboard, type “Windows Features”, and press Enter. The Turn Windows features on or off dialog box appears. Select the . NET Framework 3.5 (includes . NET 2.0 and 3.0) check box, select OK, and reboot your computer if prompted.
What is latest .NET framework version?
Net framework 1.0. The . Net framework has come a long way since then, and the current version is 4.7.
Which .NET framework should I target?
I would recommend moving to the . Net 4.0 Client Profile. Although it doesn’t have a large install base yet, it’s a small download that your users can easily install. If you don’t want your users to need to download the framework, you should target 3.5, which most people already have.
Can I remove Microsoft .NET framework?
NET Framework is done the same as other programs, except on newer Windows 8 and 10 systems where it cannot be uninstalled. The different versions and components will be listed in Programs and Features (or Add or Remove Programs for Windows XP). NET built into them. These built-in versions cannot be uninstalled.
How do I check my net Framework version Windows 10?
How to check your . NET Framework version On the Start menu, choose Run. In the Open box, enter regedit.exe. You must have administrative credentials to run regedit.exe. In the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINESOFTWAREMicrosoftNET Framework SetupNDP. The installed versions are listed under the NDP subkey.
What is .NET framework used for?
NET Framework. A programming infrastructure created by Microsoft for building, deploying, and running applications and services that use . NET technologies, such as desktop applications and Web services.
How do I target multiple net frameworks?
5 steps to targeting multiple . NET frameworks Step 1 – Visual Studio Project Configuration. First, we need to use Visual Studio to create multiple build definitions. Step 2 – Framework Targeting in Projects. Step 3 – References Targeting in Projects. Step 4 – Managing Clean Code with multiple frameworks. Step 5 – Build without Visual Studio.
What is .NET standard?
NET Standard is an API specification that defines, for a given version, what Base Class Libraries must be implemented. . NET Core is a managed framework that is optimized for building console, cloud, ASP.NET Core, and UWP applications. It provides an implementation of . NET Standard for the Base Class Libraries.
What is the difference between .NET core and .NET framework?
. NET Core is the new cross-platform and open-source . NET framework to develop applications for all major operating system including Mac, Linux, and Windows. . ASP.NET Core is used to build browser-based web applications and currently, it does not support a desktop application with the user interface.
Who created NuGet?
NuGet is a free and open-source package manager designed for the Microsoft development platform (formerly known as NuPack). Since its introduction in 2010, NuGet has evolved into a larger ecosystem of tools and services. NuGet is distributed as a Visual Studio extension.
What is ASP net5?
Introducing ASP.NET 5. ASP.NET 5 is an open source web framework for building modern web applications that can be developed and run on Windows, Linux and the Mac. It includes the MVC 6 framework, which now combines the features of MVC and Web API into a single web programming framework.
How do I change my .NET core version?
Checking the version of your . NET Core project Open your project’s source folder and in the address bar, type “cmd” and press Enter. It will open the Command Prompt with the project path. Execute the following command. dotnet –version. It will display your project’s current SDK version, i.e., 2.1. 503 in our case.
What is framework in Visual Studio?
Visual Studio . NET and the Microsoft . NET Framework SDK. NET is an application-development tool for writing applications; the . NET Framework provides the infrastructure required to run those applications.
Changing the Default Target Framework Visual Studio 2010
Visual Studio 2010 (and older versions) will remember the last target framework you chose when using File -> New -> New Project . So if you create a new project using 4.0, the next time you create a new project 4.0 will be preselected as the target framework.
EDIT : Further to comment below:
Having looked at this a little more there is another solution that is slightly less faffy than the info on the link I posted in the comments below.
Create a new solution/project with the setup you need, then goto File -> Export Template . After you have done there you can then use your new template when you go File -> New -> New Project .
Seems to work, not thoroughly tested it though.
Solution 2
There is a way to change it by hacking the template:
Which is probably close to the same as MrEyes answer.
Solution 3
I know the question was originally for VS2010, but in Visual Studio 2015, it’s much easier to change the target framework by default.
When adding a new project, change the framework at the top —

When you come to add another project, I’ve found that VS remembers the last selection I made.
Solution 4
In my VS 2010, I right-click on the project, select Properties, select the Compile tab, scroll down to the Advanced Compile Options button and click on it. The Advanced Compile Settings window appears. The last drop-down in that window is a list for target framework.
Setting the right target framework for a .NET project in Visual Studio 2010
In this Tips I’ll discuss about Client Profile which is nothing but a subset of the associated framework and optimized for client applications e.g. .NET Framework 4 Client profile is a subset of .NET Framework 4.
You can view or change the target framework for a project in Visual Studio 2010 as displayed below
![]()
Client Profile improves the deployment experience by having smaller download sizes and quicker install times as it has a smaller redistribution package that installs the minimum set of client assemblies on the user’s computer, without requiring the full version of the .NET Framework to be present.
If an assembly is referred which is not in Client Profile then the full version of .NET Framework is required. For more details please refer this msdn article .NET Framework Client Profile