-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Squirrel won't release #1084
Comments
Squirrel expects to take in the nuget package (.nupkg) instead of the .nuspec file. The nuspec file is the definition of your nuget package (.nupkg). The lib\net45 folder that you mentioned needs to exist in your nupkg zip - you don't manually create this. Have a look at https://github.com/Squirrel/Squirrel.Windows/blob/master/docs/using/visual-studio-packaging.md. You will need to add the Build Target at the top - replace the MyApp references to the name of your project/assembly. Update your .nuspec file to include this files section. A full nuspec example is in the link above. The target here of
When you build your project in the release configuration, in the bin\release folder you should see a .nupkg file named after your project/assembly. Once you have this you can finally call squirrel using:
|
Hey! Thanks for the reply. I appreciate the help and will be sure to close this issue as soon as I get it going. |
Okay, I had to tweak the target a bit to reference the binaries, but now I'm encountering an issue of which I believe to be related to the output filename
I do see the nupkg coming out as
|
Squirrel enforces SemVer for version numbers. Put simply this means you are allowed to create versions like: But not: In your case I would open the AssemblyInfo.cs in your project and update the AssemblyVersion & AssemblyFileVersion attributes to follow this versioning strategy. ie if you have
change it to
|
Afraid even with those changes, it still looks for 1.0.0.0. |
That page I sent appears to be out of date slightly. I found the fix in #630. <Exec Command="..\packages\squirrel.windows.1.7.6\tools\Squirrel.exe $(OutDir)Pitter.$([System.Version]::Parse(%(myAssemblyInfo.Version)).ToString(3)).nupkg" /> |
We're rolling! thank you so much! |
Well, I'm entirely unsure what I am doing wrong here.
My eyes have been locked onto the documentation all this morning on the wiki and can't seem to get squirrel to comply, or i'm overlooking some minor detail.
Here's the steps I'm doing:
nuget.exe
and executednuget.exe spec
and edited the Package.nuspec that was created to reflect my application:lib/net45
folder in the solution, rather than the project folder as I assumed that's where it should be, as it is unspecified in the wiki.squirrel.exe --releasify .\Package.nuspec
and it created aReleases
folder that is only containing my nuspec and aRELEASES
file.Could someone confirm if this is an issue, or if I'm doing something wrong?
Thanks.
The text was updated successfully, but these errors were encountered: