UsingTasks are not collected expectedly when imports are involved.
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks.Hosting / IVbcHostObject.cs
index 3f13e9d9b88bb8858f173ad5fd125e9885db5ab9..56a24bf2a6598e0a973e57908a9d153fedac83c2 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
+#if NET_2_0
+
 using Microsoft.Build.Framework;
 using System;
 using System.Runtime.InteropServices;
 
 namespace Microsoft.Build.Tasks.Hosting {
-       public interface IVbcHostObject {
+
+       [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
+       [Guid ("7D7AC3BE-253A-40e8-A3FF-357D0DA7C47A")]
+       [ComVisible (true)]
+       public interface IVbcHostObject : ITaskHost {
                void BeginInitialization ();
                
                bool Compile ();
@@ -89,6 +95,8 @@ namespace Microsoft.Build.Tasks.Hosting {
                
                bool SetOptionStrict (bool optionStrict);
                
+               bool SetOptionStrictType (string optionStrictType);
+               
                bool SetOutputAssembly (string outputAssembly);
                
                bool SetPlatform (string platform);
@@ -123,3 +131,4 @@ namespace Microsoft.Build.Tasks.Hosting {
        }
 }
 
+#endif
\ No newline at end of file