Skip to content

Commit

Permalink
Fix iOS cake Build failed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jessejiang0214 committed Oct 25, 2017
1 parent 98b638e commit 9030cd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
4 changes: 3 additions & 1 deletion SlideOverKit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlideOverKit.iOS", "SlideOv
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget", "nuget", "{BE33D7F8-D082-448B-872A-DA157BD9CA56}"
ProjectSection(SolutionItems) = preProject
build.cake = build.cake
SlideOverKit.nuspec = SlideOverKit.nuspec
EndProjectSection
EndProject
Expand Down Expand Up @@ -376,7 +377,8 @@ Global
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.Debug|x64.Build.0 = Debug|x64
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.Debug|x86.ActiveCfg = Debug|x86
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.Debug|x86.Build.0 = Debug|x86
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.NugetBuild|Any CPU.ActiveCfg = Debug|Any CPU
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.NugetBuild|Any CPU.ActiveCfg = Release|Any CPU
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.NugetBuild|Any CPU.Build.0 = Release|Any CPU
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.NugetBuild|ARM.ActiveCfg = Debug|ARM
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.NugetBuild|ARM.Build.0 = Debug|ARM
{3E4B5E8F-48D1-45B4-BE33-0142DA375E2C}.NugetBuild|iPhone.ActiveCfg = Debug|Any CPU
Expand Down
16 changes: 4 additions & 12 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,10 @@ Task("Build")
.IsDependentOn("Restore-NuGet-Packages")
.Does(() =>
{
if(IsRunningOnWindows())
{
// Use MSBuild
MSBuild(solutionFilePath, settings =>
settings.SetConfiguration(configuration));
}
else
{
// Use XBuild
XBuild(solutionFilePath, settings =>
settings.SetConfiguration(configuration));
}
MSBuild (solutionFilePath, c => {
c.Configuration = configuration;
c.MSBuildPlatform = Cake.Common.Tools.MSBuild.MSBuildPlatform.x86;
});
});

Task("NuGet")
Expand Down

0 comments on commit 9030cd8

Please sign in to comment.