I'm working on a project with an external API that requires me to manually compile an assembly through PowerShell. I have to manually include each of the API's references as compile options, which could end up being 5 or 6 different references. So I'd like to be able to write all of these compile options on multiple lines for readability, and thought encapsulating these instructions inside a PowerShell script would be viable.
However, PowerShell sees newlines as a separate command, so having
csc /target:library
/reference:xx\xx\xx\xx.dll
Doesn't work. It thinks /reference is supposed to be a cmdlet.
Is this kind of functionality even possible? Any help or advice would be greatly appreciated.