没有Visual Studio如何管理大型项目?

发布于 2024-08-15 01:11:24 字数 221 浏览 2 评论 0原文

如果人们不想使用 Visual Studio,如何跟踪源文件、资源、引用、程序集等。我知道您可以使用 csc 编译代码,并使用 csc 添加所有引用等。但是随着项目的增长,添加这些引用会变得非常痛苦。

将项目拆分为单独的文件夹(不同的模块等)时如何管理它,以及如何管理依赖项、构建顺序等。

是否有任何开源(免费)项目可以管理此问题?即便如此,无需下载任何第 3 方程序即可完成此操作是否相当简单?

How does one go about keeping track of source files, resources, references, assemblies, etc.. if they didn't want to use Visual Studio. I know you can compile code with csc, and use csc to add all of the references, etc.. but it becomes quite painful to add these references as the project grows.

How do you manage it when splitting the project up into separate folders (different modules, etc..) and how do you manage dependencies, build order, etc..

Are there any open source (free) projects for managing this? Even so, is it fairly simple for one to do this without having to download any 3rd party programs?

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

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

发布评论

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

评论(4

沦落红尘 2024-08-22 01:11:24

您仍然可以使用 MSBuild 以及项目和解决方案文件(只要您知道其格式)。

You can still use MSBuild as well as project and solution files provided you know their format.

子栖 2024-08-22 01:11:24

您可以使用许多C# 开源构建系统

其中,NAnt 非常受欢迎,特别是对于从 Java 过渡的人来说。

You can use many of the Open Source Build Systems for C#.

Of these, NAnt is quite popular, especially for people transitioning from Java.

南笙 2024-08-22 01:11:24

只要您的项目不复杂(引用大量程序集、资源文件等)。您只需使用编辑器和“自动生成的”csproj 文件即可进行管理。 csproj 文件的基本结构非常简单,80% 的项目都是相同的,设置预构建任务从模板构建 csproj,然后执行 csc。

我相信 NAnt 有一个“构建目录”的通用任务可以让你做到这一点,但你必须有一些自动化来最初设置 nant 脚本。

As long as your projects arent complex (referencing lots of assemblies, resource files, etc). You can manage with just an editor and "autogenerated" csproj files. The basic structure of the csproj file is very straightforward, and the same in 80% of the projects, setup a pre-build task to construct the csproj from template and then execute csc.

NAnt I believe has a generic task for "build directory" that would let you do it, but you will have to have some automation to setup the nant scripts initially.

勿挽旧人 2024-08-22 01:11:24

如果您真的热衷的话,实际上可以使用 makefile。我们早期的一些 .NET 集成到我们的构建系统中使用 makefile 而不是 csproj。然而,这是一种我个人从未完全理解的黑魔法,即抱歉我无法给您任何说明性的建议/样本。现在我们只需使用 msbuild,这要容易得多。

You can actually use makefiles if you're really keen. Some of our early .NET integration into our build system uses makefiles rather than csproj. However it is something of a black art which I have personally never fully understood, i.e. sorry I can't give you any prescriptive advice/samples. Nowadays we just msbuild which is considerably easier.

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