NMaven (Retired)

Add missing compiler options for CSC and VBC in nmaven-compile-plugin

Details

  • Number of attachments :
    0

Description

Add the compiler options that is still not supported nmaven-compile-plugin from the complete list below:

---------------------------------------------------------------------------------------------------------------------------------------
CSC
---------------------------------------------------------------------------------------------------------------------------------------
/out:<file> 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:<file> XML Documentation file to generate
/keyfile:<file> Specify a strong name key file
/keycontainer:<string> Specify a strong name key container
/platform:<string> Limit which platforms this code can run on: x86, Itanium, x64, or anycpu. The default is anycpu.

  • INPUT FILES -
    /recurse:<wildcard> Include all files in the current directory and subdirectories according to the wildcard specifications
    /reference:<alias>=<file> Reference metadata from the specified assembly file using the given alias (Short form: /r)
    /reference:<file list> Reference metadata from the specified assembly files (Short form: /r)
    /addmodule:<file list> Link the specified modules into this assembly
  • RESOURCES -
    /win32res:<file> Specify a Win32 resource file (.res)
    /win32icon:<file> Use this icon for the output
    /resource:<resinfo> Embed the specified resource (Short form: /res)
    /linkresource:<resinfo> Link the specified resource to this assembly (Short form: /linkres)
    Where the resinfo format is <file>[,<string name>[,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[+|-]:<warn list> Report specific warnings as errors
    /warn:<n> Set warning level (0-4) (Short form: /w)
    /nowarn:<warn list> Disable specific warning messages
  • LANGUAGE -
    /checked[+|-] Generate overflow checks
    /unsafe[+|-] Allow 'unsafe' code
    /define:<symbol list> Define conditional compilation symbol(s) (Short form: /d)
    /langversion:<string> Specify language version mode: ISO-1 or Default
  • MISCELLANEOUS -
    @<file> Read response file for more options
    /help Display this usage message (Short form: /?)
    /nologo Suppress compiler copyright message
    /noconfig Do not auto include CSC.RSP file
  • ADVANCED -
    /baseaddress:<address> Base address for the library to be built
    /bugreport:<file> Create a 'Bug Report' file.
    /codepage:<n> Specify the codepage to use when opening source files
    /utf8output Output compiler messages in UTF-8 encoding
    /main:<type> Specify the type that contains the entry point (ignore all other possible entry points) (Short form: /m)
    /fullpaths Compiler generates fully qualified paths
    /filealign:<n> Specify the alignment used for output file sections
    /pdb:<file> Specify debug information file name (default: output file name with .pdb extension)
    /nostdlib[+|-] Do not reference standard library (mscorlib.dll)
    /lib:<file list> Specify additional directories to search in for references
    /errorreport:<string> Specify how to handle internal compiler errors: prompt, send, queue, or none. The default is queue.
    /moduleassemblyname:<string> Name of the assembly which this module will be a part of.

---------------------------------------------------------------------------------------------------------------------------------------
VBC
---------------------------------------------------------------------------------------------------------------------------------------

  • OUTPUT FILE -
    /out:<file> Specifies the output file name.
    /target:exe Create a console application (default). (Short form: /t)
    /target:winexe Create a Windows application.
    /target:library Create a library assembly.
    /target:module Create a module that can be added to an assembly.
    /doc[+|-] Generates XML documentation file.
    /doc:<file> Generates XML documentation file to <file>.
  • INPUT FILES -
    /addmodule:<file_list> Reference metadata from the specified modules.
    /recurse:<wildcard> Include all files in the current directory and subdirectories according to the wildcard specifications.
    /reference:<file_list> Reference metadata from the specified assembly. (Short form: /r)
  • RESOURCES -
    /linkresource:<resinfo> Links the specified file as an external assembly resource. resinfo:<file>[,<name>[,public|private]] (Short form:
    /linkres)
    /resource:<resinfo> Adds the specified file as an embedded assembly resource. resinfo:<file>[,<name>[,public|private]] (Short form:
    /res)
    /win32icon:<file> Specifies a Win32 icon file (.ico) for the default Win32 resources.
    /win32resource:<file> Specifies a Win32 resource file (.res).
  • CODE GENERATION -
    /optimize[+|-] Enable optimizations.
    /removeintchecks[+|-] Remove integer checks. Default off.
    /debug[+|-] Emit debugging information.
    /debug:full Emit full debugging information (default).
    /debug:pdbonly Emit PDB file only.
  • ERRORS AND WARNINGS -
    /nowarn Disable all warnings.
    /nowarn:<number_list> Disable a list of individual warnings.
    /warnaserror[+|-] Treat all warnings as errors.
    /warnaserror[+|-]:<number_list> Treat a list of warnings as errors.
  • LANGUAGE -
    /define:<symbol_list> Declare global conditional compilation symbol(s). symbol_list:name=value,... (Short form: /d)
    /imports:<import_list> Declare global Imports for namespaces in referenced metadata files. import_list:namespace,...
    /optionexplicit[+|-] Require explicit declaration of variables.
    /rootnamespace:<string> Specifies the root Namespace for all type declarations.
    /optionstrict[+|-] Enforce strict language semantics.
    /optionstrict:custom Warn when strict language semantics are not respected.
    /optioncompare:binary Specifies binary-style string comparisons. This is the default.
    /optioncompare:text Specifies text-style string comparisons.
  • MISCELLANEOUS -
    /help Display this usage message. (Short form: /?)
    /noconfig Do not auto-include VBC.RSP file.
    /nologo Do not display compiler copyright banner.
    /quiet Quiet output mode.
    /verbose Display verbose messages.
  • ADVANCED -
    /baseaddress:<number> The base address for a library or module (hex).
    /bugreport:<file> Create bug report file.
    /codepage:<number> Specifies the codepage to use when opening source files.
    /delaysign[+|-] Delay-sign the assembly using only the public portion of the strong name key.
    /errorreport:<string> Specifies how to handle internal compiler errors; must be prompt, send, none, or queue (default).
    /filealign:<number> Specify the alignment used for output file sections.
    /keycontainer:<string> Specifies a strong name key container.
    /keyfile:<file> Specifies a strong name key file.
    /libpath:<path_list> List of directories to search for metadata references. (Semi-colon delimited.)
    /main:<class> Specifies the Class or Module that contains Sub Main. It can also be a Class that inherits from
    System.Windows.Forms.Form. (Short form: /m)
    /netcf Target the .NET Compact Framework.
    /nostdlib Do not reference standard libraries (system.dll and VBC.RSP file).
    /platform:<string> Limit which platforms this code can run on; must be x86, x64, Itanium or anycpu (default).
    /sdkpath:<path> Location of the .NET Framework SDK directory (mscorlib.dll).
    /utf8output[+|-] Emit compiler output in UTF8 character encoding.
    @<file> Insert command-line settings from a text file.

Activity

Hide
Pavel Savara added a comment -

I implemented solution for version 0.17
Patch here
http://nmaven.codeplex.com/SourceControl/PatchList.aspx

Show
Pavel Savara added a comment - I implemented solution for version 0.17 Patch here http://nmaven.codeplex.com/SourceControl/PatchList.aspx
Hide
Khai Do added a comment -

I have uploaded an enhancement to Pavel's patch. It will allow you to specify multiple compiler switches to the maven dotnet compiler. Patch is in the same location.

Show
Khai Do added a comment - I have uploaded an enhancement to Pavel's patch. It will allow you to specify multiple compiler switches to the maven dotnet compiler. Patch is in the same location.
Hide
Nate Anderson added a comment - - edited

Apologies... newbie error. Works great. Thanks.

Show
Nate Anderson added a comment - - edited Apologies... newbie error. Works great. Thanks.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: