Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29011 Discussions

Upgrade VFPROJ files from Intel 11 to 13

Adrian_F_1
Beginner
1,714 Views

Let me try a new thread which explcictly details my issues.  I am upgrading from VS2008/Intel 11.1 to VS2012/Intel 13.

When I try to build by solution I get many of the following errors:

D:\Devl.OLI\OLIEngines13\src\module\module.vfproj(2,1): error MSB4075: The project file "D:\Devl.OLI\OLIEngines13\src\module\module.vfproj" must be opened in the Visual Studio IDE and converted to the latest version before it can be built by MSBuild.

From an earlier thread I was pointed to section 3.6.2 of the Release Notes.  This mentions that dependencies have to be removed and re-added.  Well I just went through that laborious process and I still get the same problem.

So I thought I would create a new solution just with modules.vfproj in it, ie. no dependencies.  This built just fine, I did a Save All, closed VS2012 and looked at modules.vfproj.  It still has the original date of Feb 2013 and also contains the line:

<VisualStudioProject ProjectType="typeStaticLibrary" ProjectCreator="Intel Fortran" Keyword="Dll" Version="11.0" ProjectIdGuid="{BE7F6B6F-4F49-4857-80B4-7DA8EA15AC38}">

which shows me that Intel 13 has not upgraded this project file to v13.  Therefore my big solution will always fail as the base project "modules" (and all the others) are not being upgraded.

Please let me know how to get around this.

0 Kudos
10 Replies
Adrian_F_1
Beginner
1,714 Views

I created a new project from scratch in VS2012 / Intel 13, and the top of the vfproj file still says:

<VisualStudioProject ProjectType="typeStaticLibrary" ProjectCreator="Intel Fortran" Keyword="Static Library" Version="11.0" ProjectIdGuid="{EABD0D04-B85D-4AFA-8331-C38DCE79149F}">

Why does it show version 11.0?

0 Kudos
Anonymous66
Valued Contributor I
1,714 Views

Version="11.0" is the version of visual studio the project is for. Microsoft* Visual Studio 2012 is version 11.0.

0 Kudos
Adrian_F_1
Beginner
1,714 Views

I don't think so.  My original projects were all created in VS2008 / Intel 11.  And all of those VFPROJ files say Version="11.0" at the top, and they were created in VS v9.0.  I'm pretty sure the 11.0 in the VFPROJ file refers to the Intel Fortran version.

0 Kudos
Adrian_F_1
Beginner
1,714 Views

My problem does indeed involve C++ projects calling Fortran.  So I tried to follow the Release Notes which says I must remove the dependency.  However when I try to do this in Project -> Project Dependencies and try to uncheck the Fortran library, a window pops up saying:
"This dependency was added by the project system and cannot be removed"

(It's actually lying as I added the dependency in the original VS2008 project!)

So what do I do now?

0 Kudos
Anonymous66
Valued Contributor I
1,714 Views

You are right. I looked at some older projects and they say 11.0 as well. Regardless this field is not used to determine the compiler version and is not the source of your issue.

0 Kudos
Adrian_F_1
Beginner
1,714 Views

Any idea what is the source of my issue?

0 Kudos
Adrian_F_1
Beginner
1,714 Views

Solution found:

  • Open the dependent .vcxproj file in your favorite text editor.
  • Find <ProjectReference> tag corresponding to the dependency you want to remove (the include attribute of the tag will contain the name of the dependency project).
  • Remove the whole <ProjectReference> element (i.e. starting with <ProjectReference> and ending with </ProjectReference> inclusive). Save the file.
  • Reload the solution.
0 Kudos
IanH
Honored Contributor III
1,714 Views

You needed to remove references and add dependencies.  Your posts and the error messages you saw read as if you were trying to do this the other way around.

0 Kudos
Adrian_F_1
Beginner
1,714 Views

I think you are correct- I had never heard of a Reference so assumed it was the same as a Dependency.  Thanks.

0 Kudos
Steven_L_Intel1
Employee
1,714 Views

This issue is discussed in the Fortran release notes.

0 Kudos
Reply