Skip to content

Commit

Permalink
SLVS-1519 Update Microsoft.CodeAnalysis to 3.11, add a reference to i…
Browse files Browse the repository at this point in the history
  • Loading branch information
georgii-borovinskikh-sonarsource committed Nov 5, 2024
1 parent d464230 commit c0136c5
Show file tree
Hide file tree
Showing 8 changed files with 159 additions and 44 deletions.
7 changes: 6 additions & 1 deletion src/Infrastructure.VS/Infrastructure.VS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj" />
</ItemGroup>


<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.11.0" PrivateAssets="all"/>
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="3.11.0" PrivateAssets="all" IncludeAssets="none"/>
</ItemGroup>

<ItemGroup>
<Compile Update="Resources.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down
102 changes: 102 additions & 0 deletions src/Infrastructure.VS/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,34 @@
"version": 1,
"dependencies": {
".NETFramework,Version=v4.7.2": {
"Microsoft.CodeAnalysis.Common": {
"type": "Direct",
"requested": "[3.11.0, )",
"resolved": "3.11.0",
"contentHash": "FDKSkRRXnaEWMa2ONkLMo0ZAt/uiV1XIXyodwKIgP1AMIKA7JJKXx/OwFVsvkkUT4BeobLwokoxFw70fICahNg==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "3.3.2",
"System.Collections.Immutable": "5.0.0",
"System.Memory": "4.5.4",
"System.Reflection.Metadata": "5.0.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encoding.CodePages": "4.5.1",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"Microsoft.CodeAnalysis.Workspaces.Common": {
"type": "Direct",
"requested": "[3.11.0, )",
"resolved": "3.11.0",
"contentHash": "YAbH4LCJfh8DhDGwYzSHqvnF06lKkVwblr8C+GwIYCv0i3Rzqjnbversat+i2n9k8twQ43yxVGTYK5p/mIOj4w==",
"dependencies": {
"Humanizer.Core": "2.2.0",
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"Microsoft.CodeAnalysis.Common": "[3.11.0]",
"System.Composition": "1.0.31",
"System.IO.Pipelines": "5.0.1"
}
},
"Microsoft.VisualStudio.SDK": {
"type": "Direct",
"requested": "[17.0.31902.203, )",
Expand Down Expand Up @@ -128,6 +156,11 @@
"resolved": "1.4.1",
"contentHash": "D5AcNr0yPFz5dqftJYKnMtwg6AEMUics+UysxTXKVuZtresqWUcHIrnscM+KsAIreG7wvdumWzjdIXRIMekCLg=="
},
"Humanizer.Core": {
"type": "Transitive",
"resolved": "2.2.0",
"contentHash": "rsYXB7+iUPP8AHgQ8JP2UZI2xK2KhjcdGr9E6zX3CsZaTLCaw8M35vaAJRo1rfxeaZEVMuXeaquLVCkZ7JcZ5Q=="
},
"MessagePack": {
"type": "Transitive",
"resolved": "2.2.85",
Expand Down Expand Up @@ -161,6 +194,11 @@
"resolved": "16.5.0",
"contentHash": "K0hfdWy+0p8DJXxzpNc4T5zHm4hf9QONAvyzvw3utKExmxRBShtV/+uHVYTblZWk+rIHNEHeglyXMmqfSshdFA=="
},
"Microsoft.CodeAnalysis.Analyzers": {
"type": "Transitive",
"resolved": "3.3.2",
"contentHash": "7xt6zTlIEizUgEsYAIgm37EbdkiMmr6fP6J9pDoKEpiGM4pi32BCPGr/IczmSJI9Zzp0a6HOzpr9OvpMP+2veA=="
},
"Microsoft.CSharp": {
"type": "Transitive",
"resolved": "4.7.0",
Expand Down Expand Up @@ -861,6 +899,54 @@
"resolved": "4.5.0",
"contentHash": "+iB9FoZnfdqMEGq6np28X6YNSUrse16CakmIhV3h6PxEWt7jYxUN3Txs1D8MZhhf4QmyvK0F/EcIN0f4gGN0dA=="
},
"System.Composition": {
"type": "Transitive",
"resolved": "1.0.31",
"contentHash": "I+D26qpYdoklyAVUdqwUBrEIckMNjAYnuPJy/h9dsQItpQwVREkDFs4b4tkBza0kT2Yk48Lcfsv2QQ9hWsh9Iw==",
"dependencies": {
"System.Composition.AttributedModel": "1.0.31",
"System.Composition.Convention": "1.0.31",
"System.Composition.Hosting": "1.0.31",
"System.Composition.Runtime": "1.0.31",
"System.Composition.TypedParts": "1.0.31"
}
},
"System.Composition.AttributedModel": {
"type": "Transitive",
"resolved": "1.0.31",
"contentHash": "NHWhkM3ZkspmA0XJEsKdtTt1ViDYuojgSND3yHhTzwxepiwqZf+BCWuvCbjUt4fe0NxxQhUDGJ5km6sLjo9qnQ=="
},
"System.Composition.Convention": {
"type": "Transitive",
"resolved": "1.0.31",
"contentHash": "GLjh2Ju71k6C0qxMMtl4efHa68NmWeIUYh4fkUI8xbjQrEBvFmRwMDFcylT8/PR9SQbeeL48IkFxU/+gd0nYEQ==",
"dependencies": {
"System.Composition.AttributedModel": "1.0.31"
}
},
"System.Composition.Hosting": {
"type": "Transitive",
"resolved": "1.0.31",
"contentHash": "fN1bT4RX4vUqjbgoyuJFVUizAl2mYF5VAb+bVIxIYZSSc0BdnX+yGAxcavxJuDDCQ1K+/mdpgyEFc8e9ikjvrg==",
"dependencies": {
"System.Composition.Runtime": "1.0.31"
}
},
"System.Composition.Runtime": {
"type": "Transitive",
"resolved": "1.0.31",
"contentHash": "0LEJN+2NVM89CE4SekDrrk5tHV5LeATltkp+9WNYrR+Huiyt0vaCqHbbHtVAjPyeLWIc8dOz/3kthRBj32wGQg=="
},
"System.Composition.TypedParts": {
"type": "Transitive",
"resolved": "1.0.31",
"contentHash": "0Zae/FtzeFgDBBuILeIbC/T9HMYbW4olAmi8XqqAGosSOWvXfiQLfARZEhiGd0LVXaYgXr0NhxiU1LldRP1fpQ==",
"dependencies": {
"System.Composition.AttributedModel": "1.0.31",
"System.Composition.Hosting": "1.0.31",
"System.Composition.Runtime": "1.0.31"
}
},
"System.Diagnostics.DiagnosticSource": {
"type": "Transitive",
"resolved": "5.0.1",
Expand Down Expand Up @@ -937,6 +1023,14 @@
"resolved": "4.6.0",
"contentHash": "j/V5HVvxvBQ7uubYD0PptQW2KGsi1Pc2kZ9yfwLixv3ADdjL/4M78KyC5e+ymW612DY8ZE4PFoZmWpoNmN2mqg=="
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==",
"dependencies": {
"System.Collections.Immutable": "5.0.0"
}
},
"System.Runtime": {
"type": "Transitive",
"resolved": "4.3.0",
Expand Down Expand Up @@ -990,6 +1084,14 @@
"resolved": "5.0.0",
"contentHash": "t0MGLukB5WAVU9bO3MGzvlGnyJPgUlcwerXn1kzBRjwLKixT96XV0Uza41W49gVd8zEMFu9vQEFlv0IOrytICA=="
},
"System.Text.Encoding.CodePages": {
"type": "Transitive",
"resolved": "4.5.1",
"contentHash": "4J2JQXbftjPMppIHJ7IC+VXQ9XfEagN92vZZNoG12i+zReYlim5dMoXFC1Zzg7tsnKDM7JPo5bYfFK4Jheq44w==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "4.5.2"
}
},
"System.Threading.AccessControl": {
"type": "Transitive",
"resolved": "5.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ Assembly: 'SonarLint.VisualStudio.Roslyn.Suppressions, Version=8.7.0.0, Culture=
Relative path: 'SonarLint.VisualStudio.Roslyn.Suppressions.dll'

Referenced assemblies:
- 'Microsoft.CodeAnalysis, Version=3.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
- 'Microsoft.CodeAnalysis, Version=3.11.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
- 'Microsoft.VisualStudio.Threading, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
- 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
- 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ Assembly: 'SonarLint.VisualStudio.Roslyn.Suppressions, Version=8.7.0.0, Culture=
Relative path: 'SonarLint.VisualStudio.Roslyn.Suppressions.dll'

Referenced assemblies:
- 'Microsoft.CodeAnalysis, Version=3.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
- 'Microsoft.CodeAnalysis, Version=3.11.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
- 'Microsoft.VisualStudio.Threading, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
- 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
- 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.3.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.3.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.11.0" PrivateAssets="all" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@
},
"Microsoft.CodeAnalysis.Common": {
"type": "Direct",
"requested": "[3.3.1, )",
"resolved": "3.3.1",
"contentHash": "N5yQdGy+M4kimVG7hwCeGTCfgYjK2o5b/Shumkb/rCC+/SAkvP1HUAYK+vxPFS7dLJNtXLRsmPHKj3fnyNWnrw==",
"requested": "[3.11.0, )",
"resolved": "3.11.0",
"contentHash": "FDKSkRRXnaEWMa2ONkLMo0ZAt/uiV1XIXyodwKIgP1AMIKA7JJKXx/OwFVsvkkUT4BeobLwokoxFw70fICahNg==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "2.9.4",
"System.Collections.Immutable": "1.5.0",
"System.Memory": "4.5.3",
"System.Reflection.Metadata": "1.6.0",
"System.Runtime.CompilerServices.Unsafe": "4.5.2",
"Microsoft.CodeAnalysis.Analyzers": "3.3.2",
"System.Collections.Immutable": "5.0.0",
"System.Memory": "4.5.4",
"System.Reflection.Metadata": "5.0.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encoding.CodePages": "4.5.1",
"System.Threading.Tasks.Extensions": "4.5.3"
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"Microsoft.CodeAnalysis.CSharp": {
"type": "Direct",
"requested": "[3.3.1, )",
"resolved": "3.3.1",
"contentHash": "WDUIhTHem38H6VJ98x2Ssq0fweakJHnHYl7vbG8ARnsAwLoJKCQCy78EeY1oRrCKG42j0v6JVljKkeqSDA28UA==",
"requested": "[3.11.0, )",
"resolved": "3.11.0",
"contentHash": "aDRRb7y/sXoJyDqFEQ3Il9jZxyUMHkShzZeCRjQf3SS84n2J0cTEi3TbwVZE9XJvAeMJhGfVVxwOdjYBg6ljmw==",
"dependencies": {
"Microsoft.CodeAnalysis.Common": "[3.3.1]"
"Microsoft.CodeAnalysis.Common": "[3.11.0]"
}
},
"Microsoft.NET.Test.Sdk": {
Expand Down Expand Up @@ -197,8 +197,8 @@
},
"Microsoft.CodeAnalysis.Analyzers": {
"type": "Transitive",
"resolved": "2.9.4",
"contentHash": "alIJhS0VUg/7x5AsHEoovh/wRZ0RfCSS7k5pDSqpRLTyuMTtRgj6OJJPRApRhJHOGYYsLakf1hKeXFoDwKwNkg=="
"resolved": "3.3.2",
"contentHash": "7xt6zTlIEizUgEsYAIgm37EbdkiMmr6fP6J9pDoKEpiGM4pi32BCPGr/IczmSJI9Zzp0a6HOzpr9OvpMP+2veA=="
},
"Microsoft.CodeAnalysis.CSharp.Workspaces": {
"type": "Transitive",
Expand Down Expand Up @@ -1137,10 +1137,10 @@
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "1.6.0",
"contentHash": "COC1aiAJjCoA5GBF+QKL2uLqEBew4JsCkQmoHKbN3TlOZKa2fKLz5CpiRQKDz0RsAOEGsVKqOD5bomsXq/4STQ==",
"resolved": "5.0.0",
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==",
"dependencies": {
"System.Collections.Immutable": "1.5.0"
"System.Collections.Immutable": "5.0.0"
}
},
"System.Runtime": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
However, the Sonar analyzers currently reference an older version of Roslyn, so we need to explicitly
reference a couple of Roslyn NuGet packages here to stop NuGet complaining about version conflicts.
-->
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.3.1" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.11.0" PrivateAssets="all" GeneratePathProperty="true" />

<!-- Reference the Sonar analyzers we want to import, but don't include them as analyzers for this project -->
<PackageReference Include="SonarAnalyzer.CSharp" Version="$(EmbeddedSonarAnalyzerVersion)" ExcludeAssets="all" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="SonarAnalyzer.VisualBasic" Version="$(EmbeddedSonarAnalyzerVersion)" ExcludeAssets="all" PrivateAssets="all" GeneratePathProperty="true" />

<!-- NuGet packages required during the T4 transformation -->
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="3.3.1" PrivateAssets="all" IncludeAssets="none" GeneratePathProperty="true" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="3.11.0" PrivateAssets="all" IncludeAssets="none" GeneratePathProperty="true" />
<PackageReference Include="System.Composition.AttributedModel" Version="1.0.31" PrivateAssets="all" IncludeAssets="none" GeneratePathProperty="true" />
</ItemGroup>

Expand Down
46 changes: 27 additions & 19 deletions src/Roslyn.Suppressions/Roslyn.Suppressions/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,30 @@
".NETFramework,Version=v4.7.2": {
"Microsoft.CodeAnalysis.Common": {
"type": "Direct",
"requested": "[3.3.1, )",
"resolved": "3.3.1",
"contentHash": "N5yQdGy+M4kimVG7hwCeGTCfgYjK2o5b/Shumkb/rCC+/SAkvP1HUAYK+vxPFS7dLJNtXLRsmPHKj3fnyNWnrw==",
"requested": "[3.11.0, )",
"resolved": "3.11.0",
"contentHash": "FDKSkRRXnaEWMa2ONkLMo0ZAt/uiV1XIXyodwKIgP1AMIKA7JJKXx/OwFVsvkkUT4BeobLwokoxFw70fICahNg==",
"dependencies": {
"Microsoft.CodeAnalysis.Analyzers": "2.9.4",
"System.Collections.Immutable": "1.5.0",
"System.Memory": "4.5.3",
"System.Reflection.Metadata": "1.6.0",
"System.Runtime.CompilerServices.Unsafe": "4.5.2",
"Microsoft.CodeAnalysis.Analyzers": "3.3.2",
"System.Collections.Immutable": "5.0.0",
"System.Memory": "4.5.4",
"System.Reflection.Metadata": "5.0.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encoding.CodePages": "4.5.1",
"System.Threading.Tasks.Extensions": "4.5.3"
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
"Microsoft.CodeAnalysis.Workspaces.Common": {
"type": "Direct",
"requested": "[3.3.1, )",
"resolved": "3.3.1",
"contentHash": "NfBz3b5hFSbO+7xsCNryD+p8axsIJFTG7qM3jvMTC/MqYrU6b8E1b6JoRj5rJSOBB+pSunk+CMqyGQTOWHeDUg==",
"requested": "[3.11.0, )",
"resolved": "3.11.0",
"contentHash": "YAbH4LCJfh8DhDGwYzSHqvnF06lKkVwblr8C+GwIYCv0i3Rzqjnbversat+i2n9k8twQ43yxVGTYK5p/mIOj4w==",
"dependencies": {
"Microsoft.CodeAnalysis.Common": "[3.3.1]",
"System.Composition": "1.0.31"
"Humanizer.Core": "2.2.0",
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"Microsoft.CodeAnalysis.Common": "[3.11.0]",
"System.Composition": "1.0.31",
"System.IO.Pipelines": "5.0.1"
}
},
"Microsoft.VisualStudio.SDK": {
Expand Down Expand Up @@ -183,6 +186,11 @@
"resolved": "1.4.1",
"contentHash": "D5AcNr0yPFz5dqftJYKnMtwg6AEMUics+UysxTXKVuZtresqWUcHIrnscM+KsAIreG7wvdumWzjdIXRIMekCLg=="
},
"Humanizer.Core": {
"type": "Transitive",
"resolved": "2.2.0",
"contentHash": "rsYXB7+iUPP8AHgQ8JP2UZI2xK2KhjcdGr9E6zX3CsZaTLCaw8M35vaAJRo1rfxeaZEVMuXeaquLVCkZ7JcZ5Q=="
},
"MessagePack": {
"type": "Transitive",
"resolved": "2.2.85",
Expand Down Expand Up @@ -235,8 +243,8 @@
},
"Microsoft.CodeAnalysis.Analyzers": {
"type": "Transitive",
"resolved": "2.9.4",
"contentHash": "alIJhS0VUg/7x5AsHEoovh/wRZ0RfCSS7k5pDSqpRLTyuMTtRgj6OJJPRApRhJHOGYYsLakf1hKeXFoDwKwNkg=="
"resolved": "3.3.2",
"contentHash": "7xt6zTlIEizUgEsYAIgm37EbdkiMmr6fP6J9pDoKEpiGM4pi32BCPGr/IczmSJI9Zzp0a6HOzpr9OvpMP+2veA=="
},
"Microsoft.CodeAnalysis.CSharp": {
"type": "Transitive",
Expand Down Expand Up @@ -1101,10 +1109,10 @@
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "1.6.0",
"contentHash": "COC1aiAJjCoA5GBF+QKL2uLqEBew4JsCkQmoHKbN3TlOZKa2fKLz5CpiRQKDz0RsAOEGsVKqOD5bomsXq/4STQ==",
"resolved": "5.0.0",
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ==",
"dependencies": {
"System.Collections.Immutable": "1.5.0"
"System.Collections.Immutable": "5.0.0"
}
},
"System.Runtime": {
Expand Down

0 comments on commit c0136c5

Please sign in to comment.