replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Migrating a mixed C# / Fortran solution to a build server
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Migrating a mixed C# / Fortran solution to a build server

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
alex21



Joined: 20 Apr 2011
Posts: 75
Location: Australia

PostPosted: Wed Aug 03, 2011 3:43 am    Post subject: Migrating a mixed C# / Fortran solution to a build server Reply with quote

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
View user's profile Send private message MSN Messenger
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Wed Aug 03, 2011 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
alex21



Joined: 20 Apr 2011
Posts: 75
Location: Australia

PostPosted: Wed Aug 03, 2011 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Wed Aug 03, 2011 8:47 am    Post subject: Reply with quote

Not that I know of.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group