Option to not add Analyzers
Currently we have the problem, that paket adds an analyzer from a nuget package that we do not want (and that breaks our build). We need an option to not add the analyzers from a nuget package.
Any ideas how that would look like?
TimHeinrich [email protected] schrieb am Mi., 19. Feb. 2020, 14:47:
Currently we have the problem, that paket adds an analyzer from a nuget package that we do not want (and that breaks our build). We need an option to not add the analyzers from a nuget package.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/3798?email_source=notifications&email_token=AAAOANCX27CSBCWVWD2HUJTRDUZ7NA5CNFSM4KXZVX3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOUTUCA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOANHK2FVSN5JZJCSGDHTRDUZ7NANCNFSM4KXZVX3A .
For my usecase I would like something like this in the paket.dependencies: nuget mypackage skip_analyzers: true
Might be good if this could be overridden in the paket.references, but that is not something I need
Ok. And what would that do exactly?
TimHeinrich [email protected] schrieb am Mi., 19. Feb. 2020, 15:15:
For my usecase I would like something like this in the paket.dependencies: nuget mypackage skip_analyzers: true
Might be good if this could be overridden in the paket.references, but that is not something I need
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/3798?email_source=notifications&email_token=AAAOANEMHGCXEOSOYP3JYK3RDU5JFA5CNFSM4KXZVX3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMIASOY#issuecomment-588253499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAOANB4RA72KPVD24TS3IDRDU5JFANCNFSM4KXZVX3A .
Lets take a look at Microsoft.EntityFrameworkCore, which has a dependency on Microsoft.EntityFrameworkCore.Analyzers. This will add these lines to the csproj file: <Analyzer Include="..\packages\Microsoft.EntityFrameworkCore.Analyzers\analyzers\dotnet\cs\Microsoft.EntityFrameworkCore.Analyzers.dll"> <Paket>True</Paket> </Analyzer>
I need a way to not add those Analyzer-lines
I would second this issue. We have just run into a similar problem that could be conveniently solved by not adding analyzers.