簡體   English   中英

創建visual studio解決方案模板 - 多個項目

[英]Create visual studio solution template - multiple projects

我堅持使用本教程創建一個多項目的可視化工作室模板。 我特意堅持這一行:

Select the files and folders to include in your template, right-click the selection, click Send To, and then click Compressed (zipped) Folder. The files and folders are compressed into a .zip file.

我做了以下步驟:

  1. 創建2個項目。 (MyProj.Web和MyProj.Service)
  2. 在MyProj.Web中引用MyProj.Service。
  3. 出口兩者。 它們現在位於.zip文件中。

我該怎么辦?

我的意圖是:制作解決方案文件夾,其中包括一些dll(DI,單元測試框架等)。 有這些dlls參考。 其他項目中的參考項目。 重命名部分項目。 例如。 能夠用NewName.Service替換{MyProj}.Service

其他部分包括制作.vstemplate xml文件並將zip放在ProjectTemplates中。

根據文章:

將.zip模板文件放在Visual Studio項目模板目錄中。 默認情況下,此目錄是\\ My Documents \\ Visual Studio 2010 \\ Templates \\ ProjectTemplates \\

然后,可以從“ File >“ New Project獲取Visual Studio模板。 如果為單個項目創建模板,請將其放在\\ ItemTemplates文件夾中,而不是從“解決方案資源管理器”中的“ Add New Item上下文菜單中使其可用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM