Is there a better way to run a c++ makefile from a c# project? -


I have a project in c # that uses binding to use some C ++ code. The C ++ code contains multiple DLLs, which are compiled using a messphile. Currently I'm trying to use makefile build a pre-build event which calls NMaC. However, to find nmake to get it, I want one of the following lines:

  "$ (DevEnvDir) .. \ .. \ vc \ vcvarsall.bat"  

Apart from this, NMK does not produce any output in the output window, along with the existing line here. Neither does it throw any error I tried to redirect the output to the file and it does not write anything. I have redesigned all the usual steps in my prebuilding event and it works fine. I think I should remember something why Visual Studio does not give me a visual studio shell for my pre-made event? Is there a better way to run this makefile? If not, then no one has got any idea why NaMac is not producing any output?

Edit: D-Oh! Nmake was not running because I forgot to add 'call' for the beginning of the line, that is:

  call "$ (DevEnvDir) .. .. \ VC \ vcvarsall.bat" I Often, I create non-VS-projects (sometimes with NMK, sometimes with other build tools)) as part of building a larger solution.  

I create a simple batch file that sets the environment and then runs the make up

I create a build event (often post-build on my stuff) ) - usually with the front CD:

  cd .. .. .. & amp; & Amp;  

With any output displayed in the console window (which I could not remember) had any problem.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -