Skip to content

Conversation

@github-actions
Copy link
Contributor

Backport of #35572 to release/6.0

/cc @pranavkm

Customer Impact

Testing

Risk

@github-actions github-actions bot requested a review from Pilchie as a code owner August 25, 2021 17:07
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Aug 25, 2021
var compilation = compilationStartAnalysisContext.Compilation;
if (!WellKnownTypes.TryCreate(compilation, out var wellKnownTypes))
{
Debug.Fail("One or more types could not be found. This usually means you are bad at spelling C# type names.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are bad at spelling C# type names

Haha, what kind of message is this 😆

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's speaking the truth!

// if we don't have a method body, and the action is IResult or ActionResult<T> returning, produce diagnostics for the entire method.
context.ReportDiagnostic(Diagnostic.Create(
DiagnosticDescriptors.DoNotReturnActionResultsFromMapActions,
invocationOperation.Arguments[2].Syntax.GetLocation(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a comment showing what the operation looks like so we know what Arguments[2] is?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, maybe we want to do this in the PR to main?

@pranavkm
Copy link
Contributor

@dotnet/aspnet-build merge please?

@wtgodbe wtgodbe merged commit 8b72a2b into release/6.0 Aug 25, 2021
@wtgodbe wtgodbe deleted the backport/pr-35572-to-release/6.0 branch August 25, 2021 21:55
@ghost ghost added this to the 6.0-rc2 milestone Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants