Added Makefile project to Visual Studio 2015 solution is always out of date

爷,独闯天下 提交于 2019-12-05 10:53:59

It is beginning to appear (although I can find no documentation to back this up) that all makefile type projects are always out of date.

One possible answer I found is that you can create a "Utility" type project. This type of project has only a Pre-Build, Pre-Link, and Post-Build Event. You can then add the make/nmake command in there. There side effects, but in my case it was tolerable.

Try it yourself and see what you think, then report back here with what you've discovered.

Since MSBuild, which Visual Studio uses, serves the same purpose as nmake, I just replaced the nmake project with a straight MSBuild project in a .csproj file and added it as a project to my solution, making the other projects depend on it. It doesn't pop-up that project-out-of-date dialog on starting the debugger, and it properly recognizes when the files I want to create are out of date.

See the MSBuild documentation for reference on how to specify build targets, etc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!