Fortran project templates in VS2019

IM 20 Reputation points
2023-09-05T03:43:17.0966667+00:00

Hello, I cannot find project tempates for Fortran in VS2019. I have to uninstall VS2022 because of compiler linking errors. I have posted my issue at https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-linking-Fortran-Compilers-in-Visual-Studio/m-p/1520333/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExNNTFFRjQyTVdEWUlUfDE1MjAzMzN8U1VCU0NSSVBUSU9OU3xoSw#M168070

Now the idea is to work on VS2019 but I cannot find a fortran project template. Can someone please guide me in starting a Console application as well as Projects with subroutines in Fortran. I shall be very grateful.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,096 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 30,561 Reputation points Microsoft Vendor
    2023-09-05T06:40:18.02+00:00

    Hello @IM,

    Welcome to Microsoft Q&A forum.

    After installing Visual Studio 2019 with Desktop Development with C++ workload, please go to Intel oneAPIHPC Toolkit download page, select the Online Installer, download and install it. Remember to check the box Microsoft Visual Studio 2019 in the Integrate IDE step. Wait for the installation finishes and launch VS 2019, try to search for Fortran project templates.

    User's image

    User's image

    If you have installed the toolkit, then please try to reinstall(uninstall from Control Panel and reinstall) it.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 44,501 Reputation points
    2023-09-05T05:25:23.6066667+00:00

    A Fortran project type isn't available from Microsoft, you have to head out for 3rd party solution.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.