Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-Release doesn't find project dependencies #227

Open
flagbug opened this issue Dec 7, 2013 · 10 comments
Open

New-Release doesn't find project dependencies #227

flagbug opened this issue Dec 7, 2013 · 10 comments

Comments

@flagbug
Copy link
Member

flagbug commented Dec 7, 2013

I have a solution with multiple projects, each with a .nuspec file and BuildPackage enabled. The main project has a dependency on the other two projects and I specified them as dependency in the .nuspec of the main project as described here

When creating a New-Release, I get the following error:

CreateReleasePackage.exe : 
At C:\Users\Dennis\Dropbox\Projects\Espera\Espera\packages\Shimmer.0.7.4\tools\commands.psm1:70 char:26
+         $releaseOutput = & $createReleasePackageExe -o $ReleasesDir -p $packageD ...
+                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Unexpected exception occurred creating package:

System.Exception: Couldn't find file for package in C:\Users\Dennis\Dropbox\Projects\Espera\Espera\packages: Espera.Core
   at Shimmer.Core.ReleasePackage.<>c__DisplayClass1c.<findAllDependentPackages>b__19(PackageDependency dependency)
   at System.Linq
.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Shimmer.Core.ReleasePackage.findAllDependentPackages(IPackage package, String packagesRootDir, HashSet`1 packageCache, FrameworkName frameworkName)
   at Shimmer.Core.ReleasePackage.CreateReleasePackage(String outputFile, String packagesRootDir, Func`2 releaseNotesProcessor)
   at CreateReleasePackage.Program.Main(String[] args)

Seems like CreateReleasePackage.exe looks for the project dependencies in the packages directory, but the built .nupgk files are still in their build output folders

@ses4j
Copy link

ses4j commented Feb 4, 2014

Did you ever resolve this?

@flagbug
Copy link
Member Author

flagbug commented Feb 4, 2014

@ses4j Nope, that's just not possible at the moment

@ses4j
Copy link

ses4j commented Feb 4, 2014

So what can you do to get the project dependencies outputs in the right place?

@dchaib
Copy link

dchaib commented Feb 12, 2014

Does this mean it is not yet possible to use Squirrel with a solution that has more than one project? Even though it is fully documented?

@flagbug
Copy link
Member Author

flagbug commented Feb 12, 2014

It is possible if you manually copy the resulting .nupkg files of the projects into the releases folder

@dchaib
Copy link

dchaib commented Feb 12, 2014

I must have done something wrong then, because I tried what you said and I still have the same error as the one you mentioned at the beginning.

@dchaib
Copy link

dchaib commented Feb 12, 2014

I have tried to put ExternalProject-0.5.0-beta-full.nupkg in

  • the Releases folder
  • the packages folder
  • a new packages\ExternalProject folder

It never worked...

@flagbug
Copy link
Member Author

flagbug commented Feb 12, 2014

Ah yes, I meant The packages folder...don't understand why it doesn't work for you though

@flagbug
Copy link
Member Author

flagbug commented Feb 12, 2014

Try to delete the '-full' from the filename

@dchaib
Copy link

dchaib commented Feb 12, 2014

I just managed to make it work by removing "-full" and also changing "-" into ".". In conclusion, I use this file:
packages\ExternalProject\ExternalProject.0.5.0-beta.nupkg
instead of:
packages\ExternalProject\ExternalProject-0.5.0-beta-full.nupkg.
Thanks for your help!

akrisiun pushed a commit to akrisiun/Squirrel.Windows that referenced this issue Dec 2, 2015
Avoid crashing when the user doesn't supply any shortcutLocations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants