CompilationLoader.GeneratedFile(String, String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Exceptions
fileId is incompatible with an id assigned by the Q# compiler.