I've been using LabVIEW for many years, but I am new to .NET.
I would like to use some basic .NET functions in my application (using LabVIEW 2020). The application will be compiled into an EXE and distributed to customers through an installer (using LabVIEW Application Builder).
My question is: What do I need to include in my installer to ensure my .NET functions will work properly on the target machine?
There is nothing specific from a LabVIEW perspective (the runtime handles the COM CLR hosting) but you may need to add additional installers from outside LabVIEW. Depends on what .NET assemblies you are using.
Thank you. This was helpful. I had a couple follow up questions:
2 NI software installs VC2015 Runtime and .NET 4.6.2
So if I write my code using .NET Framework 4.6.2, due to the backward compatibility of the framework, I can certain that it will run on my target machine ... because the LV RTE install will install 4.6.2 (if a >= version is not already present). Not sure how I'd test this, though. Would have to find a fresh Windows computer without .NET framework installed.
I suspect your second question resolves the first. I think your information is correct, the LabVIEW run-time does have a dependency on a minimum version of .NET (could be 4.6.2) as it needs that to access the CLR COM components. It also has a few of its own tools targeting the framework. So you can be sure that a minimum version already exists if you have the run-time. To be doubly sure of this, you could try installing into a fresh VM.
In addition; this link might be useful in case you have need check installation version: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-ar...