After Build step runs after nuget
I am using the publish_nuget setting to automatically create my nuget packages. I also have an after_build command. That command runs after the nuget pack commands. I would think that after_build would happen after the solution is compiled and before the nuget pack commands are run. I am trying to run the GitLink command before the nuget packages get built. Is there some way to run a command before the nuget packages get built and after the project is compiled without having to run all the build commands manually?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by bniemyjski on 18 Jan, 2016 04:02 PM
I also need this!
Support Staff 2 Posted by Feodor Fitsner on 18 Jan, 2016 08:15 PM
Hi guys,
There is no hook between building the solution and packaging nuget package, but you can just copy nuget package command and put it into
aftre_build
along with GitLink command. Then configure artifact to collect nuget package: http://www.appveyor.com/docs/packaging-artifacts3 Posted by Eric J. Smith on 26 Jan, 2016 03:50 PM
Is there any chance that you could add support for this? You may even want to add 1st class support for GitLink. Being able to just say "publish_nuget" is really nice especially when we have like 10 nuget packages.
4 Posted by bniemyjski on 26 Jan, 2016 04:49 PM
We could really use this. It would really make GitLink support a lot easier.. Especially since we are having a ton of issues with deployments failing right now due to symbolsource (I thought you added the support to ignore symbols and to keep publishing nuget pakages)
Support Staff 5 Posted by Feodor Fitsner on 26 Jan, 2016 05:09 PM
So, something like
before_package
step running after the project is built and before nuget or WAP are packaged would solve your needs? We won't be doing seamless integration with GitLink for now, so you have to provide your own command.Regarding SymbolSource (how is this related to GitLink?) - looks like they changed publishing endpoint while AppVeyor and nuget.exe use old one: http://tripleemcoder.com/2015/10/04/moving-to-the-new-symbolsource-.... Try specifying
https://nuget.smbsrc.net
as "Symbol server URL" on nuget deployment settings.6 Posted by Eric J. Smith on 26 Jan, 2016 06:01 PM
Yes! before_package would be a huge help.
7 Posted by Eric J. Smith on 27 Jan, 2016 09:38 PM
Do you think you would be willing to add the before_package step?
Support Staff 8 Posted by Feodor Fitsner on 27 Jan, 2016 09:39 PM
Yeah, will add it in the next update coming this week.
-Feodor
9 Posted by Eric J. Smith on 27 Jan, 2016 09:39 PM
Awesome! Thank you!
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:03 AM.