[英]Visual Studio 2017 Linux Makefile Project won't build because of chained prefix
I have a Linux project witch I developed in vim and now I'd like to go on developing it in Visual Studio with IntelliSense etc. 我有一个在vim中开发的Linux项目女巫,现在我想继续在Visual Studio中使用IntelliSense等开发它。
It's a Makefile project so I need to build it on the Linux machine. 这是一个Makefile项目,因此我需要在Linux机器上构建它。
I already created the project and created the connection and it works but I can't build because I am building with a prefix script so I open a new interactive shell with something like this 我已经创建了项目并创建了连接,并且可以正常工作,但是由于我使用前缀脚本进行构建,因此无法构建,因此我用类似这样的东西打开了一个新的交互式外壳
set -i
. "/tools/dist/xxxx-2010.0"/etc/profile
I don't think that visual studio can handle such thing. 我认为Visual Studio无法处理此类问题。
Is there a way to do it? 有办法吗?
I am calling my startprefix script with an alias then it starts the interactive shell and then I enter my make commands for usual but in visual studio it won't build it stops at t he very beginning after executing the first command (which is the startprefix alias) 我正在使用别名调用我的startprefix脚本,然后启动交互式shell,然后按常规输入我的make命令,但是在Visual Studio中,它不会构建它,它会在执行第一个命令后一开始就停止别名)
And another thing is that I don't see any project files in my solution I unloaded and loaded the project but it won't get me the source files. 另一件事是,我在卸载和加载项目的解决方案中没有看到任何项目文件,但无法获取源文件。 Am I doing something wrong?
难道我做错了什么?
The Visual Studio C++ for Linux add-in supports MSBuild, makefile and CMake projects. 用于Linux的Visual Studio C ++加载项支持MSBuild,makefile和CMake项目。 If you already have the makefile then create a new Linux makefile project in VS, add in the source files and hit F5 to build.
如果已经有了makefile,则在VS中创建一个新的Linux makefile项目,添加源文件,然后按F5进行构建。
Trying to read between the lines of your question: 尝试在问题的两行之间阅读:
If you have other commands that you need to run before and/or after the makefile then you can set these up in the VS project settings. 如果在生成文件之前和/或之后需要运行其他命令,则可以在VS项目设置中进行设置。 Likewise and parameters you need to pass to
make
. 同样,您需要传递参数
make
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.