简体   繁体   中英

Use ValueTuple in Ninja Trader 8 C# .Net 4.5

This question is beyond the scope of NinjaTrader Customer Service. The trading platform targets .Net 4.5 and I would like to use ValueTuple (.Net 4.7) with it.

I see there is this Nuget Package to add ValueTuple to previous versions of .Net.

https://www.nuget.org/packages/System.ValueTuple/

However Ninja Trader 8 can only Add .Dll files and that is a Nuget Package .nupkg.

Is that possible to extract these DLL from the Nuget Package and Add them to Ninja Trader 8 or is there any other possibility to include this ValueTuple Technology to .Net 4.5? I am quite a newbie I would much appreciate a step by step explanation in case it is possible. Thanks!!

Create a simple console application via Visual Studio and add the Nuget package. Open file explorer in your solution folder, go to packages-folder, there you'll find the DLLs you need.

Alternatively, you can download and extract the nupgk via eg 7z. See this stackoverflow answer for further information.

Example for extracting:

> nuget install system.valuetuple -OutputDirectory C:\temp\system.valuetuple

C:\\temp\\system.valuetuple will contain the value tuple dlls.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM