简体   繁体   English

通用Visual Studio解决方案模板

[英]Generic Visual studio solution template

We are working asp.net projects where user customizations are released in a new project/solution called as ADDINS (for our comfort). 我们正在asp.net项目中,在一个名为ADDINS的新项目/解决方案中发布了用户自定义项(为方便起见)。 The Structure is soemthign like this: 结构是这样的:

Solution_ClientName.sln 
     -> FVAddins                      //( Website)
     ->FVAddins_ClientCode_BL.csproj      //(class library project)
     -> SqlDbProject                      //(Sql Database project)

I want to know is there any way in Visual Studio , so that I can create a generic template of the same. 我想知道Visual Studio中有什么方法,以便可以创建相同的通用模板。 And whenever , I have to create a new solution, I just need to fill the dynamic parts like ClientName and ClientCode and the directory structure will be ready. 每当需要创建一个新的解决方案时,我只需要填充诸如ClientNameClientCode类的动态部分,目录结构就可以使用了。

Kindly note, I do not require it using Programatically. 请注意,我不需要以编程方式使用它。 As here's a time constraint. 由于这是时间限制。 But programmatic approach is welcome too. 但是程序化方法也是受欢迎的。 I will look into that too. 我也将对此进行研究。

Just To Help 只是为了帮助

I want it like Microsoft word template file where we have template something like <SomeField> and its get replaced by your desired text, in all over the file. 我希望它像Microsoft Word模板文件一样,在其中我们有类似<SomeField>模板,并且在整个文件中都将其替换为所需的文本。

You could use a config file to this effect, all you would need to do is specify each dynamic part in the config file and load that into the solution on start-up. 您可以使用配置文件来达到此效果,您所需要做的就是在配置文件中指定每个动态部分,然后在启动时将其加载到解决方案中。

Then you have a copy of the same config with different values for each copy of the template you create 然后,您将拥有相同配置的副本,并且所创建模板的每个副本均具有不同的值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM