View previous topic :: View next topic |
Author |
Message |
alex21
Joined: 20 Apr 2011 Posts: 75 Location: Australia
|
Posted: Wed Aug 03, 2011 3:43 am Post subject: Migrating a mixed C# / Fortran solution to a build server |
|
|
I am currently working on a .NET solution which contains a Fortran project. I would like to be able to compile this solution on the command line so it can be migrated onto our build server. The solution contains about five C# projects and one Fortran project. The Fortran project depends on some of the C# projects, and other C# projects depend on the Fortran project itself.
These dependencies might change in the future so I am looking for an elegant way to get this compiling on the command line. At the moment I have a script which looks like this (simplified):
Code: |
msbuild ProjectA.csproj
ftn95 FortranFile1.f95 /CLR /CLR_ver 4 /REF ProjectA.dll
ftn95 FortranFile2.f95 /CLR /CLR_ver 4 /REF ProjectA.dll
dbk_link4 FortranProject.dll /REF ProjectA.dll FortranFile1.dbk FortranFile2.dbk
msbuild ProjectB.csproj
|
Is there a better way to do this? It would be neat if there was a tool which reads the .ftn95p file and sorts out the compiling and linking process of the C# and Fortran projects automatically.
Thanks for your help.
Last edited by alex21 on Wed Aug 03, 2011 8:27 am; edited 1 time in total |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Aug 03, 2011 7:10 am Post subject: |
|
|
Maybe you should create a .rsp file from your .sln.
I have not done this for a while but this may be the command
devenv solution.sln /build configuration
Basically you need to look up the command line switches for devenv.exe. |
|
Back to top |
|
 |
alex21
Joined: 20 Apr 2011 Posts: 75 Location: Australia
|
Posted: Wed Aug 03, 2011 8:26 am Post subject: |
|
|
That does work but it necessitates a non-express Visual Studio installation on our build server. I was hoping to avoid doing that if possible. How is it done in Visual Studio? I assume it hands over to a SilverFrost library which reads the .ftn95p file for compilation and linking info. Is there a command line entry point to that library? |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Aug 03, 2011 8:47 am Post subject: |
|
|
Not that I know of. |
|
Back to top |
|
 |
|