Author Topic: build megaglest specific project using build-mg-2010.bat  (Read 1011 times)

esraacs

  • Swordman
  • *
  • Posts: 14
    • View Profile
I am using windows.  I dont want to use the build in .net .
I want a command to build specific project or file using build-mg-2010.bat. i dont have to build all the solution  :(.
help please?

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: build megaglest specific project using build-mg-2010.bat
« Reply #1 on: 24 May 2015, 00:38:56 »
Your message sounds very mysteriously  :look:.
You should describe with details what exactly you are trying to do, because at the moment I have more questions to you than answers for you :D.

- "build in .net" > do you mean visual studio?
- "specific project or file using build-mg-2010.bat" > what exactly?
- "all the solution" > ?
- "Modding and game content creation ยป Mods" > how your problem is it related with mods?


Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: build megaglest specific project using build-mg-2010.bat
« Reply #2 on: 25 May 2015, 02:36:18 »
MG doesn't use .NET. Windows does require building with Visual Studio, though, which does use .NET (but is really just an indirect requirement).

At any rate, you should be able to modify the batch file to build a specified project inside the solution. The lines you'd want to change are the ones that invoke msbuild. The /t:ProjectName argument is what you want (see the reference here). The batch file appears to be a mess (or at least in the last revision I had checked out -- can't be bothered updating), with commented out lines (starts with rem). There should be two lines that actually do anything with msbuild, one that is used if an argument is "rebuild" and another used by default.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

esraacs

  • Swordman
  • *
  • Posts: 14
    • View Profile
Re: build megaglest specific project using build-mg-2010.bat
« Reply #3 on: 4 June 2015, 17:45:51 »
sorry i need more details . how do i use the parameters of msbuild to modify build-mg-2010.bat ?
please ,could you provide the steps ?

 

anything