Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个项目模板来加载几个项目并添加对位于远程服务器上的 dll 的引用。该 dll 是我想参考的通用框架,并且始终具有最新版本。
我正在使用 GAX 和 NuGet 构建我的模板。我也可以使用 T4。
非常感谢!
您可以使用但需要编写自己的 Visual Studio 模板向导。当模板向导运行时,您可以获得 IVsPackageInstaller(使用 MEF 找到)并调用安装包。您可以从文件夹、配置中获取软件包列表,或者只是对它们进行硬编码。这就是 MVC 3 工具更新执行其预安装包的方式。