pawhan11 Posted August 25, 2022 Report Share Posted August 25, 2022 I am trying to build Labview library and call it from .NET application. My app is build in .NET 4.8 but labview builds my library to 3.5. Is there a way to change it? Quote Link to comment
Bobillier Posted August 25, 2022 Report Share Posted August 25, 2022 (edited) 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 August 25, 2022 by Bobillier Quote Link to comment
pawhan11 Posted August 25, 2022 Author Report Share Posted August 25, 2022 Thanks for comment. I have tried this approach but outcome is the same. Tried full version names like v4.8.4084.0 etc Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.