Re: .Net Framework target
Ovidiu MacSiniuc <[email protected]>
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jeroen, Editing the ikvmc.exe.config was not useful, but adding the -nostdlib and references to 2.0 assemblies: -r:/usr/lib/mono/2.0/mscorlib.dll -r:/usr/lib/mono/2.0/System.dll did the trick. Many thanks, Ovidiu On Thursday, March 6, 2014 10:07 AM, Jeroen Frijters <[email protected]> wrote: Hi Ovidiu, By default the .NET Framwork version that ikvmc run on determines the target framework. On the .NET Framework you can override this by editting ikvmc.exe.config, I don't know if that works on Mono. You can also use the -nostdlib option combined with -lib:<path> to point to another framework version. Regards, Jeroen > -----Original Message----- > From: Ovidiu MacSiniuc [mailto:[email protected]] > Sent: Wednesday, March 5, 2014 20:34 > To: [email protected] > Subject: [Ikvm-developers] .Net Framework target > > Hello everybody, > > I could not find any applicable similarities in the list archive so I > call for your help again: > > Is there a way to specify the target .Net Framework for assembly > compiled with ikvmc ? > > I observed (using CorFlags.exe) that on windows the target is 2.0.50727. > Running with Mono on Linux, I get 4.0.30319 as target version. That's > strange as long as they are the same IKVM binaries. > I even tried to force Mono with --runtime=v2.0.50727, but without > success. What forces ikvmc on Linux to target the 4.0 framework? > > > Because the .Net version are different, > the System.BadImageFormatException is thrown at runtime and the > application abends. > > Many thanks, > Ovidiu > > ------------------------------------------------------------------------ > ------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization > and the freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.cl > ktrk > _______________________________________________ > Ikvm-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk