| File: ICscHostObject.cs | Web Access |
| Project: src\msbuild\src\Tasks\Microsoft.Build.Tasks.csproj (Microsoft.Build.Tasks.Core) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.InteropServices; using Microsoft.Build.Framework; #nullable disable namespace Microsoft.Build.Tasks.Hosting { /// <summary> /// Defines an interface for the Csc task to communicate with the IDE. In particular, /// the Csc task will delegate the actual compilation to the IDE, rather than shelling /// out to the command-line compilers. /// </summary> [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComVisible(true)] [Guid("8520CC4D-64DC-4855-BE3F-4C28CCE048EE")] public interface ICscHostObject : ITaskHost { bool IsDesignTime(); bool Compile(); void BeginInitialization(); bool EndInitialization(out string errorMessage, out int errorCode); bool SetAdditionalLibPaths(string[] additionalLibPaths); bool SetAddModules(string[] addModules); bool SetAllowUnsafeBlocks(bool allowUnsafeBlocks); bool SetBaseAddress(string baseAddress); bool SetCheckForOverflowUnderflow(bool checkForOverflowUnderflow); bool SetCodePage(int codePage); bool SetDebugType(string debugType); bool SetDefineConstants(string defineConstants); bool SetDelaySign(bool delaySignExplicitlySet, bool delaySign); bool SetDisabledWarnings(string disabledWarnings); bool SetDocumentationFile(string documentationFile); bool SetEmitDebugInformation(bool emitDebugInformation); bool SetErrorReport(string errorReport); bool SetFileAlignment(int fileAlignment); bool SetGenerateFullPaths(bool generateFullPaths); bool SetKeyContainer(string keyContainer); bool SetKeyFile(string keyFile); bool SetLangVersion(string langVersion); bool SetLinkResources(ITaskItem[] linkResources); bool SetMainEntryPoint(string targetType, string mainEntryPoint); bool SetModuleAssemblyName(string moduleAssemblyName); bool SetNoConfig(bool noConfig); bool SetNoStandardLib(bool noStandardLib); bool SetOptimize(bool optimize); bool SetOutputAssembly(string outputAssembly); bool SetPlatform(string platform); bool SetPdbFile(string pdbFile); bool SetReferences(ITaskItem[] references); bool SetResources(ITaskItem[] resources); bool SetResponseFiles(ITaskItem[] responseFiles); bool SetSources(ITaskItem[] sources); bool SetTargetType(string targetType); bool SetTreatWarningsAsErrors(bool treatWarningsAsErrors); bool SetWarningLevel(int warningLevel); bool SetWarningsAsErrors(string warningsAsErrors); bool SetWarningsNotAsErrors(string warningsNotAsErrors); bool SetWin32Icon(string win32Icon); bool SetWin32Resource(string win32Resource); bool IsUpToDate(); } }