Vulcan.NET: System.InvalidProgramException
Posted: Tue Aug 20, 2019 10:28 am
Mathias,
I think there are different versions of the .Net framework on both machines.
When compiling Vulcan does not load the reference assemblies from the "c:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFramework" subfolders (like C# and X# do) but loads the reference assemblies from the c:WindowsMicrosoft.NETFrameworkv4.0.30319 folder.
This has a risk: even if you tell the compiler that you want to compile against version 4.6, it will still resolve your code against the version that is installed in that folder. So you (or the compiler) may use something that is not available in the target framework that you selected.
C# and X# use the reference assemblies from one of the subfolders from the above folder, so you know for sure that you are only using things that are allowed on that particular version of the framework.
Robert
I think there are different versions of the .Net framework on both machines.
When compiling Vulcan does not load the reference assemblies from the "c:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFramework" subfolders (like C# and X# do) but loads the reference assemblies from the c:WindowsMicrosoft.NETFrameworkv4.0.30319 folder.
This has a risk: even if you tell the compiler that you want to compile against version 4.6, it will still resolve your code against the version that is installed in that folder. So you (or the compiler) may use something that is not available in the target framework that you selected.
C# and X# use the reference assemblies from one of the subfolders from the above folder, so you know for sure that you are only using things that are allowed on that particular version of the framework.
Robert