damirarh / damirscorner-utterances

utteranc.es comments for https://damirscorner.com
0 stars 0 forks source link

/blog/posts/20130603-PackageRestoreFailsForProjectsImportingATargetsFileFromAMissingNuGetPackage.html #12

Open damirarh opened 1 year ago

damirarh commented 1 year ago

Imported

URL: https://www.damirscorner.com/blog/posts/20130603-PackageRestoreFailsForProjectsImportingATargetsFileFromAMissingNuGetPackage.html

damirarh commented 1 year ago

Imported comment written by sanjay on 2017-09-08T06:39:40

I'm facing the same problem when I add the Existing project. Is there any solution for that??

damirarh commented 1 year ago

Imported comment written by Damir Arh on 2017-09-08T08:20:36

You're adding an existing project to a different solution? The described process should also work in this case.

There might be another potential issue in this scenario, though. The relative path to the .targets file is hardcoded in the project and points to the packages folder inside the solution folder. You need to make sure that the relative path to the packages folder from the project file is the same in this new solution as it was in the original solution the project is coming from. The path it's looking for should be listed in the Output window, as in the example in the above post.