Open emrekultursay opened 2 years ago
Do you see anything in the MEF error log?
%LocalAppData%\Microsoft\VisualStudio\17.0_<code>Exp\ComponentModelCache\Microsoft.VisualStudio.Default.err
You may need to experiment to find <code>
, and you'll only need Exp
if you're F5-ing in VS and using the experimental hive.
Also, does it work if you use the capability "LaunchProfiles"
instead of AndroidConfiguredProject.Capability
? Perhaps there's a timing issue where your capability is excluding the item at the point they're constructed because the capability is not yet active.
We have a Visual Studio extension that customizes the debug button using
IDynamicDebugTargetsGenerator
. The extension has been working fine for VS 2017 and 2019 for several years. I am now porting it to VS 2022.In VS 2022, my class with the
[Export(typeof(IDynamicDebugTargetsGenerator))]
attribute never gets instantiated. Therefore, debug button customizations do not work. Here is a simplified version of the code:TargetsGenerator.cs:
android_debugger.xaml:
In VS 2019, the constructor above is called before the async package is loaded. The part of the stack trace looks like this:
The ProjectSystem.dll version is 16.09.579.5755 on 2019, and 17.00.1313.5288 on VS 2022.