Show / Hide Table of Contents

Class Generator

generates new csproj file for self-contained NativeAOT app based on https://github.com/dotnet/corert/blob/7f902d4d8b1c3280e60f5e06c71951a60da173fb/Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md#compiling-source-to-native-code-using-the-ilcompiler-you-built and https://github.com/dotnet/corert/tree/7f902d4d8b1c3280e60f5e06c71951a60da173fb/samples/HelloWorld#add-corert-to-your-project

Inheritance
Object
GeneratorBase
DotNetCliGenerator
CsProjGenerator
Generator
Implements
IGenerator
IEquatable<CsProjGenerator>
Inherited Members
CsProjGenerator.RuntimeFrameworkVersion
CsProjGenerator.GetProjectFilePath(String)
CsProjGenerator.GetRuntimeSettings(GcMode, IResolver)
CsProjGenerator.GetProjectFilePath(Type, ILogger)
CsProjGenerator.Equals(Object)
CsProjGenerator.Equals(CsProjGenerator)
CsProjGenerator.GetHashCode()
DotNetCliGenerator.TargetFrameworkMoniker
DotNetCliGenerator.CliPath
DotNetCliGenerator.PackagesPath
DotNetCliGenerator.IsNetCore
DotNetCliGenerator.CopyAllRequiredFiles(ArtifactsPaths)
DotNetCliGenerator.GetPackagesDirectoryPath(String)
GeneratorBase.GenerateProject(BuildPartition, ILogger, String)
GeneratorBase.GenerateAppConfig(BuildPartition, ArtifactsPaths)
GeneratorBase.GenerateCode(BuildPartition, ArtifactsPaths)
GeneratorBase.GetExecutablePath(String, String)
Namespace: BenchmarkDotNet.Toolchains.NativeAot
Assembly: BenchmarkDotNet.dll
Syntax
public class Generator : CsProjGenerator, IGenerator, IEquatable<CsProjGenerator>

Methods

GenerateBuildScript(BuildPartition, ArtifactsPaths)

Declaration
protected override void GenerateBuildScript(BuildPartition buildPartition, ArtifactsPaths artifactsPaths)
Parameters
Type Name Description
BuildPartition buildPartition
ArtifactsPaths artifactsPaths
Overrides
DotNetCliGenerator.GenerateBuildScript(BuildPartition, ArtifactsPaths)

GenerateNuGetConfig(ArtifactsPaths)

Declaration
protected override void GenerateNuGetConfig(ArtifactsPaths artifactsPaths)
Parameters
Type Name Description
ArtifactsPaths artifactsPaths
Overrides
GeneratorBase.GenerateNuGetConfig(ArtifactsPaths)

GenerateProject(BuildPartition, ArtifactsPaths, ILogger)

Declaration
protected override void GenerateProject(BuildPartition buildPartition, ArtifactsPaths artifactsPaths, ILogger logger)
Parameters
Type Name Description
BuildPartition buildPartition
ArtifactsPaths artifactsPaths
ILogger logger
Overrides
CsProjGenerator.GenerateProject(BuildPartition, ArtifactsPaths, ILogger)

GetArtifactsToCleanup(ArtifactsPaths)

Declaration
protected override string[] GetArtifactsToCleanup(ArtifactsPaths artifactsPaths)
Parameters
Type Name Description
ArtifactsPaths artifactsPaths
Returns
Type Description
String[]
Overrides
DotNetCliGenerator.GetArtifactsToCleanup(ArtifactsPaths)

GetBinariesDirectoryPath(String, String)

Declaration
protected override string GetBinariesDirectoryPath(string buildArtifactsDirectoryPath, string configuration)
Parameters
Type Name Description
String buildArtifactsDirectoryPath
String configuration
Returns
Type Description
String
Overrides
CsProjGenerator.GetBinariesDirectoryPath(String, String)

GetBuildArtifactsDirectoryPath(BuildPartition, String)

Declaration
protected override string GetBuildArtifactsDirectoryPath(BuildPartition buildPartition, string programName)
Parameters
Type Name Description
BuildPartition buildPartition
String programName
Returns
Type Description
String
Overrides
CsProjGenerator.GetBuildArtifactsDirectoryPath(BuildPartition, String)

GetExecutableExtension()

Declaration
protected override string GetExecutableExtension()
Returns
Type Description
String
Overrides
DotNetCliGenerator.GetExecutableExtension()

GetRdXmlFiles(Type, ILogger)

Declaration
public IEnumerable<string> GetRdXmlFiles(Type benchmarkTarget, ILogger logger)
Parameters
Type Name Description
Type benchmarkTarget
ILogger logger
Returns
Type Description
IEnumerable<String>

Implements

IGenerator
System.IEquatable<T>
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors