Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

command line switches multiple times

$
0
0

I have built a custom element that uses a custom compiler. Now, if I have something like a StringProperty for my task, then I can add a "Switch" value... let's say 'Switch="/myOption [value]"' ... this works fine. Now, what if I want to allow multiple values here? E.g. value is "option1,option2" ... is there a way to directly tell MSBuild to generate a 'Switch' that looks like this: "/myOption option1 /myOption option2" ... or is that impossible? (I'm doing it with a script currently, but I was wondering if there's an easier way)

Rudolf


Viewing all articles
Browse latest Browse all 2763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>