Visual C# Studio 项目中的哪些文件不需要版本化? [英] Which files in a Visual C# Studio project don't need to be versioned?

查看:37
本文介绍了Visual C# Studio 项目中的哪些文件不需要版本化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Visual C# Studio 的新手(实际上使用的是 Express 版,但另一个开发者使用的是完整版),我们使用的是版本控制 (svn).

I'm new to Visual C# Studio (actually using the Express edition, but another developer is using the full version), and we are using version control (svn).

将项目文件添加到存储库对我来说是可以接受的,因为这个存储库仅供我们两个使用 Visual C# Studio 的人使用.但是感觉里面有一些不相关的文件.熟悉 Visual C# Studio 项目文件的人能告诉我哪些文件可以安全地被 svn:ignored 忽略吗?

It's acceptable to me to add the project files to the repository, since this repo is just for the two of us using Visual C# Studio. But it feels like there are some irrelevant files in there. Can someone familiar with Visual C# Studio project files tell me which files can safely be svn:ignored?

一些可疑文件:

  • project.csproj
  • project.csproj.Debug.cachefile
  • project.csproj.user
  • project.sln
  • project.suo
  • ContentContent.contentproj

我确定 .sln 是必需的,但这是什么 .suo?和.csproj?Visual C# Studio 可以/应该在加载项目时生成其中任何一个吗?

I'm sure the .sln is required, but what's this .suo? and the .csproj? Can/should any of these be generated by Visual C# Studio on loading a project?

推荐答案

不包括
垃圾箱
对象
*.suo
*.用户
_Resharper*(如果您有 Resharper)

包括
*.sln
*.csproj

Include
*.sln
*.csproj

您还可以查看 .gitignore 文件以了解 Visual Studio 项目在github上.

You can also check the .gitignore file for visual studio projects on github.

这篇关于Visual C# Studio 项目中的哪些文件不需要版本化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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