VS2017 怎么在一个项目里面生成多个 DLL,刚接触 dll 编写,现在只知道一个生成一个 dll 项目产出一个 dll,不知道有没有办法一个项目生成多个 dll 呢?

2021 年 3 月 15 日
 proxytoworld
1030 次点击
所在节点    问与答
6 条回复
lcdtyph
2021 年 3 月 16 日
你需要 solution,每个 solution 包含多个相互联系的项目,每个项目产生一个 dll
ysc3839
2021 年 3 月 16 日
不行,可以新建多个项目,然后都添加到同一个“解决方案”下。
ReferenceE
2021 年 3 月 16 日
每个 dll 代码拆分成一个项目 project
然后导入到同一个解决方案 solution (.sln)中即可
参考微软文档概念
A solution is simply a container used by Visual Studio to organize one or more related projects. When you open a solution in Visual Studio, it automatically loads all the projects that the solution contains.
imjamespond2020
2021 年 3 月 16 日
可以用命令行啊 写个 makefile 开搞
kiracyan
2021 年 3 月 16 日
你搞清楚 solution 和 project 就知道怎么操作了
proxytoworld
2021 年 3 月 16 日
@lcdtyph
@ysc3839
@ReferenceE
现在是一个解决方案多个项目,一个项目一个 dll,看来没办法一个项目多个 dll

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/761915

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX