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

Commented Issue: Unable to restore packages with .targets files [3135]

$
0
0
Unable to restore packages with .targets files.

Steps to reproduce:
1) Create Portable Class Library Project.
2) nuget-install Microsoft.Bcl.Async (for example)
3) Enable NuGet package restore
4) Close solution and cleanup packages folder
5) Try to rebuild project. Build fails with message like:

[project].csproj : error : The imported project "[path]\packages\Microsoft.Bcl.Build.1.0.0-rc\tools\Microsoft.Bcl.Build.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Comments: In case anyone is wondering, the Microsoft.Bcl.Build release 1.0.7 from today will change your project file and strip BenHu's fix. It also removed the "prerelaseversion" from the assembly metadata and fixes the .target file's assembly search order. It DOES NOT fix the package restore issue (loading the solution without the package folder being present).

Viewing all articles
Browse latest Browse all 7612

Trending Articles



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