Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is <MvcProjectUpgradeChecked> Element in csproj file

I have just opened my existing application in VS 2015 RC and after some automatic upgradations check, it added the following lines in the csproj file of the project.

<MvcProjectUpgradeChecked>true</MvcProjectUpgradeChecked>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>4.0</OldToolsVersion>

I was wondering what does these line do? Can I check them in safely to the source control assuming that anyone else opening the solution can open it in some previous versions of Visual Studio ?

I was unable to find anything on MSDN for this tag

UPDATE

I just opened the solution after csproj modifications in Visual Studio 2013 and it opened without any issue, so this seems to be just a flag. But, nonetheless, can anybody share some definition for this?

like image 941
Naveed Butt Avatar asked May 05 '15 05:05

Naveed Butt


People also ask

What is none tag in Csproj?

csproj file tags: None - The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file. Compile - The file is compiled into the build output.

What does a Csproj file do?

CSPROJ files define a project's content, platform requirements, versioning information, and web server or database server settings. They also list the files that are part of the project.

Where is .csproj file located?

csproj files (WebApi is the name of my project). It is located as expected in the root of the project.


1 Answers

The project migration tool writes this so that you will only get the "limited MVC support" warning dialog one time. This is actually an artifact from earlier migration functionality; the project type used to be changed from one flavor to another, now older MVC projects are changed to WAPs (Web Application Projects) which would not trigger the "limited" dialog. However, if you delete it, the migration report will pop open the next time you open the project.

The other tags shown are also artifacts of file migration wizard when it creates the migration report and creates a backup of the project prior to modifying any files.

like image 157
Van Kichline Avatar answered Oct 06 '22 15:10

Van Kichline