Swallowing errors in pre-build steps in Visual Studio 2010
I figured it out – you simply need to add the following statement at the end: SET ERRORLEVEL = 0 or simply: EXIT 0
I figured it out – you simply need to add the following statement at the end: SET ERRORLEVEL = 0 or simply: EXIT 0
I propose two solutions. The first mimics what NetBeans IDE generates: CC=gcc .PHONY: all clean all: post-build pre-build: @echo PRE post-build: main-build @echo POST main-build: pre-build @$(MAKE) –no-print-directory target target: $(OBJS) $(CC) -o $@ $(OBJS) clean: rm -f $(OBJS) target The second one is inpired by what Eclipse IDE generates: CC=gcc .PHONY: all clean .SECONDARY: … Read more
I fixed this by replacing all $(SolutionDir) with $(ProjectDir)..\. It was due to MSBuild running each project independently, and thus not the solution. It worked fine in VS2010, but not on the build server.