如何找到<进口>在.csproj的文件标签? [英] how to find <import> tag in .csproj file?
问题描述
我使用的Visual C#2010 Express和我使用了StyleCop。我读文章 HTTP://stylecop.codeplex .COM / WIKIPAGE?标题=运行%20StyleCop%20英寸%20VS2005%20or%20VS%20Express 。
I am using visual c# 2010 Express and I am to use stylecop. I read article on http://stylecop.codeplex.com/wikipage?title=Running%20StyleCop%20in%20VS2005%20or%20VS%20Express.
我无法找到<进口>
标记。内的csproj文件,如何找到其中进口的Microsoft.CSharp.targets文件导入标签
I am unable to find <import>
tag. Within the csproj file, how to find the import tag which imports the Microsoft.CSharp.targets file,
和如何插入新的导入链接到StyleCop.Targets文件
and how to insert a new import to link to the StyleCop.Targets file
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.4\StyleCop.targets"/>
如果任何一个找到,请帮助我在此。
If any one find please help me on this.
推荐答案
在解决方案资源管理器:
In the Solution Explorer:
- 右键点击您的项目,选择
卸载项目
。 - 右键再次点击该项目并选择
编辑项目
。 - .csproj的文件将作为XML的开放。
- 您完成编辑该文件后,右键单击该项目并选择
刷新项目
。
- Right click on your project, select
Unload project
. - Right click on the project again and select
Edit project
. - .csproj file will be open as XML.
- After you are done editing the file, right click on the project and select
Reload Project
.
这篇关于如何找到<进口>在.csproj的文件标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!