jezzsantos / saastack

A comprehensive codebase template for starting your real-world, fully featured SaaS web products. On the .NET platform
The Unlicense
44 stars 13 forks source link

Roslyn Analyzers not running on Platform projects #16

Closed jezzsantos closed 11 months ago

jezzsantos commented 11 months ago

Problem

Cannot use the current Tools.Platform.Analyzers in all the platform projects (IsPlatformProject==true).

Cannot build Common, because it depends on Tools.Platform.Analyzers Cannot build Infrastructure.Web.Api.Interfaces, because it depends on Tools.Platform.Analyzers

Cannot build Tools.Platform.Analyzers because it depends on Common and on Infrastructure.Web.Api.Interfaces

We have a cyclic dependency.

Analysis

How to resolve?

Should we separate the MissingDocsAnalyzer to a separate assembly since that should only be running on IsPlatfromProject && !IsTestingProject && !IsRoslynComponent

Wheras the other things (subdomain specific/shared) should be running on !IsPlatfromProject && !IsTestingProject && !IsRoslynComponent