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

Using Fortran Project in a .Net Solution

sarraf
Beginner
499 Views
I intalled Intel Visual Fortran Compiler and also integrated it with visual studio.

If i build a single Fortran project in a .Net solution there's no problem; However, if i create another .Net project say C#, i can never add a reference of the Fortran Project to C# Project. I also chose to create a "Dinanyc-link Library" Fortran Project but when trying to add its referece to C# Project it always claims that the DLL is not a valid assembly or COM component.

To be precise, My Main Question is: How can i integrate a Fortran project into a C# Project?


Thnx for your help,
Abbas
0 Kudos
1 Reply
Steven_L_Intel1
Employee
499 Views
You don't do it by "adding a reference", which is done for managed code only. You right click on the C# project, select Project Dependencies, and make the DLL project a dependent of the C# project. That will establish the build order. You will still need to use the appropriate C# code to load the unmanaged DLL and call the routines.
0 Kudos
Reply