question

Maurice-8999 avatar image
0 Votes"
Maurice-8999 asked ·

Control compilation when integrating Visual Studio for Application (VSTA) in a C# application:.

Hello,

I integrated VSTA 2019 in my application and basically it works fine. But i was unable to find some, in my opinion key features:

1: I'm unable to determine when my user recompiled the code in the VSTA environment.
I receive the BinaryItemsChanged event (https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-tools-for-applications/2015/dn921516(v=vs.140)), but this just tells me that the old binaries are no longer valid, I cannot find an event which says that new binaries are available. When should an application load the new assemblies from the VSTA environment?

2: I also added a macro recording feature, like in excel: when the performs some action, the application generates the appropriate C# and adds this to a method in the VSTA environment. However I was unable to find a way to stat the compilation process in the VSTA environment form the hosting application, so that the user can use the new macro with manually switching the the VSTA editor and compile the newly generated code. I would like to over the possibility that the user van record a macro and use it without even seeing the VSTA environment. It this possible?

Thanks in advance,
Maurice.

dotnet-csharp
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers