Make --{no-,}{static,shared} work with msbuild