Add option for build properties

Ken Sykora's Avatar

Ken Sykora

26 Nov, 2014 09:07 PM

Currently if I want to pass custom properties to the main build event, I need to use a custom script (msbuild MySolution.sln /t:Build /p:RunOctoPack=true) It would be great if there was a way to set these as a set of properties in the appveyor.yml file instead!

I love this service btw, I've been able to get my project building very quickly and easily.

  1. Support Staff 1 Posted by Feodor Fitsner on 26 Nov, 2014 11:17 PM

    Feodor Fitsner's Avatar

    You can try setting those properties through environment variables with the same name.

    -Feodor

  2. 2 Posted by Ken Sykora on 01 Dec, 2014 02:55 PM

    Ken Sykora's Avatar

    Yeah, it seems like this is what I was looking for. I hadn't realized environment variables can be used as properties in MSBuild. It might be worth adding that to the documentation... or maybe not since it's an MSBuild thing that I just didn't know about.

    Thanks for the help!

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 AM.

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