UsingTasks are not collected expectedly when imports are involved.
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks.Hosting / ICscHostObject.cs
1 //
2 // ICscHostObject.cs: Host object interface for C# compiler.
3 //
4 // Author:
5 //   Marek Sieradzki (marek.sieradzki@gmail.com)
6 //
7 // (C) 2005 Marek Sieradzki
8 //
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
28 #if NET_2_0
29
30 using System;
31 using System.Runtime.InteropServices;
32 using Microsoft.Build.Framework;
33
34 namespace Microsoft.Build.Tasks.Hosting {
35         
36         [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
37         [Guid ("8520CC4D-64DC-4855-BE3F-4C28CCE048EE")]
38         [ComVisible (true)]
39         public interface ICscHostObject : ITaskHost {
40         
41                 void BeginInitialization ();
42                 
43                 bool Compile ();
44                 
45                 bool EndInitialization (out string errorMessage, out int errorCode);
46                 
47                 bool IsDesignTime ();
48                 
49                 bool IsUpToDate ();
50                 
51                 bool SetAdditionalLibPaths (string[] additionalLibPaths);
52                 
53                 bool SetAddModules (string[] addModules);
54                 
55                 bool SetAllowUnsafeBlocks (bool allowUnsafeBlocks);
56                 
57                 bool SetBaseAddress (string baseAddress);
58                 
59                 bool SetCheckForOverflowUnderflow (bool checkForOverflowUnderflow);
60                 
61                 bool SetCodePage (int codePage);
62                 
63                 bool SetDebugType (string debugType);
64                 
65                 bool SetDefineConstants (string defineConstants);
66                 
67                 bool SetDelaySign (bool delaySignExplicitlySet, bool delaySign);
68                 
69                 bool SetDisabledWarnings (string disabledWarnings);
70                 
71                 bool SetDocumentationFile (string documentationFile);
72                 
73                 bool SetEmitDebugInformation (bool emitDebugInformation);
74                 
75                 bool SetErrorReport (string errorReport);
76                 
77                 bool SetFileAlignment (int fileAlignment);
78                 
79                 bool SetGenerateFullPaths (bool generateFullPaths);
80                 
81                 bool SetKeyContainer (string keyContainer);
82                 
83                 bool SetKeyFile (string keyFile);
84                 
85                 bool SetLangVersion (string langVersion);
86                 
87                 bool SetLinkResources (ITaskItem[] linkResources);
88                 
89                 bool SetMainEntryPoint (string targetType, string mainEntryPoint);
90                 
91                 bool SetModuleAssemblyName (string moduleAssemblyName);
92                 
93                 bool SetNoConfig (bool noConfig);
94                 
95                 bool SetNoStandardLib (bool noStandardLib);
96                 
97                 bool SetOptimize (bool optimize);
98                 
99                 bool SetOutputAssembly (string outputAssembly);
100                 
101                 bool SetPdbFile (string pdbFile);
102                 
103                 bool SetPlatform (string platform);
104                 
105                 bool SetReferences (ITaskItem[] references);
106                 
107                 bool SetResources (ITaskItem[] resources);
108                 
109                 bool SetResponseFiles (ITaskItem[] responseFiles);
110                 
111                 bool SetSources (ITaskItem[] sources);
112                 
113                 bool SetTargetType (string targetType);
114                 
115                 bool SetTreatWarningsAsErrors (bool treatWarningsAsErrors);
116                 
117                 bool SetWarningLevel (int warningLevel);
118                 
119                 bool SetWarningsAsErrors (string warningsAsErrors);
120                 
121                 bool SetWarningsNotAsErrors (string warningsNotAsErrors);
122                 
123                 bool SetWin32Icon (string win32Icon);
124                 
125                 bool SetWin32Resource (string win32Resource);
126         }
127 }
128
129 #endif