Skip to content

RoutePatternAnalyzer (ASP0017, ASP0018) performance issue (1.5 minute execution time) #53899

@TwentyFourMinutes

Description

@TwentyFourMinutes

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

For roughly 2.5 weeks now I am experiencing extremely slow build times. dotnet build says that Core Compile takes forever here. Through the MSBuild Structured Log Viewer I was able to track down a few analyzers:

image

I can't really tell why this is happening.

Disabling analyzers on the project DOES help:

    <RunAnalyzersDuringLiveAnalysis>False</RunAnalyzersDuringLiveAnalysis>
    <EnforceCodeStyleInBuild>False</EnforceCodeStyleInBuild>
    <EnableNETAnalyzers>False</EnableNETAnalyzers>

Expected Behavior

Better performance.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8.0.200-preview.23624.5

Anything else?

Microsoft Visual Studio Professional 2022 (64-bit) - Preview
Version 17.9.0 Preview 5.0
<TargetFramework>net8.0</TargetFramework>

Metadata

Metadata

Assignees

Labels

area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions