Skip to content

Commit

Permalink
Change to use AnyCPU to address mono issue
Browse files Browse the repository at this point in the history
This fixes #1247, because issue in .NET Core tooling AnyCPU needs to be specified
  • Loading branch information
devlead committed Oct 10, 2016
1 parent 3a8ac68 commit a4185cf
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/Cake.Common.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"buildOptions": {
"platform": "AnyCpu",
"additionalArguments": [
"/ruleset:../Test.ruleset",
"/additionalfile:../stylecop.json"
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.Common/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"description": "Provides aliases (extension methods on Cake context) that support CI, build, unit tests, zip, signing, etc. for Cake.",
"copyright": "Copyright (c) .NET Foundation and contributors",
"authors": [
Expand Down Expand Up @@ -31,6 +31,7 @@
},
"buildOptions": {
"xmlDoc": true,
"platform": "AnyCpu",
"additionalArguments": [
"/ruleset:../Cake.ruleset",
"/additionalfile:../stylecop.json"
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.Core.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"dependencies": {
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Cake.Core": {
Expand All @@ -24,6 +24,7 @@
}
},
"buildOptions": {
"platform": "AnyCpu",
"embed": [
"Unit/Scripting/CodeGen/Expected/Methods/*",
"Unit/Scripting/CodeGen/Expected/Properties/*"
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.Core/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"description": "The Cake core library.",
"copyright": "Copyright (c) .NET Foundation and contributors",
"authors": [
Expand Down Expand Up @@ -28,6 +28,7 @@
},
"buildOptions": {
"xmlDoc": true,
"platform": "AnyCpu",
"additionalArguments": [
"/ruleset:../Cake.ruleset",
"/additionalfile:../stylecop.json"
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.NuGet.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"buildOptions": {
"platform": "AnyCpu",
"additionalArguments": [
"/ruleset:../Test.ruleset",
"/additionalfile:../stylecop.json"
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.NuGet/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"dependencies": {
"Cake.Core": {
"target": "project"
Expand All @@ -11,6 +11,7 @@
},
"buildOptions": {
"xmlDoc": true,
"platform": "AnyCpu",
"additionalArguments": [
"/ruleset:../Cake.ruleset",
"/additionalfile:../stylecop.json"
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.Testing.Xunit/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"configurations": {
"Release": {
"buildOptions": {
Expand All @@ -8,6 +8,7 @@
}
},
"buildOptions": {
"platform": "AnyCpu",
"compile": {
"includeFiles": [
"../SolutionInfo.cs"
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.Testing/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"description": "Contains testing utilities for Cake.",
"copyright": "Copyright (c) .NET Foundation and contributors",
"authors": [
Expand All @@ -22,6 +22,7 @@
},
"buildOptions": {
"xmlDoc": true,
"platform": "AnyCpu",
"additionalArguments": [
"/ruleset:../Cake.ruleset",
"/additionalfile:../stylecop.json"
Expand Down
3 changes: 2 additions & 1 deletion src/Cake.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"dependencies": {
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Cake": {
Expand Down Expand Up @@ -27,6 +27,7 @@
}
},
"buildOptions": {
"platform": "AnyCpu",
"embed": [
"Data/MonoScriptProcessor/ArrayInitializer/*",
"Data/MonoScriptProcessor/Blocks/*",
Expand Down
3 changes: 2 additions & 1 deletion src/Cake/project.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"version": "0.16.1-*",
"version": "0.17.0-*",
"buildOptions": {
"emitEntryPoint": true,
"xmlDoc": true,
"platform": "AnyCpu",
"additionalArguments": [
"/ruleset:../Cake.ruleset",
"/additionalfile:../stylecop.json"
Expand Down
5 changes: 0 additions & 5 deletions tests/integration/Cake.Common/Tools/Cake/CakeAliases.cake
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,5 @@ public static CakeSettings GetCakeSettings(ICakeContext context, IDictionary<str
settings.ArgumentCustomization = args => "./tools/Cake.CoreCLR/Cake.dll " + args.Render();

}
else if (context.IsRunningOnUnix())
{
settings.ToolPath = FindToolInPath(context, "mono");
settings.ArgumentCustomization = args => "./tools/Cake/Cake.exe " + args.Render();
}
return settings;
}

0 comments on commit a4185cf

Please sign in to comment.