Jump to content

LabVIEW .NET interop assembly target framework


Recommended Posts

Hi pawhan11

Few days ago I have experiment one similar problem about exe and a .NET compoment (look here). I have solved it by adding a small file before my exe to indicate what assembly runtime version using.

I'm not sure than you can use similar thing to solve your problem (LV11 refer natively to  .NET 3.5), but perhaspse that can run. I have see something about that here

Step 1: create a texte file named Labview.exe.config

Step2: Place the text below in it

<?xml version ="1.0"?>
<configuration>
   <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.8"/>
   </startup>
</configuration>

Take care about supportedRuntime version number because  it must be corresponding to your .NET constructor.

Step3 : Save this file in same directory than your Labview version, and restart LabVIEW

Step4 : Rebuild your assembly.

Edited by Bobillier
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.