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

There's no way to set platform like Debug|iPhone #2314

Closed
jessejiang0214 opened this issue Sep 23, 2018 · 3 comments · Fixed by #3221
Closed

There's no way to set platform like Debug|iPhone #2314

jessejiang0214 opened this issue Sep 23, 2018 · 3 comments · Fixed by #3221
Assignees
Milestone

Comments

@jessejiang0214
Copy link

What You Are Seeing?

I trying to build the solution with iPhone platform, as the depending library only build with ARM not x86

What is Expected?

I want to call MSBuild setting like this .SetPlatformTarget("iPhone")

What version of Cake are you using?

0.30.0

Are you running on a 32 or 64 bit system?

64

What environment are you running on? Windows? Linux? Mac?

Mac

Are you running on a CI Server? If so, which one?

How Did You Get This To Happen? (Steps to Reproduce)

Check this line
The platform should not be an enum, it should be a string. As in future, maybe more platform add.

@devlead
Copy link
Member

devlead commented Jan 14, 2019

Isn't Debug|iPhone a configuration, if so that's set using the SetConfiguration(MSBuildSettings, string) method.

@gigi81
Copy link

gigi81 commented Feb 11, 2019

I have the same issue. Just to clarify:
"Debug" is the configuration
"iPhone" (or whatever, it can be any arbitrary name) is the platform.

I have this workaround for the moment to make it work:

        MSBuild(solutionPath, settings =>
        {
            settings.SetConfiguration("Debug");
                    
            settings.ArgumentCustomization = args => args.Append("/p:platform=\"iPhone\"");
        });

The problem is that SetPlatformTarget does not allow to set a custom platform but only default ones

Ideally I think we would like to do something like this:

        MSBuild(solutionPath, settings =>
        {
            settings.SetConfiguration("Debug")
                        .SetPlatformTarget("iPhone");
        });

@augustoproiete augustoproiete added this to the v1.x Next Candidate milestone Feb 17, 2021
@augustoproiete augustoproiete self-assigned this Mar 2, 2021
augustoproiete added a commit to augustoproiete-forks/cake-build--cake that referenced this issue Mar 2, 2021
augustoproiete added a commit to augustoproiete-forks/cake-build--cake that referenced this issue Mar 2, 2021
augustoproiete added a commit to augustoproiete-forks/cake-build--cake that referenced this issue Mar 3, 2021
augustoproiete added a commit to augustoproiete-forks/cake-build--cake that referenced this issue Mar 4, 2021
augustoproiete added a commit to augustoproiete-forks/cake-build--cake that referenced this issue Mar 4, 2021
augustoproiete added a commit that referenced this issue Mar 5, 2021
…form-custom-string

GH-2314: Allow setting MSBuild Platform using custom string
@cake-build-bot
Copy link

🎉 This issue has been resolved in version v1.1.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

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

Successfully merging a pull request may close this issue.

5 participants