- ago
So I have followed the few resources available in order to try and get a Visual Studio 2022 class library strategy workflow working with Wealth-Lab. I have been able to successfully reference the proper dlls and get strategy builds working within visual studio but the issues I am running into I can not seem to come up with a work around.

1. When having WL open and working in VS if I run a new build which then outputs the DLL of my class library to C:\Program Files\Quantacula, LLC\WealthLab 8\ I get the error in Visual Studio that it is unable to copy the class library dll because it is being used by another process (WL)

2. Also assuming that I am generating a new DLL to be put into WL in which case the dll wont be locked since it doesnt exist in WL then it is successfully able to add the dll however the strategies list in WL do not update and require a restart to then see the new strategies from the class library, which then obviously leads to issue #1 if continuing to work on it.

My question is, has anyone at WL or a community member actually come up with a working proper workflow here or can we get a resource put together for the community to be able to follow for .net 6 and VS 2022, being able to add this to the extension demos repo would be very helpful.

https://github.com/LucidDion/WL8ExtensionDemos

#WealthLab8,#VisualStudio,#.net6,#vs,#vs2022
0
840
Solved
11 Replies

Reply

Bookmark

Sort
- ago
#1
Have you perhaps overlooked answer to your question by Glitch here?

https://www.wealth-lab.com/Discussion/Configuring-Visual-Studio-2022-output-7842
0
MIH8
- ago
#2
Any file in use from any software will be protected from overwriting it.
The only idea to get a little bit more compfort would be some auto restart mechanism of WL. But, honestly, i am not sure if its worth.

Edit and Continue may be sufficient in debug mode.
https://docs.microsoft.com/en-us/visualstudio/debugger/edit-and-continue-visual-csharp?view=vs-2022
0
- ago
#3
Edit & Continue is a life saver, we have it documented here:
https://www.wealth-lab.com/Support/ExtensionApi/StrategyLibrary

However, note that it isn't helpful for topic starter's wish to adding new strategies without requiring a restart.
1
MIH8
- ago
#4
QUOTE:

However, note that it isn't helpful for topic starter's wish to adding new strategies without requiring a restart.


I don't understand what you mean. Overwriting means that there is already an existing strategy. Now, modifying the strategy or debugging it, both intensions might create a new dll. When debugging it, it might be a useful hint, that you don't need to restart WL all the time. Maybe i just misunderstand what you want to say.
0
- ago
#5
I mean that while E&C remains very helpful, WL will not add new classes derived from the UserStrategyBase to its list of strategies if you use E&C. Adding new classes is performed at startup.
0
MIH8
- ago
#6
Yes, of course! :-)
It just reduces the need to restart WL more often than necessary.
0
- ago
#7
Thanks everyone, ya following the pieces I do have everything working as far as debugging and live editing with existing strategies, I was just hoping to take it a step further. I am moving some of my strategies over from NT and downloaded the WL free trial to get a hang of things before buying the subscription.

One more thing I would add for users using vs2022 with WL8 they must attach to the WL process in order to debug as VS2022 does not give the option to point to a debug executable.

Thanks again
0
MIH8
- ago
#8
Do you mean something like this? It is availabe in the debug properties when you create a new profile.

1
Best Answer
- ago
#9
@MIH nice, I didn't realize you had to create a new launch profile in order to attach to the WL exe, thanks for the screenshot, helped me sort that out.

I just wish we didn't have to open and close WL each time but I am going to play around with it as this is only my second day using the program and try to get a hang of things.

Appreciate all the support, I will put together a quick youtube video for anyone looking to achieve the same process.
3
Glitch8
 ( 12.35% )
- ago
#10
Let us know when that’s published so we can link to it from our channel.
0
- ago
#11
I would love to see the video, please share the link. Thanks.
0

Reply

Bookmark

Sort