I have created a Visual Studio extension(vsix) in VS 2013 to add a new Project Template. I need to make it working in VS 2015. I have modified source.extension.vsixmanifest file to include Microsoft.VisualStudio.Pro[14.0]. The problem is it is getting installed in VS 2015, but there are some VS 2013 specific dlls. So it is giving errors while creating project. Is there any way to make it working in VS 2015, without rewriting the entire code.?
我在VS 2013中创建了一个Visual Studio扩展(vsix)来添加一个新的项目模板。我需要让它在VS 2015中运行。我修改了source.extension.vsixmanifest文件以包含Microsoft.VisualStudio.Pro [14.0]。问题是它已经安装在VS 2015中,但是有一些VS 2013特定的dll。因此在创建项目时会出错。有没有办法让它在VS 2015中运行,而无需重写整个代码。
1 个解决方案
#1
0
you can try this :
你可以试试这个:
- Open your project with VS2015
- Right click and select add, new item
- In Visual C# Items, choose Extensibility
- Add a VSPackage.cs item
- Remove each references to this package if you don't need it
使用VS2015打开您的项目
右键单击并选择添加,新项目
在Visual C#Items中,选择Extensibility
添加VSPackage.cs项
如果您不需要,请删除对此包的每个引用
Visual studio will add new references for VS2015. This is not a perfect solution and it may not compile because you have a reference to Microsoft.VisualStudio.Shell.12.0 so just remove it.
Visual Studio将为VS2015添加新的参考。这不是一个完美的解决方案,它可能无法编译,因为你有一个Microsoft.VisualStudio.Shell.12.0的引用,所以只需删除它。
Let me know if you need more help but it should be a good start.
如果您需要更多帮助,请告诉我,但这应该是一个好的开始。
#1
0
you can try this :
你可以试试这个:
- Open your project with VS2015
- Right click and select add, new item
- In Visual C# Items, choose Extensibility
- Add a VSPackage.cs item
- Remove each references to this package if you don't need it
使用VS2015打开您的项目
右键单击并选择添加,新项目
在Visual C#Items中,选择Extensibility
添加VSPackage.cs项
如果您不需要,请删除对此包的每个引用
Visual studio will add new references for VS2015. This is not a perfect solution and it may not compile because you have a reference to Microsoft.VisualStudio.Shell.12.0 so just remove it.
Visual Studio将为VS2015添加新的参考。这不是一个完美的解决方案,它可能无法编译,因为你有一个Microsoft.VisualStudio.Shell.12.0的引用,所以只需删除它。
Let me know if you need more help but it should be a good start.
如果您需要更多帮助,请告诉我,但这应该是一个好的开始。