File: ProjectSystemShim\Interop\ICSharpTempPECompilerService.cs
Web Access
Project: src\src\VisualStudio\CSharp\Impl\Microsoft.VisualStudio.LanguageServices.CSharp_4slr1l2i_wpftmp.csproj (Microsoft.VisualStudio.LanguageServices.CSharp)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
#nullable disable
 
using System;
using System.Runtime.InteropServices;
 
namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim.Interop
{
    [ComImport]
    [Guid("DBA64C84-56DF-4E20-8AA6-02332A97F474")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    internal interface ICSharpTempPECompilerService
    {
        [PreserveSig]
        int CompileTempPE(
            [MarshalAs(UnmanagedType.LPWStr)] string pszOutputFileName,
            int sourceCount,
            [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1)] string[] fileNames,
            [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1)] string[] fileContents,
            int optionCount,
            [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 4)] string[] optionNames,
            [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 4)] object[] optionValues);
    }
}