- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for all the silly questions. I've got a Fortran project .sln in VS 2017 that I am happy with and want to preserve as is. I wanted to start with that solution (.sln or .vfproj) and do a Save-As so I can add some more code (see my other posts) to read some input data.
I am very new to Visual Studio and how it organizes projects, so is there a way to keep my old solution and start a new solution with the same files? I probably need to save the F90 file I want to add on to as a new F90 file so I don't corrupt it.
I did poke around the File--> New--> Fortran Project from existing code and tried to do it but the F90 files must reside in different locations because some did not come over.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe. By default, the paths to source files are relative to the project file (.vfproj), but it depends on how you added them. I just copy the whole folder - that's really all you should need to do.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe. By default, the paths to source files are relative to the project file (.vfproj), but it depends on how you added them. I just copy the whole folder - that's really all you should need to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if you zip the whole folder system from the level above the sln file
unzip it it will create a second directory called program(2) which is identical and works to the old one and then modify to your heart's content or the Tincup Whiskey runs out.
it is an easy way to save a copy if you are about to do something dangerous like ski at Breckenridge in a snow storm, or code Intel Fortran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As Steve suggest I just copy the whole folder tree that has the project and files. Then you just open the project in the new folder. If you want to check there are no absolute file links in the 'new' project just rename the root folder for the original project on a temp basis. That way the new project will have errors if it is looking at any of the original files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the tips. I think I got it going. My F90 and FOR files were spread out and I wanted to change the name of the one I was going to modify and change the name that the EXE inherits when it is compiled. I changed the name of the FOR and deleted the old one and added the new copy. I made some changes to it and compiled and it ran my test data just fine. So everything is up and going AFA VS 2017 is concerned. Thanks for the tips. I'm pretty unorganized when it comes to programming.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page