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

Add explicit parameters to Invoke-MSBuild #1

Open
redoz opened this issue May 25, 2016 · 3 comments
Open

Add explicit parameters to Invoke-MSBuild #1

redoz opened this issue May 25, 2016 · 3 comments

Comments

@redoz
Copy link

redoz commented May 25, 2016

I'd like to see a Target parameter for Invoke-MSBuild added as [string[]] so we don't need to pass it as a string in MsBuildParameters.

I'd also like a Properties parameter of type [hashtable] so we could write things like this:

Invoke-MSBuild -Target Clean,Build -Properties @{Configuration='Debug';OutDir='..\artifacts\'}
@redoz
Copy link
Author

redoz commented May 25, 2016

Bonus points if you use dynamic parameters to populate the ValidateSet attribute for the Target parameter from the MSBuild file. See https://blogs.technet.microsoft.com/heyscriptingguy/2014/03/21/use-dynamic-parameters-to-populate-list-of-printer-names/# for more information.

Edit: Thinking about this some more it might actually be very hard to do right, as Targets can be imported from other files, and if you walk the whole hierarchy you might end up with hundreds of targets, most of which would be irrelevant to the user.

@deadlydog
Copy link
Owner

Migrated from this codeplex issue

@deadlydog
Copy link
Owner

I don't know when I'll have time to get around to this one, but I'm open to accepting pull requests.

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

No branches or pull requests

2 participants