Sdílet prostřednictvím


ISingleFileGenerator.GenerateCodeAsync Method

Definition

Triggers the single file generation on the single input file at filePathto generate the single output file. The result of the transformation may be source code, or any other output that is useful. An example is resources code file generated in response to changes in a visual designer that creates a resx file.

public:
 System::Threading::Tasks::Task ^ GenerateCodeAsync(System::String ^ filePath, System::String ^ fileProject, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task GenerateCodeAsync (string filePath, string fileProject, System.Threading.CancellationToken cancellationToken);
abstract member GenerateCodeAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function GenerateCodeAsync (filePath As String, fileProject As String, cancellationToken As CancellationToken) As Task

Parameters

filePath
String

Input file path on which to run the Single File Generator.

fileProject
String

The Project file that the Input file belongs to.

cancellationToken
CancellationToken

A cancellation token.

Returns

A Task<TResult> representing the result of the asynchronous operation.

Applies to