Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Edited Issue: deleted package referenced in a project causes VS to hang [2970]

$
0
0
1. I have a project with package restore enabled and has following references
<package id="Microsoft.AspNet.WebApi" version="4.1.0-alpha-121009" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Client" version="4.1.0-rtm-130109" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Core" version="4.1.0-rtm-130109" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.HelpPage" version="0.2.0-alpha-121107" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.OData" version="4.0.0-rtm-130103" targetFramework="net45" />
<package id="Microsoft.AspNet.WebApi.Tracing" version="0.2.0-alpha-121025" targetFramework="net45" />

2. The alpha packages are now removed/delete from the feed
3. Now when I build the project to restore the package it reports an error Microsoft.ASPnet.webapi
and microsoft.aspnet.webapi.tracing not found in the feed and *VS hangs*

investigating found that during build it keeps pinging
https://nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNet.WebApi.Tracing'
and
https://nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNet.WebApi'

I feel the problem is with the following in nuget.targets
where it first fails to restore the packages and assemblies are not resolved.

And then on each build it retires to download the missing packages = the number of assemblies with reference not resolved correctly
<ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
RestorePackages;
$(ResolveReferencesDependsOn);
</ResolveReferencesDependsOn>

Viewing all articles
Browse latest Browse all 7612

Trending Articles



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