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

How to run Fortran projects in Microsoft Visual studio 2022 after update v.17.2?

g_don
초보자
14,778 조회수

Hi to everyone,

Yesterday, after installing the version 17.2, I could no longer load my Fortran projects into Microsoft Visual studio. When I opened the .sln file, I got a warning about the failed loading of package "CompatibilityToolPackage". Hence, I decided to restore windows to the state before the upgrade but, due to some malfunctions in M. Visual Studio, I was forced to reinstall all windows programs. Now I have a clean install of windows 10 on my laptop.

The programs that worked correctly and allowed me to program in Fortran were: Intel oneAPI Base Toolkit 2022.1.0.116, Intel oneAPI HPC Toolkit 2022.1.0.93 and Microsoft Visual Studio community 2022 v. 17.1 (previous versions also worked well ).
I have in the external HDD the installation files of the first two but unfortunately I no longer have the MSV installation file.
I read on this community that the problem is MVS version 17.2. I tried to download an earlier version of MVS but this is not possible for the community version.


Can you help me to get the IDE working again with Intel Fortran compiler?

 

 

1 솔루션
Steve_Lionel
명예로운 기여자 III
14,606 조회수

I don't think there's a download link for the 17.0 Community Edition. But you can get VS2019. 

원본 게시물의 솔루션 보기

0 포인트
15 응답
IanH
명예로운 기여자 III
14,772 조회수
See the post currently pinned to the top of the forum - https://community.intel.com/t5/Intel-Fortran-Compiler/Do-not-upgrade-VS-2022-to-version-v17-2-It-breaks-all/m-p/1382358#M161212

You will need to install an older version of VS2022 (or any version of VS2019). https://visualstudio.microsoft.com/vs/older-downloads/ might be a useful starting point.
0 포인트
g_don
초보자
14,639 조회수

Thanks for your answer. I download the VS 2022 professional version (trial version for three month). Then I'll download the 2019 versione if the problem persist in MS 2022 v17.2.

0 포인트
JohnNichols
소중한 기여자 III
14,622 조회수

It will persist

 

You only need to community free version 

0 포인트
g_don
초보자
14,613 조회수

Ok. So, in three months I will download the community free version of VS 2019 because I could not find the community version of VS 2022 v17.0, if it is possbile, can you provide me the direct link to download the latter one?

0 포인트
Steve_Lionel
명예로운 기여자 III
14,607 조회수

I don't think there's a download link for the 17.0 Community Edition. But you can get VS2019. 

0 포인트
LeonardB
새로운 기여자 I
13,615 조회수

Hi

Are there any known issues about VS 2022 v17.4.0 and IDE integration with latest Fortran, downloaded today?

At first everything looked OK.  A test with a “Hello world” project worked.  Then VS froze and the integrations disappeared.

 

Leonard

0 포인트
JohnNichols
소중한 기여자 III
13,600 조회수

it is a mess and I just had to roll back avoid 17.4.  

1. it will not close

2 it will not install vsix files

3. it will not close solutions

 

for Fortran projects

Nick3
새로운 기여자 I
13,570 조회수

My coworker had installed the preview of 17.4 the other day, and it worked, kind of ... 

well, you can look at my post history.

One option, when you've exhausted all other options, is to uninstall everything (follow procedures on Intel forums  -  Microsoft.VisualStudio.Setup.Configuration.Native.dll,    installcleanup.exe -f), install something that works (might have to repair freshly installed VS for Intel to detect its existence), and don't touch your configuration for a year till Intel runs stress tests and sorts this out.  Hopefully this works for you.

 

https://www.intel.com/content/www/us/en/developer/articles/technical/vs2022-and-oneapi-install-issue.html

https://learn.microsoft.com/en-us/visualstudio/install/uninstall-visual-studio?view=vs-2019

 

I would run a version of VS2019 (in parallel with VS2022?), since VS2019 is no longer in active development (less likely to break).  Latest, or whatever Intel lists as compatible, take your gamble.

https://learn.microsoft.com/en-us/visualstudio/releases/2019/history#installing-an-earlier-release

(similar thing exists under their VS2022 page if you scroll down)

https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history

 

0 포인트
JohnNichols
소중한 기여자 III
13,563 조회수

VS 2022 has a rollback feature, rollback to 17.3 and everything is fine. 

0 포인트
Steve_Lionel
명예로운 기여자 III
13,560 조회수

I can reproduce the problem that 17.4 won't close (or even close a solution), though everything else seems fine. Where did you find a rollback option? The only thing I can find is an uninstall and reinstall the older version.

0 포인트
Steve_Lionel
명예로운 기여자 III
13,553 조회수

I did some more tests. The issue with being unable to close the solution or VS happens only when a Fortran project open.  I uninstalled all of the oneAPI products, reinstalled just the latest Fortran. An MSVC project doesn't have a problem, but if I open a Fortran project VS just refuses to close the solution. I will report this to support.

0 포인트
Cameron
새로운 기여자 I
13,525 조회수

I found that in v17.4, at least in my environment, build errors/warnings were not displayed at all.  Replying in case anyone else comes across this post while searching like I did with the same issue.

Rolling back to 17.3.5 works for now.

0 포인트
Devorah_H_Intel
중재자
13,553 조회수

Looks like "rollback" is a new feature that VS introduced. It is under "More" menu in VS Installer.

Devorah_H_Intel_0-1668102087412.png

 

Steve_Lionel
명예로운 기여자 III
13,547 조회수

Thanks - found it, and it works.

JohnNichols
소중한 기여자 III
13,481 조회수

Sorry, got side-tracked yesterday.  I am glad Barbara found the rollback.  I stumbled across it. 

Steve:

You were correct waiting for the new NUCs was worth it.  The ones in the Smithsonian are brilliantly stable, except one that is a flake, but I dragged it home.  

The CORE i3 nucs when running the winareotweaker test sets give the same 8 score as my dell precision i7.   The core i3 run Fortran quite nicely not complaints.  

It is like buying a TransAm and it is slowly than a Datsun 1200.  

 

JMN

 

0 포인트
응답