Poyo
Poyo
CC#
Created by Poyo on 2/17/2023 in #help
✅ DiagnosticSuppressors and Visual Studio
will do, thanks!
19 replies
CC#
Created by Poyo on 2/17/2023 in #help
✅ DiagnosticSuppressors and Visual Studio
oh, yeah, also worth mentioning: i'm on the latest vs (17.4.5), tried all the cleaning and rebuilding and deleting obj/bin/.vs and such. lots of reports of similar things happening as a result of visual studio bugs but i'm assuming this isn't one of those?
19 replies
CC#
Created by Poyo on 2/17/2023 in #help
✅ DiagnosticSuppressors and Visual Studio
okay, so i'm still having trouble here. i've got my analyzer reference:
<ProjectReference Include="..\Chungy.CodeAnalysis\Chungy.CodeAnalysis.csproj" PrivateAssets="all" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
<ProjectReference Include="..\Chungy.CodeAnalysis\Chungy.CodeAnalysis.csproj" PrivateAssets="all" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
but i'm still getting this warning:
An instance of analyzer Chungy.CodeAnalysis.DependencyLoaderDiagnosticSuppressor cannot be created from C:\Users\Poyo\Repositories\Chungy\Chungy.CodeAnalysis\bin\Release\netstandard2.0\Chungy.CodeAnalysis.dll: Could not load type 'Chungy.CodeAnalysis.DependencyLoaderDiagnosticSuppressor' from assembly 'Chungy.CodeAnalysis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'..
An instance of analyzer Chungy.CodeAnalysis.DependencyLoaderDiagnosticSuppressor cannot be created from C:\Users\Poyo\Repositories\Chungy\Chungy.CodeAnalysis\bin\Release\netstandard2.0\Chungy.CodeAnalysis.dll: Could not load type 'Chungy.CodeAnalysis.DependencyLoaderDiagnosticSuppressor' from assembly 'Chungy.CodeAnalysis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'..
Chungy.CodeAnalysis.DependencyLoaderDiagnosticSuppressor is a very simple class and Chungy.CodeAnalysis.csproj looks like this: https://gist.github.com/Poyo-SSB/95da26a7b60611399a83a0731cfa415a i've tried targeting net7.0 and netstandard2.0, not messing with nrt/language versions, etc. and i'm kind of at a loss what could be causing the error at this point
19 replies
CC#
Created by Poyo on 2/17/2023 in #help
✅ DiagnosticSuppressors and Visual Studio
alright, thank you!
19 replies
CC#
Created by Poyo on 2/17/2023 in #help
✅ DiagnosticSuppressors and Visual Studio
is there any documentation on how this works?
19 replies
CC#
Created by Poyo on 2/17/2023 in #help
✅ DiagnosticSuppressors and Visual Studio
well, that wouldn't be a bad idea considering i'll also need to have other analyzers. however, my understanding is that the only way to operate here is to build a vsix or nupkg of my CA project and add that to the main project. is that correct?
19 replies