Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Reference not updated after install

$
0
0

I have recently upgraded my reference packagesMicrosoft.Aspnet.Mvc from 4.0.0 to 5.0.0,Newtonsoft.Json to 6.0.3,Microsoft.Aspnet.WebApi to 5.0.0

And I installed it using NuGet Package Manager Console in Visual Studio 2013. But when I check the version of the references in the solutions explorer, I still see the older version for MVC reference. The other references have been updated.

In the .csproj file I see the Reference include for System.Web.Mvc mentions version 4.0.0.0 but HintPath is for 5.0.0.

I tried the following:

  1. Deleted the packages directory from Windows explorer

  2. Updated package through Package Manager Console, but the problem still persists.

Could someone help me with this?

Edit: Adding one of the reference tags

<Reference Include="System.Web.Mvc, Version=4.0.0, Culture=neutral, PublicKeyToken=12345, processorArchitecture=MSIL"><SpecificVersion>false</SpecificVersion><HintPath>..\packages\Microsoft.AspNet.Mvc.5.0.0\lib\net45\System.Web.Mvc.dll</HintPath></Reference>

As you can see, the Version in the reference is 4.0.0 and that in the hint path is 5.0.0. 4.0.0 is the version I see in the solution explorer.

I also set the specific version tags to True for all the references in question and built the code, but again, when I look at the properties of the reference in solution explorer, I see 4.0.0.

Edit 2: I deleted the reference from the solutions explorer, then References >Add References > Browse> Selected the latest downloaded Reference dll from package directory. The version in reference manager is 5.0.11001.0

Then I looked at the properties of the added reference. It still is 4.0.0


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>