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

GH1247: Change to use AnyCPU to address Mono issue #1266

Merged
merged 1 commit into from
Oct 10, 2016

Conversation

devlead
Copy link
Member

@devlead devlead commented Oct 10, 2016

This fixes #1247, because issue in .NET Core tooling AnyCPU needs to be specified

@devlead
Copy link
Member Author

devlead commented Oct 10, 2016

So @cake-build/team & @Redth
Fetched the AppVeyor artifacts ( https://ci.appveyor.com/api/buildjobs/jc4h8asmrbm4c9je/artifacts/Cake-bin-net45-v0.17.0-PullRequest1266.zip ) all integration tests pass 👍
image

  1. I cloned out this PR to an Ubuntu machine
  2. Unzipped artifact to tools\Cake
  3. Ran mono tools/Cake/Cake.exe ./build.cake --verbosity=Diagnostic --target=Cake.Common.Tools.Cake.CakeAliases
  4. Success

This PR removes the mono framework prefixing in integration tests which is confirmed by the diagnostic log

========================================
Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript
========================================
Executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript
Executing: /home/matkar/monocakescriptissue/cake/tests/integration/tools/Cake/Cake.exe "/home/matkar/monocakescriptissue/cake/tests/integration/resources/Cake.Common/Tools/Cake/build.cake"
Finished executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript

========================================
Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript.Settings.Ok
========================================
Executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript.Settings.Ok
Executing: /home/matkar/monocakescriptissue/cake/tests/integration/tools/Cake/Cake.exe "/home/matkar/monocakescriptissue/cake/tests/integration/resources/Cake.Common/Tools/Cake/test.cake" -ok="yes"
Finished executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript.Settings.Ok

========================================
Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript.Settings.NotOk
========================================
Executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript.Settings.NotOk
Executing: /home/matkar/monocakescriptissue/cake/tests/integration/tools/Cake/Cake.exe "/home/matkar/monocakescriptissue/cake/tests/integration/resources/Cake.Common/Tools/Cake/test.cake" -ok="no"
Finished executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteScript.Settings.NotOk

========================================
Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression
========================================
Executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression
Executing: /home/matkar/monocakescriptissue/cake/tests/integration/tools/Cake/Cake.exe "/home/matkar/monocakescriptissue/cake/tests/integration/c497a5df-be2d-4a91-8373-47d3ce82ccb9.cake"
Finished executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression

========================================
Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression.Settings.Ok
========================================
Executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression.Settings.Ok
Executing: /home/matkar/monocakescriptissue/cake/tests/integration/tools/Cake/Cake.exe "/home/matkar/monocakescriptissue/cake/tests/integration/0d8dbaa3-eded-4baf-ac74-a371ad0742c2.cake" -ok="yes"
Finished executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression.Settings.Ok

========================================
Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression.Settings.NotOk
========================================
Executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression.Settings.NotOk
Executing: /home/matkar/monocakescriptissue/cake/tests/integration/tools/Cake/Cake.exe "/home/matkar/monocakescriptissue/cake/tests/integration/d86579d2-4618-4a53-ac79-c76cd1c7cdd1.cake" -ok="no"
Finished executing task: Cake.Common.Tools.Cake.CakeAliases.CakeExecuteExpression.Settings.NotOk

To confirm fix i downloaded v16.1 artifacts form last integration test ( https://ci.appveyor.com/api/buildjobs/sbpo9nvvjjy2pgmr/artifacts/Cake-bin-net45-v0.16.1.zip ) and did same procedure as above and it as expected failed:
image

So this PR is ready for review.

@@ -1,8 +1,9 @@
{
"version": "0.16.1-*",
"version": "0.16.2-*",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devlead doesn't this change need to happen in a number of files? Not just the top level one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think that'll be patched by build.cake&GitVersion during build. As AppVeyor PR artifacts all v0.17.0 both nuget & assemblies, hopefully hotfix branch will get correct versioning once PR merged :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devlead the reason that I ask is that in the last PR you did for 0.16.1, you updated all the files 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But sure I can address that :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

"buildOptions": {
"emitEntryPoint": true,
"xmlDoc": true,
"platform": "AnyCpu",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think change should be added to all assemblies.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll fix.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

This fixes cake-build#1247, because issue in .NET Core tooling AnyCPU needs to be specified
Copy link
Member

@patriksvensson patriksvensson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@patriksvensson patriksvensson merged commit a4c5586 into cake-build:hotfix/0.16.2 Oct 10, 2016
@gep13 gep13 changed the title Change to use AnyCPU to address Mono issue GH1247: Change to use AnyCPU to address Mono issue Oct 12, 2016
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.

4 participants