简体   繁体   English

从项目模板C#中排除文件

[英]Excluding files from Project Template C#

I'm creating a project template to make the development process here in the company smoother. 我正在创建一个项目模板,以使公司的开发过程更加顺畅。

I've created the template and it works ok, I can create a new project based on the template. 我已经创建了模板,并且可以正常工作,我可以基于模板创建一个新项目。 The only issue is that some files are included in the new project that I don't want included for instance the .vstemplate file. 唯一的问题是新项目中包含一些我不想包含的文件,例如.vstemplate文件。

I've searched the web/here on how to do this, but I can't find the answer... 我已经在网上搜索过此方法,但找不到答案...

What am I missing? 我想念什么?

Would excluding files from the template project achieve what you want? 从模板项目中排除文件是否可以实现您想要的? You can do that by right clicking on a file in the solution explorer and clicking Exclude From Project 您可以通过在解决方案资源管理器中右键单击一个文件,然后单击“ Exclude From Project来做到这一点。

Example: 例:

从项目中排除

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

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