Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. MSBuild command line

MSBuild command line

Scheduled Pinned Locked Moved C#
visual-studiotutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abhi Lahare
    wrote on last edited by
    #1

    Hello Everybody, Does anybody knows how to specify "include","library", path from command line in MSBuild. Thanks in advance, Regards Abhi Lahare

    M 1 Reply Last reply
    0
    • A Abhi Lahare

      Hello Everybody, Does anybody knows how to specify "include","library", path from command line in MSBuild. Thanks in advance, Regards Abhi Lahare

      M Offline
      M Offline
      Mandaar Kulkarni
      wrote on last edited by
      #2

      Check out followings You can get this by firing csc -? on .NET command prompt - OUTPUT FILES - /out: Specify output file name (default: base name of file with main class or first file) /target:exe Build a console executable (default) (Short form: /t:exe) /target:winexe Build a Windows executable (Short form: /t:winexe) /target:library Build a library (Short form: /t:library) /target:module Build a module that can be added to another assembly (Short form: /t:module) /delaysign[+|-] Delay-sign the assembly using only the public portion of the strong name key /doc: XML Documentation file to generate /keyfile: Specify a strong name key file /keycontainer: Specify a strong name key container /platform: Limit which platforms this code can run on: x86, Itanium, x64, or anycpu. The default is anycpu. - INPUT FILES - /recurse: Include all files in the current directory and subdirectories according to the wildcard specifications /reference:= Reference metadata from the specified assembly file using the given alias (Short form: /r) /reference: Reference metadata from the specified assembly files (Short form: /r) /addmodule: Link the specified modules into this assembly - RESOURCES - /win32res: Specify a Win32 resource file (.res) /win32icon: Use this icon for the output /resource: Embed the specified resource (Short form: /res) /linkresource: Link the specified resource to this assembly (Short form: /linkres) Where the resinfo format is [,[,public|private]] - CODE GENERATION - /debug[+|-] Emit debugging information /debug:{full|pdbonly} Specify debugging type ('full' is default, and enables attaching a debugger to a running program) /optimize[+|-] Enable optimizations (Short form: /o) - ERRORS AND WARNINGS - /warnaserror[+|-] Report all warnings as errors /warnaserror[+|-]: Report specific warnings as errors /warn: Set warning level (0-4) (Short form: /w) /nowarn: Disable specific warni

      A 1 Reply Last reply
      0
      • M Mandaar Kulkarni

        Check out followings You can get this by firing csc -? on .NET command prompt - OUTPUT FILES - /out: Specify output file name (default: base name of file with main class or first file) /target:exe Build a console executable (default) (Short form: /t:exe) /target:winexe Build a Windows executable (Short form: /t:winexe) /target:library Build a library (Short form: /t:library) /target:module Build a module that can be added to another assembly (Short form: /t:module) /delaysign[+|-] Delay-sign the assembly using only the public portion of the strong name key /doc: XML Documentation file to generate /keyfile: Specify a strong name key file /keycontainer: Specify a strong name key container /platform: Limit which platforms this code can run on: x86, Itanium, x64, or anycpu. The default is anycpu. - INPUT FILES - /recurse: Include all files in the current directory and subdirectories according to the wildcard specifications /reference:= Reference metadata from the specified assembly file using the given alias (Short form: /r) /reference: Reference metadata from the specified assembly files (Short form: /r) /addmodule: Link the specified modules into this assembly - RESOURCES - /win32res: Specify a Win32 resource file (.res) /win32icon: Use this icon for the output /resource: Embed the specified resource (Short form: /res) /linkresource: Link the specified resource to this assembly (Short form: /linkres) Where the resinfo format is [,[,public|private]] - CODE GENERATION - /debug[+|-] Emit debugging information /debug:{full|pdbonly} Specify debugging type ('full' is default, and enables attaching a debugger to a running program) /optimize[+|-] Enable optimizations (Short form: /o) - ERRORS AND WARNINGS - /warnaserror[+|-] Report all warnings as errors /warnaserror[+|-]: Report specific warnings as errors /warn: Set warning level (0-4) (Short form: /w) /nowarn: Disable specific warni

        A Offline
        A Offline
        Abhi Lahare
        wrote on last edited by
        #3

        Thanks mandaar.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups