简体   繁体   English

生成的C#文件有哪些扩展名?

[英]What extensions are there for generated C# files?

I'm writing a filter for the C# files that are generated, and want to get rid of the obvious generated files such as .Designer.cs or .g.cs . 我正在写所生成的C#文件的过滤器,并希望摆脱明显生成的文件如.Designer.cs.g.cs What other generated extensions are there? 还有哪些其他生成的扩展名? Thanks. 谢谢。

Clarification: I'm only looking files that have a .cs extension, but something comes before the .cs . 澄清:我只看扩展名为.cs文件,但是.cs之前有一些东西。 Meaning that C# files that do not end in .cs do not interest me. 这意味着不以.cs结尾的C#文件对我不感兴趣。

I might be forgetting many of them, but still: 我可能会忘记很多,但仍然:

  • *.baml * .baml
  • *.g.cs * .g.cs
  • *.gics * .gics
  • *.designer.cs * .designer.cs
  • *.cache *。缓存
  • *.tlog * .tlog
  • *.g.resources * .g。资源
  • *.cache *。缓存
  • *.lref * .lref
  • *.pdb * .pdb
  • *.exe *。可执行程序
  • *.dll (Might well be some outside dll instead of being a generated one!) * .dll(最好是外部dll而不是生成的dll!)
  • *.xml * .xml

I have only listed solution related extensions and not source control related extensions. 我只列出了与解决方案有关的扩展,而没有列出与源代码管理有关的扩展。

Depending on you source control you may have files like... 根据您的源代码控制,您可能有如下文件:

  1. *.vspscc * .vspscc
  2. *.scc * .scc
  3. *.vss * .vss

If a WPF project then 如果是WPF项目,那么

  1. *.xaml.cs * .xaml.cs

... ...

.resx ??? .resx ???

VS Files VS文件

  1. *.user *。用户
  2. *.suo * .suo

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

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