如何找到<进口>在.csproj的文件标签? [英] how to find <import> tag in .csproj file?

查看:123
本文介绍了如何找到<进口>在.csproj的文件标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Visual C#2010 Express和我使用了StyleCop。我读文章 HTTP://stylecop.codeplex .COM / WIKIPAGE?标题=运行%20StyleCop%20英寸%20VS2005%20o​​r%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.

这篇关于如何找到&LT;进口&GT;在.csproj的文件标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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