loadprojectvisual-studio-2022intel-fortran

How to solve the problem of loading Fortran projects in Microsoft Visual Studio 2022?


After installing the version 17.2, I can no longer load my Fortran projects into Microsoft Visual studio. When I open the .sln file, I get the two following errors.

enter image description here

enter image description here

It seems that the problem is due to the inability to load the package: 'CompatibilityToolPackage' correctly.

My ActivityLog.xml file


Solution

  • I found this message from Intel about the problem:

    https://community.intel.com/t5/Intel-Fortran-Compiler/Do-not-upgrade-VS-2022-to-version-v17-2-It-breaks-all/m-p/1382358

    Basically, Visual Studio 17.2 does not work with Intel Fortran. There is no workaround. You have to back install to a previous version of Visual Studio. The document gives instructions on how, and I have copied and pasted them here:

    1. Uninstall all Intel oneAPI components
    2. Uninstall Visual Studio 2022 v17.2 completely
    3. Find and download Visual Studio 2022 v17.1 or older. Links provided below
    4. Install Visual Studio 2022 v17.1 or older. See System Requirements, Visual Studio
    5. Install Intel oneAPI Toolkit(s) or Intel Fortran component