Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support all msbuild command line switches #197

Open
AnthonyMastrean opened this issue Mar 6, 2012 · 1 comment
Open

Support all msbuild command line switches #197

AnthonyMastrean opened this issue Mar 6, 2012 · 1 comment

Comments

@AnthonyMastrean
Copy link

Support the msbuild command line switches that are not already supported. That includes the ones that are true switches (/nologo) and the ones that have goofy :properties (like /fileloggerparameters).

msbuild.exe /nologo /maxcpucount /fileloggerparameters:verbosity=diagnostic

The guys over on MSpec have a mechanism for collecting switches. I don't know if it's good or idiomatic, but it's a start.

switches = switches.collect { |key, value|
    "/#{key}#{":#{value}" unless value.kind_of? TrueClass or value.kind_of? FalseClass}" if value
}.join " "

I would love the opportunity to add this enhancement and send you a pull request. But I wanted to leave this issue here just in case someone else was faster.

@AnthonyMastrean
Copy link
Author

A switch set like this

switches = {
    'nologo' => :true,
    'maxcpucount' => 4
}

should produce a command line like this

msbuild /nologo /maxcpucount:4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant