Multi-targeting .NET Framework 4 and Visual Studio 2012 - c#

I have installed Visual Studio 2012 Professional on my machine. I don't have Visual Studio 2010 installed, but I want to keep developing my applications using .NET Framework 4, but I don't have this option on my Visual Studio 2012. Look at the image:
I don't know what can I do to fix this problem, because I click on "More Frameworks..." link and try to install the Multi-Targeting for .NET 4.0.3 (installed on my machine), but it does not work. It says that this version of framework is still installed. What can I do to fix this problem?
Obs: I have lots of projects in C# and VB.NET with .NET 4.0, and I need to keep these projects with new projects on .NET 4.0.

I solved the problem doing these tasks:
Uninstall the Visual Studio 2012
Uninstall any reference for the .NET Framework 4.0 or 4.5
Clean the register with a tool like Glary Utilities and restart the computer
Install the .NET Framework 4.0 and install Microsoft Multi-Targeting for .NET Framework 4.
Install Visual Studio 2012 again

You fixed your problem, but it's likely that .NET Framework 4 Targeting Pack (not to be confused with the .NET Framework itself) failed to install for some reason. Did you get a warning at the end of the Visual Studio installation? Either way, in the future, a repair install of Visual Studio 2012 should have fixed the problem (Add or Remove Programs -> Microsoft Visual Studio [Edition] 2012 -> Change -> Repair).

I think that your issue is probably some mishap with the installation of .NET Framework. I installed Visual Studio 2012 Beta and have all kind of troubles with compatibility between framework versions. The only remedy was reinstalling Visual Studio, including .NET Framework.
Check out How to: Target a Version of the .NET Framework (MSDN).

After creating new a project, go to its properties (select your project in Solution Explorer then right click and select properties) and select the target framework!

Related

No .NET Core and .NET Standard options when creating project in Visual Studio

When I'm creating new project in Visual Studio I see only one option under .NET Core category and no .NET Standard category at all. There should be more options ex. library and "ASP.NET Configuration File".
I can create .NET Core projects by "dotnet" command in command line and when I'm opening project in Visual Studio I see ".NET Standard" as target framework.
I'm using Visual Studio Enterprise 2017 Version 15.8.1 on Windows 10 Pro.
I tried reinstalling .NET Core and Visual Studio, changed .NET Core to x86 and back to x64, restarted Windows about 10 times, cleaned env path, repaired VS in VS installer but I've seen no effect.

Can't see templates in Visual Studio 2015 for .net Core Class Library Project

I can't add anything to my .net Core Class Library project. Template window is empty.
What I have tried:
1) Reinstall .NET Core 1.0.1 - VS 2015 Tooling Preview 2
2) Clearing templates cache (ItemTemplatesCache, ProjectTemplatesCache) in Program Files/Microsoft Visual Studio 14.0/Common7/IDE and running
.\devenv.exe /InstallVSTemplates
.\devenv.exe /Setup
EDIT:
Repairing Visual Studio also didn't help.
EDIT 02. march 2017:
Reinstalling Windows didn't help. I thing templates somehow breaks after installing tools for debuging azure function.
Unfortunately I had to install VS 2017 for my .net core apps. I am sure now that in my case Azure SDK 2.9 was causing the problem.

How to target higher .net framework from visual studio 2003

I am a java developer and know very little about .Net. I am working on project which has some screens built using the .Net FrameWork. Recently, client updated to IE11 and now they are facing some .net exception related to Systems.Windows.Form while right clicking on any page.
After some research I realized this is an existing issue with .net 1.1 framework.
Can I point to Systems.Windows.Form.dll of some higher version of .net as I have other versions also installed on my system.
The first Visual Studio version to support Multi-Targeting was VS2008. Before then each version of Visual Studio only supported working with the then current version of the .Net Framework.
VS.Net => .Net 1.0
VS2003 => .Net 1.1
VS2005 => .Net 2.0
So you will have to migrate to a newer version of Visual Studio to resolve the issue.
Normally opening an old solution in a new version of Visual Studio will run an upgrade wizzard that in my experience rarely causes issues. However given how old VS2003 is I have no practical experience with how new versions of Visual Studio will handle it.

Unable to target .NET Framework 4.5 in Visual Studio 2013

For my project I'm required to target Microsoft .NET Framework 4.5, but am unable to do so.
Installed programs:
Whenever I try to install .NET Framework 4.5, it tells me it's already installed:
Make sure you have installed the latest update to Visual Studio 2013 which is Update 4. If it is installed, then do another install but select repair. Restart if necessary and try again.

.Net framework 4.5 Installed , still getting the error Project is Incompatiable

I have installed .NET framework 4.0 on my system , but when I open my project on VS 2010 , still getting the message ,
This Project is incompatiable with the current version of Visual Studio
Any Idea? I don not want to change the target framework to v4.0 in .csproject.
The error you are getting is not about an incompatible .NET framework version, it is about an incompatible Visual Studio version!
Visual Studio project versions are not linked to .NET versions. A Visual Studio 2008 project can target .NET 2.0 up to 3.5, but still you can't open a VS 2008 project with Visual Studio 2005, even though Visual Studio 2005 can create .NET 2.0 projects, too.
Having the latest .NET framework on your machine does not guarantee that you can open projects with the latest Visual Studio version in an older Visual Studio.
You can simply not downgrade Visual Studio projects easily. There are posts describing how to to it by modifying the project files, etc., but in general you can only upgrade projects using the wizard that's automatically opened by Visual Studio.
As I know you can't target .NET 4.5 with VS2010 the same way you couldn't target .NET 4.0 with VS2008. You will need to install VS2012 if you want to target .NET 4.5.
EDIT
found this answer but haven't tried it by myself

Categories

Resources