我第一次尝试 Netbeans 是为了做一些 Linux C/C++ 开发工作。但是在拥有强大的 Visual Studio 背景时,我很难找到相当于 VS solution file
的工具。 .
A solution is a grouping of one or more projects that work together to create an application.
我能看到的最接近的是
Project Group
定义为:A group is a persistent collection of IDE projects. The persistence is in the user directory and is thus per-user (not shared with other IDE users). A group has a display name. If one of the projects in it is set as the main project, that information is persisted as well.
这使得这似乎是一种组织我目前正在从事的工作的工具,而不是一种组织项目之间关系的手段(并且与项目本身一起存储)
Projects
也是如此Netbeans 相当于 VS solution files
?
最佳答案
我建议使用 File-> New Project -> Maven -> POM Project
创建一个聚合项目。然后右键单击该项目的 Projects 窗口中的 Modules 文件夹,以将其他项目创建/添加到该项目中。
项目也可以添加其他项目作为依赖,不管是否有聚合项目。右键单击 Ant 项目的 Libraries 文件夹和“添加项目..”,或 Maven 项目的 Dependencies 文件夹 ->“添加依赖项”,然后选择打开的项目选项卡。
注意:Netbeans 中有两种类型的 Java 项目。 Ant 和马文。 Ant 更简单,更老,默认(只是称为 Java 项目),maven 更新,更强大和灵活。安装插件后可以使用/创建 Gradle 项目。
关于visual-studio - Netbeans 相当于 Visual Studio 解决方案文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23445739/