CompilationLoader.GeneratedFile(String, String, String, String) Method

Definition

Given a file id assigned by the Q# compiler, computes the corresponding path in the specified output folder. Returns the computed absolute path for a file with the specified ending. If the content for that file is specified, writes that content to disk. Throws the corresponding exception if any of the path operations fails or if the writing fails.

public static string GeneratedFile (string fileId, string outputFolder, string fileEnding, string? content = default);
static member GeneratedFile : string * string * string * string -> string
Public Shared Function GeneratedFile (fileId As String, outputFolder As String, fileEnding As String, Optional content As String = Nothing) As String

Parameters

fileId
String
outputFolder
String
fileEnding
String
content
String

Returns

String

Exceptions

fileId is incompatible with an id assigned by the Q# compiler.

Applies to