Skip to content

Need to rationalize MSBuildForwardingApp in AOT scenarios #52988

@JeremyKuhne

Description

@JeremyKuhne

In MSBuildForwardingApp.ConcatTelemetryLogger

                Type loggerType = typeof(MSBuildLogger);
                Type forwardingLoggerType = typeof(MSBuildForwardingLogger);

#pragma warning disable IL3000 // Avoid accessing Assembly file path when publishing as a single file
                msbuildArgs.OtherMSBuildArgs.Add($"-distributedlogger:{loggerType.FullName},{loggerType.GetTypeInfo().Assembly.Location}*{forwardingLoggerType.FullName},{forwardingLoggerType.GetTypeInfo().Assembly.Location}");
#pragma warning restore IL3000

In AOT scenarios we'll need to have some code that sits in a dll for code that we'll run out of the AOT process.

I have not looked at all into how the logging works in this particular case. There may be additional work around telemetry logging to handle remoting build logging for telemetry.

cc: @MiYanni @baronfel

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-dotnet AOTItems that are part of the dotnet CLI AOT-ification effortuntriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions