- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page