Use Version 8.0.3 of Json.Net

This commit is contained in:
Ajay Bhargav Baaskaran 2017-03-20 12:34:36 -07:00
parent d5e003fa4c
commit f3744efc5c
2 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,18 @@
{
"adx": {
"rules": [
"DefaultCompositeRule"
],
"packages": {
"Microsoft.VisualStudio.LanguageServices.Razor": {
"Exclusions": {
"WRONG_JSONNET_VERSION": {
"Microsoft.VisualStudio.LanguageServices.Razor; .NETFramework,Version=v4.6": "This package intentionally depends on version 8.0.3 of Newtonsoft.Json because of the dependency on Visual Studio."
}
}
}
}
},
"adx-nonshipping": { // Packages written by the ADX team but that don't ship on NuGet.org (thus, no need to scan anything in them)
"rules": [
// Don't run any rules for packages the ADX team creates but doesn't ship.

View File

@ -37,7 +37,8 @@
<PackageReference Include="Microsoft.VisualStudio.Shell.Interop.11.0" Version="11.0.61030" />
<PackageReference Include="Microsoft.VisualStudio.Shell.Interop.12.0" Version="12.0.30110" />
<PackageReference Include="Microsoft.VisualStudio.Text.Data" Version="15.0.26201" />
<PackageReference Include="Newtonsoft.Json" Version="$(JsonNetVersion)" />
<!-- We need to use this version of Json.Net to maintain consistency with Visual Studio. -->
<PackageReference Include="Newtonsoft.Json" Version="8.0.3" />
<ProjectReference Include="..\..\src\Microsoft.CodeAnalysis.Razor.Workspaces\Microsoft.CodeAnalysis.Razor.Workspaces.csproj" />
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Razor.Evolution\Microsoft.AspNetCore.Razor.Evolution.csproj" />
</ItemGroup>