$configuration from powershel script block not being parsed
Probably something dumb but hoping someone can help. I cannot get the reference to $configuration below to work I have tried
$(configuration) $(CONFIGURATION) $CONFIGURATION
I am no expert on Powershell interpolation so any help...thanks
configuration: Release
before_build:
- ps: Import-Module .\tools\psake.psm1
build_script:
- ps: Invoke-psake .\default.ps1 Compile -parameters @{}
after_build:
- ps: Push-AppveyorArtifact src\myproject\obj\$configuration\Package\myproject.zip
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
Support Staff 1 Posted by Feodor Fitsner on 04 Mar, 2015 05:44 PM
Should be:
1 - double quotes to interpolate string and 2 -
$env:
to access environment variable.2 Posted by terrencebenade on 04 Mar, 2015 08:59 PM
Firstly, Feodor world class service as usual thank you. Apologies for the daft essentially powershell question.
I took my lead from http://www.appveyor.com/docs/packaging-artifacts which states
given
will give you artifacts I assumed the access method was the same. Might be an opportunity to tweak the documentation or the way my brain is wired up, either will suffice ;)
Support Staff 3 Posted by Feodor Fitsner on 04 Mar, 2015 09:02 PM
Ah, that style is MSBuild-like one.
terrencebenade closed this discussion on 04 Mar, 2015 09:48 PM.