gpt4 book ai didi

visual-studio - 为 Visual Studio 创建自定义项目类型以将 Borland C++ Builder 项目构建到 Visual Studio

转载 作者:行者123 更新时间:2023-12-01 03:00:31 24 4
gpt4 key购买 nike

我想开始为 Visual Studio 开发自定义项目类型,该类型使用 Visual Studio 构建 BPR 项目。

我需要一些提示来开始这个项目。在哪里可以找到此类项目的模板?

我的目标是从开发过程中删除 Borland C++Builder 丑陋且不稳定的界面,并在 Visual Studio 中正常工作。

最佳答案

编辑:哎呀,我真的没有看到你要为 C++ Builder 文件创建一个新的项目类型。在这种情况下,您必须构建一个语言包。 Visual Studio Extensibility网站应该让你开始。也看看this more specific link .
我将在这里留下我的旧答案以供引用,因为它可能会帮助那些只想构建 C++Builder 项目而不创建全新项目类型的人:)

You didn't specify the version of Visual Studio, but I'll assume a recent one. In Visual Studio 8 and 9, most project files (all popular ones except Visual C++) are actually MSBuild files and can therefore be built by MSBuild. You can add a simple command line task (Exec) to build your bpr on the command line, or you can create a custom task for this (if you don't find one already available - the search terms should be MSBuild and custom task). This way, both Visual Studio and MSBuild can build anything you like. If you don't have an MSBuild file to start with or want to dive into developing a task, the MSBuild project template for Visual Studio will help you.

Oh, and other than that, if you don't actually need C++Builder things, you might as well export the BPR as a solution (or create a new solution and add the files).

关于visual-studio - 为 Visual Studio 创建自定义项目类型以将 Borland C++ Builder 项目构建到 Visual Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/919731/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com