Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
2 Views

Individual file

Getting started with Fortran in Visual Studio. I am doing this tutorial with several exercises. I opened a file (File > New > File), wrote a program but dont have the option to build it. Do I have to create a Project each time I want to write a program?

 

0 Kudos
2 Replies
Highlighted
Valued Contributor II
2 Views

If you use the Visual Studio

If you use the Visual Studio interface, yes: it uses "solutions" and "projects" to organise the files. While that is convenient, if you have a more extensive program, for small programs of just a single source file or even a few source files I find that a significant overhead. But that is a matter of taste. For this situation I often use the command-line interface.

0 Kudos
Highlighted
Black Belt
2 Views

I suggest using New Project

I suggest using New Project rather than New File. Select Fortran Console Application > Sample Application. This gives you a template source file you can edit. To build, select Build > Build Solution.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos