microsoft / VSProjectSystem

Documentation for extending Visual Studio with new types of projects.
Other
310 stars 87 forks source link

IDynamicDebugTargetsGenerator docs / samples - vs2015 #209

Open dazinator opened 7 years ago

dazinator commented 7 years ago

Having issues trying to get a IDynamicDebugTargetsGenerator working in VS2015: https://github.com/Microsoft/extendvs/issues/43

Is it possible we could document this extension point, for vs2015 and vs2017 including:

  1. Implementing and exporting IDynamicDebugTargetsGenerator
  2. Imlementing the corresponding vsct so that commands are correctly routed.

Some working samples would be even better.

I'd be happy to help contribute to that.

adrianvmsft commented 7 years ago

It looks like roslyn project system has an implementation. Here is the corresponding vsct

dazinator commented 7 years ago

Yeah I'm not confident this works for vs2015 though - well i haven't been able to get it to work for vs2015. The vsct seems to be a bit magical imho referencing packages that don't seem to exist anywhere and using some magic guids /ids. I am left wondering whether the vsct needs to be different for vs2015.

I can put together a sample for vs2017 and vs2015 to try and illustrate my issue if you think it would be helpful. Otherwise at the moment i am left not being able to support vs2015 (vs2017 only) for my extension

adrianvmsft commented 7 years ago

You can find some of the predefined VS Shell guids/ids here. It is a bit odd that it works in VS 2017, but not in VS 2015. Unfortunately I can't think of a reason why that could be (however we made many fixes and improvements in VS 2017). Does everything else work fine? (I suppose you recompile your projects against the VS 2015 versions of VS SDK and Project System Extensibility packages, but just wanted to double check :))