应将哪些文件从 C#/VB 中的 Visual Studio 项目文件签入到 SVN?

发布于 2024-10-19 05:39:46 字数 154 浏览 2 评论 0原文

我发现页面对于区分哪些文件应签入Delphi的版本控制系统非常有用。是否有类似的页面显示 VB.Net 中的哪些文件应签入存储库?

I find this page very useful in distinguishing which files should be checked in to the Version Control System in Delphi. Is there a similar page that shows which files in VB.Net should be checked in to the repository?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

乞讨 2024-10-26 05:39:46

我建议(根据痛苦的经验)不要签入

  • SUO 文件(用户个人解决方案选项文件)
  • USER 文件(用户个人项目文件设置)
  • Bin 文件夹及其内容
  • obj 文件夹及其内容

希望这有帮助

I would recommend (from bitter experience) not checking in

  • SUO files (a users personal solution option files)
  • USER files ( a users personal project file settings)
  • The Bin folder and it's contents
  • The obj folder and its contents

Hope this helps

许一世地老天荒 2024-10-26 05:39:46
  • 将解决方案文件 (.sln) 放入 VCS。
  • 将“My Project”文件夹中的所有文件放入VCS中。
  • 从项目的主目录:

    • 添加源代码文件。您将显式创建这些文件,扩展名为 .vb,用于存储类、表单和模块。在 WinForms 中,每个表单都有三个必须添加到 VCS 的相应文件:“.designer.vb”、“.resx”和“.vb”。
    • 如果您创建了数据库连接等,您可能还需要添加具有不同扩展名的其他文件。
    • 添加主项目目录“app.config”、“ApplicationEvents.vb”、“Project.vbproj”和“Project.vbproj.user”中的常规文件。
  • 通常不要添加 obj 或 bin 目录中的任何文件。这些文件夹存储编译器创建的构建的 exe 和中间文件。您可能希望将构建的 EXE 或 DLL 文件保留在 VCS 中,具体取决于个人喜好。

  • Put the solution file (.sln) into VCS.
  • Put all the files in the “My Project” folder into VCS.
  • From the main directory for your project:

    • Add the source code files. You will have explicitly created these files, with the extensions .vb, storing classes, forms and modules. In WinForms each form will have three corresponding files that must be added to VCS: “.designer.vb”, “.resx” and “.vb”.
    • You may also need to add other files with different extensions if you have created database connections etc.
    • Add the general files from the main project directory “app.config”, “ApplicationEvents.vb”, “Project.vbproj” and “Project.vbproj.user”.
  • In general don’t add any files from the obj or bin directory. These folders store built exes and intermediate files created by the compiler. You might want to keep the built EXE or DLL files in VCS, depending on personal preference.

千里故人稀 2024-10-26 05:39:46

通过使用 Ankhsvn,我不必担心要签入哪些文件,因为这个工具知道这一切。

By using Ankhsvn, I didn't have to worry on which files to be checked in because this tool knows it all.

青朷 2024-10-26 05:39:46

Dean的回答已经是最好的了。大多数人使用 Visual SourceSafe 或 Visual Studio Team Foundation Server,它们与 Visual Studio 环境完全集成,并且能够自动挑选出必要的文件。

但是想要使用其他 VCS 的人确实会问,有时会得到一个很好的答案:

http://www.codeproject.com/Messages/3645669/Files-in-a-VB-NET-project-to-put- under-Version-con.aspx

http://www.visualstudiodev.com/visual-basic-express-edition/which-files-directories-do-i-need-to- commit-to-version-control-cvs-71894.shtml

这是关于 Visual SourceSafe 的(现在被认为已过时):
http://msdn.microsoft.com/en-us/library/ms972977.aspx

Dean's answer is about as good as it gets. Most people make use of Visual SourceSafe or Visual Studio Team Foundation Server, which fully integrates with the Visual Studio environment and is able to automatically pick out the essential files.

But people who want to make use of some other VCS do ask, and sometime get a good answer:

http://www.codeproject.com/Messages/3645669/Files-in-a-VB-NET-project-to-put-under-Version-con.aspx

http://www.visualstudiodev.com/visual-basic-express-edition/which-files-directories-do-i-need-to-commit-to-version-control-cvs-71894.shtml

This one's about Visual SourceSafe (now regarded as obsolete):
http://msdn.microsoft.com/en-us/library/ms972977.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文