This is a migrated thread and some comments may be shown as answers.
Nuget Restore functionality on Build Server
3 Answers 54 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 2
John asked on 06 Jul 2012, 03:11 PM
We have started using Open Access fluent model functionality and we are running into problems trying to build as part of our CI process. We get the below errors and it seems to be looking for that file before it can restore the nuget package. Any help would be appreciated.

 C:\Builds\someproject.csproj (160): The imported project "C:\Builds\someproject\Source\packages\OpenAccess.CodeFirst.2012.2.628.2\tools\enhancer\OpenAccess.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
 C:\Builds\someproject.FluentModel.csproj (83): The imported project "C:\Builds\someproject\Source\packages\OpenAccess.CodeFirst.2012.2.628.2\tools\enhancer\OpenAccess.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
 C:\Builds\someproject.csproj (122): The imported project "C:\Builds\someproject\Source\packages\OpenAccess.CodeFirst.2012.2.628.2\tools\enhancer\OpenAccess.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
 C:\Builds\someproject.csproj (84): The imported project "C:\Builds\someproject\Source\packages\OpenAccess.CodeFirst.2012.2.628.2\tools\enhancer\OpenAccess.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
 C:\Builds\someproject.csproj (84): The imported project "C:\Builds\someproject\Source\packages\OpenAccess.CodeFirst.2012.2.628.2\tools\enhancer\OpenAccess.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

3 Answers, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 1
answered on 10 Jul 2012, 03:38 AM
Check the order of the imports in the csproj files. Try reordering so that nuget package restore comes first. If all else fails, move this package somewhere else so that it is not part of the package restore.

I know you can look at the nuget gallery http://github.com/nuget/nugetgallery for an example of an imports file that is done with nuget package restore (Razor Imports).
0
Rob
Top achievements
Rank 1
answered on 10 Jul 2012, 03:40 AM
Also, you may run into issues on the build server with the new consent for package restore: http://blog.nuget.org/20120518/package-restore-and-consent.html 

You can permanently fix that issue by setting the consent at build time, which this package does: http://nuget.org/packages/NuGetEnablePackageRestore 
0
Serge
Telerik team
answered on 11 Jul 2012, 02:27 PM
Hello Rob, John,

 Can you give us a little bit more details on when this issue is hapenning? Is it when a new version of the OpenAccess nuget is installed, or is it just occuring on each build? Do you have a custom repository setup or does the build machine access the official nuget gallery? 

 We are looking forward to resolving this issue.

Regards,
Serge
the Telerik team
OpenAccess ORM Q2'12 Now Available! Get your hands on all the new stuff.
Tags
General Discussions
Asked by
John
Top achievements
Rank 2
Answers by
Rob
Top achievements
Rank 1
Serge
Telerik team
Share this question
or