以编程方式创建 VS 解决方案/项目文件

发布于 2024-09-16 13:10:18 字数 284 浏览 3 评论 0原文

我有一个 C 项目,有一个非常好的 rake 构建系统。生成单元测试运行程序、模拟以及一些样板代码。

要求是基于 PC 的东西可以在 VS 中使用。我知道 VS .sln 和 .proj 格式没有记录。 我还知道 cmake 可以生成 VS 解决方案文件,只要它自己的文件是最新的,因此我的后备解决方案是创建 cmake 文件结构/列表并使用它来创建 VS 解决方案。

由于我的后备方案充满了重复,因此我正在寻找指向任何其他工具、模板或文档的指针,以允许我创建 VS 项目和解决方案文件。

感谢所有的帮助

I have a C project with a very nice rake build system in place. Unit test runners, mocks, as well as some boilerplate code, are generated.

The requirement is for the pc based stuff to be available in VS. I know the VS .sln and .proj formats are undocumented.
I also know that cmake can generate VS solution files as long as it's own files are up-to-date so my fallback solution is to create the cmake file structure/lists and use it to create the VS solutions.

Since my fallback reeks of duplication, I am looking for pointers to any other tools, templates or documentation that would allow me to create VS project and solution files.

Thanks for all the help

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

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

发布评论

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

评论(1

秉烛思 2024-09-23 13:10:18

实际上,.vcproj 文件格式已有文档记录,您可以在 MSDN 网站上找到它:
http://msdn.microsoft.com/en- us/library/2208a1f2(v=VS.100).aspx

这是解决方案文件文档:
http://msdn.microsoft.com/en-us/ Library/bb165951(VS.80).aspx

我相信您可以在 MSDN 上找到更多有用的信息。

Actually, .vcproj file format is documented and you can find it on the MSDN website:
http://msdn.microsoft.com/en-us/library/2208a1f2(v=VS.100).aspx

And here is the Solution file documentation:
http://msdn.microsoft.com/en-us/library/bb165951(VS.80).aspx

I'm sure you can find more useful information on MSDN.

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