Devenv.exe command line arguments RRS feed

  • Question

  • Hi

    I want use the devenv.exe with the Build /Rebuild comand to get the solution build errors, and warning in the output log file.

    but i am getting only build errors, not the warnings and the messages.

    Any help How i can ge the build errors as well as Warnings and the messages using devenv.exe / build in the log file.

    • Moved by Bob Shen Tuesday, February 26, 2013 3:12 AM
    Friday, February 15, 2013 1:38 PM

All replies

  • Use the Out switch to generate the output to the log file...<pid></pid>

    devenv "c:\MySolution.sln" /build debug /out c:\build.log

    Refer the following details for DevEnv.exe Command Line switch Details..

    Command line builds:
    devenv solutionfile.sln  /build solutionconfig [ /project projectnameorfile [ /projectconfig name ] ]
    Available command line switches:
    /build          build the specified solution configuration
    /project        specifies the project to build instead of solution
                    must specify /build to use /project
    /projectconfig  specifies project configuration to build
                    must specify /project to use /projectconfig
    /out            write build output to specified file
    /rebuild        like /build but forces a clean first
    /clean          clean up build outputs
    /deploy         build the specified solution configuration and then deploy it
    /run            run the specified solution configuration
    /runexit        run the specified solution configuration and then terminate
    /command        executes the specified internal command line after startup
    /mditabs        use tabbed documents interface
    /mdi            use MDI interface
    /fn             use specified font name
    /fs             use specified font size
    /LCID           use specified language ID
    /noVSIP         disables VSIP developers license key for VSIP testing
    /safemode       only default environment and services load for stability
    /resetskippkgs  allow VsPackages once flagged for loading failures to
                    load again
    /migratesettings migrate some user settings from another version
    Product-specific switches:
    /debugexe       Open the specified executable to be debugged. The
                    remainder of the command line is passed to this
                    executable as its arguments.
    /useenv         Use PATH, INCLUDE, LIBPATH, and LIB environment variables
                    instead of IDE paths for VC++ builds.
    To attach the debugger from the command line, use:
            vs7jit.exe -p <pid>

    It all Happenz Sendil

    Friday, February 15, 2013 2:48 PM
  • Thanks for the response

    Here i am using the same command

    My command line argument is similar as below

    IDE> devenv.exe "Path of Solution file" /out "path of log file" /build

    If i provide the /Build command just after devenev.exe and then the path of sln file , it is not accepting the arguments in this sequence.

    I am using VS 2010 and the version is Visual studio 2010 Ultimate.

    Friday, February 15, 2013 3:45 PM
  • Hi Manishkumar,

    You can consider use MSBuild.exe:


    And you can post in the related MSBuild forum:



    Bob Shen
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, February 18, 2013 7:26 AM