Nuget Restore functionality on Build Server

4 posts, 0 answers
  1. John
    John avatar
    3 posts
    Member since:
    Mar 2011

    Posted 06 Jul 2012 Link to this post

    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.
  2. Rob
    Rob avatar
    2 posts
    Member since:
    Nov 2011

    Posted 09 Jul 2012 Link to this post

    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).
  3. DevCraft banner
  4. Rob
    Rob avatar
    2 posts
    Member since:
    Nov 2011

    Posted 09 Jul 2012 Link to this post

    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 
  5. Serge
    Admin
    Serge avatar
    375 posts

    Posted 11 Jul 2012 Link to this post

    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.
Back to Top