Project refuses to build as release
I'm having an issue with richardszalay/mockhttp whereby I can't seem to get it to build the solution as Release.
I have:
* Updated all projects to default to Release if $(Configuration) is
not defined * Explicitly specified the configuration as "Release"
and the solution filename in the "Build" tab of the Appveyor
project
No matter what I do, Appveyor never passes in a Configuration to the msbuild command line and the solution always outputs 'Building solution configuration "Debug|Any CPU".'
Any help would be appreciated.
Cheers,
Richard
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 25 Jun, 2014 12:46 AM
Hi Richard,
It passes
$(configuration)
through environment variable when it's set on Build tab of project settings. If the property is not defined on msbuild command line then msbuild is looking for environment variable with the same name first.2 Posted by richard on 25 Jun, 2014 01:18 AM
Hi Feodor,
That sounds logical, but it doesn't seem to apply in practise:
a) I have explicitly specified a Configuration in Appveyor Settings, so I would expect it to be explicitly passed to msbuild
b) If it only sets an environment variable, it should be picked up by my solution (as you say), but it's not.
The project in question is public. Can you take a look? https://ci.appveyor.com/project/richardszalay/mockhttp
Cheers,
Richard
Support Staff 3 Posted by Feodor Fitsner on 25 Jun, 2014 01:23 AM
I see. You should add "configuration" into appveyor.yml, UI setting is ignored when yml is used.
- Feodor
4 Posted by richard on 25 Jun, 2014 01:28 AM
That would explain a lot. Thanks!
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:45 AM.