projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2006-12-08 Marek Sieradzki <marek.sieradzki@gmail.com>
[mono.git]
/
mcs
/
class
/
Microsoft.Build.Tasks
/
Microsoft.Build.Tasks
/
ManagedCompiler.cs
diff --git
a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ManagedCompiler.cs
b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ManagedCompiler.cs
index 9da880b6d30ae887e93f014c86bda0d3323ceed5..68f6e16c3a5e03b0deef4a9b475ff18302a43a7a 100644
(file)
--- a/
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ManagedCompiler.cs
+++ b/
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ManagedCompiler.cs
@@
-53,12
+53,12
@@
namespace Microsoft.Build.Tasks {
protected internal override void AddResponseFileCommands (
CommandLineBuilderExtension commandLine)
{
protected internal override void AddResponseFileCommands (
CommandLineBuilderExtension commandLine)
{
- commandLine.AppendSwitchIfNotNull ("/lib:", AdditionalLibPaths, ",");
commandLine.AppendSwitchIfNotNull ("/addmodule:", AddModules, ",");
if (Bag ["CodePage"] != null)
commandLine.AppendSwitchIfNotNull ("/codepage:", CodePage.ToString ());
commandLine.AppendSwitchIfNotNull ("/addmodule:", AddModules, ",");
if (Bag ["CodePage"] != null)
commandLine.AppendSwitchIfNotNull ("/codepage:", CodePage.ToString ());
+
commandLine.AppendSwitchIfNotNull ("/debug:", DebugType);
commandLine.AppendSwitchIfNotNull ("/debug:", DebugType);
- commandLine.AppendSwitchIfNotNull ("/define:", DefineConstants);
+
if (Bag ["DelaySign"] != null)
if (DelaySign)
commandLine.AppendSwitch ("/delaysign+");
if (Bag ["DelaySign"] != null)
if (DelaySign)
commandLine.AppendSwitch ("/delaysign+");
@@
-73,41
+73,30
@@
namespace Microsoft.Build.Tasks {
commandLine.AppendSwitchIfNotNull ("/keycontainer:", KeyContainer);
commandLine.AppendSwitchIfNotNull ("/keyfile:", KeyFile);
// FIXME: add ids from metadata
commandLine.AppendSwitchIfNotNull ("/keycontainer:", KeyContainer);
commandLine.AppendSwitchIfNotNull ("/keyfile:", KeyFile);
// FIXME: add ids from metadata
- if (LinkResources != null)
{
- foreach (ITaskItem item in LinkResources)
{
+ if (LinkResources != null)
+ foreach (ITaskItem item in LinkResources)
commandLine.AppendSwitchIfNotNull ("/linkresource:", item.ItemSpec);
commandLine.AppendSwitchIfNotNull ("/linkresource:", item.ItemSpec);
- }
- }
- commandLine.AppendSwitchIfNotNull ("/main:", MainEntryPoint);
+
if (NoLogo)
commandLine.AppendSwitch ("/nologo");
if (NoLogo)
commandLine.AppendSwitch ("/nologo");
+
if (Bag ["Optimize"] != null)
if (Optimize)
commandLine.AppendSwitch ("/optimize+");
else
commandLine.AppendSwitch ("/optimize-");
if (Bag ["Optimize"] != null)
if (Optimize)
commandLine.AppendSwitch ("/optimize+");
else
commandLine.AppendSwitch ("/optimize-");
+
if (OutputAssembly != null)
commandLine.AppendSwitchIfNotNull ("/out:", OutputAssembly.ItemSpec);
if (OutputAssembly != null)
commandLine.AppendSwitchIfNotNull ("/out:", OutputAssembly.ItemSpec);
- if (References != null) {
- foreach (ITaskItem item in References) {
- commandLine.AppendSwitchIfNotNull ("/reference:", item.ItemSpec);
- }
- }
- if (Resources != null) {
- foreach (ITaskItem item in Resources) {
+
+ if (Resources != null)
+ foreach (ITaskItem item in Resources)
commandLine.AppendSwitchIfNotNull ("/resource:", item.ItemSpec);
commandLine.AppendSwitchIfNotNull ("/resource:", item.ItemSpec);
- }
- }
- if (ResponseFiles != null) {
- foreach (ITaskItem item in ResponseFiles) {
- commandLine.AppendFileNameIfNotNull (String.Format ("@{0}",item.ItemSpec));
- }
- }
- if (Sources != null) {
- foreach (ITaskItem item in Sources) {
+
+ if (Sources != null)
+ foreach (ITaskItem item in Sources)
commandLine.AppendFileNameIfNotNull (item.ItemSpec);
commandLine.AppendFileNameIfNotNull (item.ItemSpec);
- }
- }
+
if (TargetType != null)
commandLine.AppendSwitchIfNotNull ("/target:", TargetType);
if (Bag ["TreatWarningsAsErrors"] != null)
if (TargetType != null)
commandLine.AppendSwitchIfNotNull ("/target:", TargetType);
if (Bag ["TreatWarningsAsErrors"] != null)
@@
-116,7
+105,6
@@
namespace Microsoft.Build.Tasks {
else
commandLine.AppendSwitch ("/warnaserror-");
commandLine.AppendSwitchIfNotNull ("/win32icon:", Win32Icon);
else
commandLine.AppendSwitch ("/warnaserror-");
commandLine.AppendSwitchIfNotNull ("/win32icon:", Win32Icon);
- commandLine.AppendSwitchIfNotNull ("/win32res:", Win32Resource);
}
[MonoTODO]
}
[MonoTODO]