microsoft.dotnet.designtools.client.proxies.ControlProxy not available #7696
-
EnvironmentVS 2022 Version 17.4.0 Preview 1.0 .NET versionsince it's a VS extension, it targets Framework 4.8 Did this work in a previous version of Visual Studio and/or previous .NET release?sure, in VS2019 it's been working (i don't remember when the switch to the new oop designer happened, but that is the relevant breaking point. Issue descriptioni'm trying to migrate a VS extension to VS2022 that is using DTE to get to the currently selected control in the winforms designer, and toggles through its Dock property, so that a control can be snapped to the sides of its parent via hotkey. in VS2022, the out of process designer is being used, and the object that is selected (that DTE / ISelectionService returns) is an i cannot find this type. is it not publicly visible? are there interfaces i could cast it to? Any help is greatly appreciated. Steps to reproducei can put the extension project onto github and make it publicly available, if requested. DiagnosticsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
having a look at the assembly of the GetType() led me to the working with those proxy types is straightforward, though - the functionality of the extension is woking again :-) |
Beta Was this translation helpful? Give feedback.
-
We are still in the process of producing documentation around the out of process designer SDK. The latest info can be found here and further samples and instructions will be available soon. The sample that is referenced in this thread will show you how to reference the WinForms Designer Extensibility SDK, which should automatically add the reference to the DLL you are talking about. |
Beta Was this translation helpful? Give feedback.
-
thanks for that link. the linked winforms designer sdk nuget package was the exact thing i was looking for :-) |
Beta Was this translation helpful? Give feedback.
-
We are having this blog post as the primary source of documentation for Custom Control Designers in the Out-Of-Process WinForms Designer: https://devblogs.microsoft.com/dotnet/custom-controls-for-winforms-out-of-process-designer/ Please note, that we're working on additional docs at the moment, but it's going to take a while. |
Beta Was this translation helpful? Give feedback.
We are having this blog post as the primary source of documentation for Custom Control Designers in the Out-Of-Process WinForms Designer:
https://devblogs.microsoft.com/dotnet/custom-controls-for-winforms-out-of-process-designer/
Please note, that we're working on additional docs at the moment, but it's going to take a while.
We're planning to release the final first version of the Designer SDK around the time Visual Studio 17.6 GA will be released.