Error creating the example PosSizer in Visual Studio with .NET Core
Author: nickinglis
Creation Date: 12/17/2018 12:27 PM
profile picture

nickinglis

#1
Hi

I've copy-pasted the source-code from http://personal.fidelity.com/products/trading/Trading_Platforms_Tools/pdf/Creating-PosSizers-in-Wealth-Lab-Pro.pdf

into Microsoft Visual Studio Enterprise 2017 Version 15.9.4 with the .NET Framework Version 4.7.03056. I added references to the project to Fidelity.Components.dll, WealthLab.PosSizers.dll and WealthLab.dll. I had to install the Microsoft.NETCore.Portable.Compatibility (1.0.1) to get around an mscorlib error. Now I get 'CS7069 Reference to type 'Component' claims it is defined in 'System', but it could not be found, which occurs on the like of code "if (_settngs == null)" - see attached screenshot.

So I can't build the sample PosSizer. What have I missed?

Thanks
Nick
profile picture

Eugene

#2
Hi Nick,

You don't need to install no .NET "Core" or .NET "Standard". These will not work. For Wealth-Lab 6.9 your solution should target the full .NET Framework 4.5 or 4.6 only (not the "Client profile").

This question has been touched before, see posts #35 to #44 here: Using Visual Studio 2015 and 2017 for debugging.
profile picture

nickinglis

#3
Got it thanks!
profile picture

Eugene

#4
You're welcome.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).