RoslynClrHeapAllocationAnalyzer icon indicating copy to clipboard operation
RoslynClrHeapAllocationAnalyzer copied to clipboard

Support for Visual studio 2022?

Open tkaczz opened this issue 2 years ago • 3 comments

Is it possible to use analyzers with visual studio 2022?

tkaczz avatar Nov 18 '21 07:11 tkaczz

Looks like adding InstallationTarget's as described here https://docs.microsoft.com/en-us/visualstudio/extensibility/migration/update-visual-studio-extension?view=vs-2022

   <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0)">
      <ProductArchitecture>x86</ProductArchitecture>
   </InstallationTarget>
   <InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
      <ProductArchitecture>amd64</ProductArchitecture>
   </InstallationTarget>

to manifest and changing code a bit, to be compatible with c# 7.3... https://github.com/tkaczz/RoslynClrHeapAllocationAnalyzer/commit/7486c945fcceab1b6adddd6c1ddabbfeb38438a2#diff-beb540fdb30200f7b46ee020fbec0614960cdd0ad21ddb5fb3b4691ba619edc1

...produces working vsix package compatible with vs2022.

tkaczz avatar Nov 22 '21 09:11 tkaczz

Can we get this change into a pull request @tkaczz ?

hcorion avatar Nov 22 '21 17:11 hcorion

@hcorion done

tkaczz avatar Nov 22 '21 17:11 tkaczz