I'm going to deploy my application cross-platform (my secret), but how am I able to programmitically add a reference by code rather doing it from the IDE?

Thanks in advance,