如何使用EnvDTE.Project区分我自己的自定义项目模板? [英] How to distinguish my own custom project template using EnvDTE.Project?

查看:107
本文介绍了如何使用EnvDTE.Project区分我自己的自定义项目模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。 

我需要检查激活的项目是否基于我自己的自定义模板。 

I need to want to check if the activated project is based on my own custom template or not. 

我尝试使用模板的ProjectGuid标签,但它没用。 

I tried to use ProjectGuid tag of the template, but it was useless. 

是否有另一种方法将唯一ID标记到项目模板中以识别我自己的自定义模板?

Is there another way to mark unique id into the project template to identify my own custom template?

以及如何使用EnvDTE.Project界面解决问题?

and how to figure it out using EnvDTE.Project interface?

推荐答案

您好JinwooNam,

Hi JinwooNam,

>>以及如何弄明白使用EnvDTE.Project界面?

>>and how to figure it out using EnvDTE.Project interface?

据我所知  EnvDTE.Project没有属性为了描述自定义模板信息,我建议您可以在模板中创建自定义文件,然后检查项目中是否存在文件或检查文件中的内容。

As far as I know EnvDTE.Project does not have a property to describe custom Template information, I would suggest that you could create a custom file in your template, then could check if the file exist in project or check the content in the file.

祝你好运,

张龙


这篇关于如何使用EnvDTE.Project区分我自己的自定义项目模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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