I am trying to exit the target in a specific state.
I use
Error Code="0" Condition="'$(SOMETHING)' == '1'"/>
this causes my build to fail from TFS.
Is there a way to successfully displace the MSBuild target?
If you want to exit target success in a certain state, but with an error
Try the following:
<Error Code="0" Condition="$(SOMETHING) == '1'"/>
If you want to exit MSbuild's target success, which means that without raising the error, please refer to the answer from Julien Hoarau How to stop the execution of MSBuild without raising the error?
Source: https://habr.com/ru/post/1615469/More articles:ReferenceError: window not defined when using ExtractTextPlugin in Webpack - javascriptSet selected cell to default in UITableViewController - iosUITabBar focuses and moves view layout on tvOS - tvosInstalling virtualenv virtualenvwrapper using pip on osx 10.11.1 - pythonUnknown character set Os 'cp720', switching to the default character set 'latin1' - javaAurelia: привязать первоначально выбранное значение от параметров, вставленных непосредственно в html - javascriptSource Cards with Gulp, Browserify, Babel, ES6 and React - babeljsГрупповое тестирование HTTP-ответа json в Голанге - jsonGawk regex for sequence selection - regexC ++ is equivalent to $ obj → {$ var} - c ++All Articles