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

Handle different platforms in ProjectFile.GetOutputPath #1269

Merged
merged 4 commits into from
Dec 1, 2015
Merged

Handle different platforms in ProjectFile.GetOutputPath #1269

merged 4 commits into from
Dec 1, 2015

Conversation

allykzam
Copy link
Contributor

Added a buildplatform option to the paket pack command and sprinkled it lovingly throughout the codebase anywhere the compiler complained loudly enough. ProjectFile.GetOutputPath now attempts to evaluate the project file for the OutputPath value given the specified platform. If no platform is specified, runs through a list of platforms until one of them works or the list becomes empty.

Given how ProjectFile.GetPropertyWithDefaults is currently written, these platform values look like they'll be case-sensitive, but this could easily be changed if needed.

cc/ @agross: If you have a few minutes, can you see if this resolves #1262?

Added it everywhere that the compiler complained about, and added a new
`buildplatform` option to the `paket pack` command to supply the new
value.
If String.IsNullOrWhiteSpace returns true for the specified platform,
then all of the platforms specified at the following MSDN article (as of
now) are tested:
https://msdn.microsoft.com/en-us/library/zekwfyz4.aspx

If a platform is specified, that platform is tested.
@forki
Copy link
Member

forki commented Dec 1, 2015

something doesn't compile

Forgot to specify an value when I added the `attempted` param to the
`tryNextPlat` helper function.
@allykzam
Copy link
Contributor Author

allykzam commented Dec 1, 2015

Sorry; added a parameter to my helper function and then forgot to pass it a value.

@forki forki merged commit 1ce770f into fsprojects:master Dec 1, 2015
@forki
Copy link
Member

forki commented Dec 1, 2015

thx

@allykzam allykzam deleted the issue/1262 branch December 1, 2015 14:36
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

Successfully merging this pull request may close these issues.

paket pack fails when there is no build configuration named "Release"
2 participants