I've a .Net Framework 4.6.1 web application, and I installed Microsoft.Azure.ActiveDirectory.GraphClient.2.1.1, which has transitive dependency on "Microsoft.Data.Odata(>=5.6.4)" . I'm trying to update the Odata version to 5.8.5. I tried changing the version in packages.config, csporj and also in web.config, But it still showing the project has 5.6.4 in blackduck SCA scans. Any idea on forcing the nuget package version?
Here are my config files
pacakges.config
<packages><package id="Microsoft.Azure.ActiveDirectory.GraphClient" version="2.1.1" targetFramework="net47" /><package id="Microsoft.Data.Edm" version="5.8.5" targetFramework="net47" /><package id="Microsoft.Data.OData" version="5.8.5" targetFramework="net47" /><package id="Microsoft.Data.Services.Client" version="5.8.5" targetFramework="net47" /><package id="System.Spatial" version="5.8.5" targetFramework="net47" /></packages>
web.config
<runtime><dependentAssembly><assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.8.5.0" newVersion="5.8.5.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.8.5.0" newVersion="5.8.5.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.8.5.0" newVersion="5.8.5.0" /></dependentAssembly><dependentAssembly><assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-5.8.5.0" newVersion="5.8.5.0" /></dependentAssembly></assemblyBinding></runtime>
csproj
<ItemGroup><Reference Include="Microsoft.Data.OData" Version="5.8.5.0" /><Reference Include="Microsoft.Data.Edm" Version="5.8.5.0" /><Reference Include="Microsoft.Data.Services.Client" Version="5.8.5.0" /></ItemGroup>