我的 VSIX 扩展没有在 VS2017 上显示(在 2015 年)
My VSIX extension is not showing on VS2017 (Was on 2015)
我有一个 VSIX 扩展 (https://github.com/eduelias/AssociateRecentWorkItems),它在我的 VS2015 上运行得非常好,但是,当我 built/run 它在 VS2017 上运行时(是的,我已经将先决条件放在 .csproj 属性上),它没有出现在 2017 年的 TFS Pending Changes 选项卡中。
我已经尝试将 MIcrosoft.TeamfoundationServer.Controls 更新到 2017 版本,但仍然没有成功。
当我尝试调试它时,VS2017 似乎根本没有加载扩展。 (断点未加载)
欢迎任何帮助。谢谢!
尝试使用您身边的 VS2017(来自市场)的另一个新扩展。如果这个也安装不成功,你用的是VS2017 RC
您可能遇到过这个问题--Unable to install extensions after updating VS2017 RC
要么更新到最新的 VS 版本,要么使用 Stefan Z Camilleri 上面 link.
中的解决方法
如果您的旧扩展无法安装,因为
Huge changes have been made by Microsoft on the installation, so
previous approaches of detecting VS won't work any more. For example,
to detect VS installation folder, now a few extra tools or scripts are
required, https://github.com/Microsoft/vswhere
So guides such as How to: Migrate Extensibility Projects to Visual
Studio
2017
are critical and you can follow the tips.
你也可以在这个类似的问题中参考更多细节
查看日志,我发现我的一些参考文献要求 Microsoft.TeamFoundation.Client Version=14.0.0,实际上是 Microsoft.TeamFoundation.VersionControl version=12.0正在寻找。
为了解决这个问题,我做了一个 'binding redirect' 这样的:
[assembly: ProvideBindingRedirection(AssemblyName = "Microsoft.TeamFoundation.Client", NewVersion = "15.0.0.0", OldVersionLowerBound = "12.0.0.0", OldVersionUpperBound = "14.0.0.0")]
它开始出现在 Exp 实例中,我能够对其进行调试。
请注意,我强烈建议不要采用此类解决方法,但就我而言,这是我可以加载我的扩展程序以便对其进行调试的唯一方法。
我有一个 VSIX 扩展 (https://github.com/eduelias/AssociateRecentWorkItems),它在我的 VS2015 上运行得非常好,但是,当我 built/run 它在 VS2017 上运行时(是的,我已经将先决条件放在 .csproj 属性上),它没有出现在 2017 年的 TFS Pending Changes 选项卡中。
我已经尝试将 MIcrosoft.TeamfoundationServer.Controls 更新到 2017 版本,但仍然没有成功。
当我尝试调试它时,VS2017 似乎根本没有加载扩展。 (断点未加载)
欢迎任何帮助。谢谢!
尝试使用您身边的 VS2017(来自市场)的另一个新扩展。如果这个也安装不成功,你用的是VS2017 RC
您可能遇到过这个问题--Unable to install extensions after updating VS2017 RC
要么更新到最新的 VS 版本,要么使用 Stefan Z Camilleri 上面 link.
中的解决方法如果您的旧扩展无法安装,因为
Huge changes have been made by Microsoft on the installation, so previous approaches of detecting VS won't work any more. For example, to detect VS installation folder, now a few extra tools or scripts are required, https://github.com/Microsoft/vswhere
So guides such as How to: Migrate Extensibility Projects to Visual Studio 2017 are critical and you can follow the tips.
你也可以在这个类似的问题中参考更多细节
查看日志,我发现我的一些参考文献要求 Microsoft.TeamFoundation.Client Version=14.0.0,实际上是 Microsoft.TeamFoundation.VersionControl version=12.0正在寻找。
为了解决这个问题,我做了一个 'binding redirect' 这样的:
[assembly: ProvideBindingRedirection(AssemblyName = "Microsoft.TeamFoundation.Client", NewVersion = "15.0.0.0", OldVersionLowerBound = "12.0.0.0", OldVersionUpperBound = "14.0.0.0")]
它开始出现在 Exp 实例中,我能够对其进行调试。
请注意,我强烈建议不要采用此类解决方法,但就我而言,这是我可以加载我的扩展程序以便对其进行调试的唯一方法。