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

Add and Compiling current file

rwg
Novice
486 Views

Does someone know a shortcut or has written a macro to add the file currently opened in the editor to the active project and to compile this file?

I wrote a macro to add the file to the current project (by searching the right project and folder in DTE.Solution.Projects.Item and using ProjectItem.ProjectItems().AddFromFile) but didn't find any way to compile this file in the macro. I tried DTE.ExecuteCommand("Build.Compile") but this doesn't work with my FORTRAN files. I think I've to activate this file first but how can I do this?

0 Kudos
0 Replies
Reply