[英]debugging visual studio extension, different version
I am building an extension (Editor Classifier) using VS2012, and I can verify that it works with VS2013 by setting the install target to include the correct versions. 我正在使用VS2012构建扩展(编辑器分类器),并且可以通过将安装目标设置为包括正确的版本来验证它是否与VS2013兼容。
However as it is today, I need to install and verify features. 但是,今天,我需要安装和验证功能。 This is ok for most cases, except when I would like to debug the extension.
在大多数情况下都可以,除非要调试扩展。
Now, if I were debugging an extension on VS2012, using VS2012, then launching the Experimental Instance works well. 现在,如果要使用VS2012在VS2012上调试扩展,则启动实验实例效果很好。
But if in a VS2012 project, if I set the startup program to be devenv.exe
of VS2013, with rootSuffix /exp
then although the VS2013 experimental instance is launched, it does not register the extension under development. 但是,如果在VS2012项目中,如果我使用
rootSuffix /exp
将启动程序设置为VS2013的devenv.exe
,则尽管VS2013实验实例已启动,但它不会注册正在开发的扩展。
Any tips to configure Visual studio debugging across versions would be greatly appreciated! 在各个版本之间配置Visual Studio调试的任何技巧将不胜感激!
It's not simple case of switching 3 letters when trying to make your VS2012 extension work with VS2013 :-). 尝试使VS2012扩展程序与VS2013配合使用时,切换3个字母并不简单:-)。
You will need to do quite few things: 您将需要做的事情很少:
http://geekswithblogs.net/TarunArora/archive/2013/06/27/upgrading-vsix-extensions-from-vs2012-to-vs2013.aspx http://geekswithblogs.net/TarunArora/archive/2013/06/27/upgrading-vsix-extensions-from-vs2012-to-vs2013.aspx
You might also need to use ProvideAutoload
on your package: Visual Studio Package Initialize method does not call when debugging 您可能还需要在程序包上使用
ProvideAutoload
: 调试时不会调用Visual Studio程序包Initialize方法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.