Compiler avec csc

Résolu
t_barbillon Messages postés 341 Date d'inscription mercredi 8 juin 2005 Statut Membre Dernière intervention 10 février 2009 - 23 sept. 2005 à 09:40
t_barbillon Messages postés 341 Date d'inscription mercredi 8 juin 2005 Statut Membre Dernière intervention 10 février 2009 - 23 sept. 2005 à 14:40
Salut, j ai une question toute bete mais dont je ne trouve pas la soluce : comment compiler en mode release avec csc.exe

4 réponses

sebmafate Messages postés 4936 Date d'inscription lundi 17 février 2003 Statut Membre Dernière intervention 14 février 2014 36
23 sept. 2005 à 10:29
il faut aussi que tu dises qu'elles sont les optimisations que tu veux... par exemple, le poinds de l'exe

Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.


Visual C# .NET Compiler Options


- OUTPUT FILES -
/out:<file> 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)
/define:<symbol list> Define conditional compilation symbol(s) (Short form:
/d)
/doc:<file> XML Documentation file to generate


- INPUT FILES -
/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 files
(Short form: /r)
/addmodule:<file list> Link the specified modules into this assembly


- RESOURCES -
/win32res:<file> Specifies Win32 resource file (.res)
/win32icon:<file> Use this icon for the output
/resource:<resinfo> Embeds the specified resource (Short form: /res)
/linkresource:<resinfo> Links the specified resource to this assembly (Short
form: /linkres)


- 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)
/incremental[+|-] Enable incremental compilation (Short form: /incr)


- ERRORS AND WARNINGS -
/warnaserror[+|-] Treat warnings as errors
/warn:<n> Set warning level (0-4) (Short form: /w)
/nowarn:<warning list> Disable specific warning messages


- LANGUAGE -
/checked[+|-] Generate overflow checks
/unsafe[+|-] Allow 'unsafe' code


- 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:Sébastien FERRAND
</gras>
3
TheSaib Messages postés 2368 Date d'inscription mardi 17 avril 2001 Statut Modérateur Dernière intervention 26 décembre 2007 22
23 sept. 2005 à 10:10
Si tu met pas de /debug tu n'est pas en mode debug.

::|The S@ib|::
MVP C#.NET
0
t_barbillon Messages postés 341 Date d'inscription mercredi 8 juin 2005 Statut Membre Dernière intervention 10 février 2009 2
23 sept. 2005 à 10:25
Je n ai pas mis le /debug dans la ligne de commande mais l exe produit fait le meme poids que l exe produit en debug sous visual
0
t_barbillon Messages postés 341 Date d'inscription mercredi 8 juin 2005 Statut Membre Dernière intervention 10 février 2009 2
23 sept. 2005 à 14:40
Ok, avec un peu de retard a cause de pb de connexion, ca marche bien. Un grand merci les gars
0
Rejoignez-nous