I am using FTN95 with Visual Studio 2017. After a recent update to VS2017, when I try to add a .dll reference to a FTN95 project, VS2017 crashes with a message indicating the FTN95 1.0 plugin is the cause. Has anyone else experienced this?
VS2017 Plugin Causes Crash?
What version of Visual Studio do you have?
Good afternoon Robert,
I am using VS2017 Version 15.9.19; .NET Version 4.8.03761; FTN95 Version 8.50, of course.
Is it a .NET project and what sort of DLL?
The .dll's and the calling routines are .NET. The .dll's are written in both FTN95 and C#. They are different classes in different folders. They are older, working programs. The routine that tries to call them is itself a FTN95 Application Extension that is called by a C# main program. The applications are both Console apps (for debugging) and Windows Services (for release). The problem occurs with both. This is all done on a 64-bit server running Windows Server 2012R2. It was all working correctly until the VS2017 update sometime last week.
I have updated my Visual Studio 2017 to 15.9.19. The Fortran example 'Fortran Calculator' (At C:\Users\Robert\Documents\FTN95 Examples\NET\FortranCalculator\CS on my machine) compiles, links and runs fine. It creates an FTN95 assembly and calls it from C#.
What problem do you get -- and can you run the example?
My problem is not with adding a reference to a C# project; it is with adding a reference to a FTN95 Application Extension project. I click on 'References' under the project in Solution Explorer, then 'Add' ⇒ 'Add Reference' ⇒ 'Browse' ⇒ navigate to the .dll I want, select it, click 'Add' and VS2017 vanishes, instantly, completely. No messages, nothing.
I have reproduced this behaviour. It (for me) is specific to the 'Browse' feature. It will add recent assemblies or existing .NET ones quite happily.
This is a new plug-in DLL which should allow you to browse for DLL references:
http://www.silverfrost.com/public_downloads/beta/Ftn95Prj.dll
It should go here:
C:\Program Files (x86)\Silverfrost\Silverfrost FTN95 for Visual Studio