在多个项目解决方案VS 2010的模板创建中丢失了参考 [英] References lost on Template creation for multiple project solution VS 2010

查看:96
本文介绍了在多个项目解决方案VS 2010的模板创建中丢失了参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个C#解决方案,其中包含多个项目(一个主项目和一个该主项目所依赖的dll项目)

因此,主项目在引用中具有对dll项目的引用.很好,但是当我将其制成模板并从VS 2010中的新项目页面加载该模板时,对dll项目的引用始终标记为无效,因此我必须删除该引用并重新添加它.

因此,简而言之...如何获取模板/入门工具包来保存此(或任何其他本地)引用?

谢谢一百万.

真诚的
Randy

Hey guys / gals,

I have a C# solution that contains multiple projects, (A main project, and a dll project that the main project is dependant on)

So the main project has a reference to the dll project in references. Fine, but when I make it into a template and load the template from the new projects page in VS 2010, the reference to the dll project is always marked invalid, and I have to delete the reference and re-add it.

So in a nutshell...How do I get a template / starter kit to preserve this (or any other local) reference?

Thanks a million.

Sincerely
Randy

推荐答案




在创建的模板中,您可以找到存在的references文件夹吗?

请尝试以下步骤:

a)在硬盘驱动器上的相应文件夹中引用您的专用程序集,例如将在哪里安装它们.
b)将项目导出为模板
c)提取模板的新zip文件
d)打开.vstemplate文件.e)在TemplateContent节点的底部,添加一个References节点,并为每个引用添加Reference节点作为References的子元素.


希望这会有所帮助.
Hi,


In the template that is created, can you find the references folder present?

Try the below steps:

a) Reference your private assemblies in the appropriate folder on the hard-drive, e.g. where they are going to be installed.
b) Export the project as a template
c) Extract the new zip file of the template
d) Open the .vstemplate file e) At the bottom of the TemplateContent node, add a References node, and for each reference, add a Reference node as a child of References


Hope this helps.


这篇关于在多个项目解决方案VS 2010的模板创建中丢失了参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆