Change project c# . Net 4.6 to . Net4.5

Asked

Viewed 104 times

2

Would have some way to change the summer of . Net used in my project to an earlier version ?

In my project is with . NET 4.6 and would like to return to the version . NET 4.5 without having to redo everything ?

  • And why would I do this?

  • @Maniero I am trying to upload my project to the server where it is running version 4.5 of . NET and my project is with version 4.6

  • The ideal is to update the server, do not think?

3 answers

4


1 - Go to Solution Manager
2 - Right click on the project you want
3 - Go on properties
inserir a descrição da imagem aqui


4 - Click on App
5 - Change the Destination Structure and ready

inserir a descrição da imagem aqui

Remembering that all projects within the solution must be in the same version to avoid build errors.

2

Open the project properties and change the "Target Framework" option to the version of . NET Framework desired... Note that if you used any functionality of . NET Framework 4.6, by changing the target framework to some lower one, you will get build errors... And there is no automatic way to convert from 4.6 to a lower one (only the other way around)...

But, if you have not used any . NET 4.6 resource, you will not have any problem...

1

Open the file . csproj and change the tag <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> with the version you want to use.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.