From 573d0ac68ff6b4afcab9654bedc6efd136717f5b Mon Sep 17 00:00:00 2001 From: Martijn van Dijk Date: Mon, 2 Apr 2018 14:02:51 +0200 Subject: [PATCH] Improve a couple of build and project files (#2752) * Improve a couple of build and project files * Move clone depth * Try to set it inside * Make clone size bigger * Remove clone depth --- Directory.build.props | 7 ++++++- .../V7.AppCompat/MvxAppCompatViewPresenter.cs | 2 +- MvvmCross.Forms/MvvmCross.Forms.csproj | 8 +------- Projects/Directory.build.props | 10 ++++++++-- .../Playground.Forms.Droid.csproj | 3 --- .../Playground.Forms.UI/Playground.Forms.UI.csproj | 6 +----- .../Playground.Forms.Uwp/Playground.Forms.Uwp.csproj | 3 --- .../Playground.Forms.Wpf/Playground.Forms.Wpf.csproj | 5 ----- .../Playground.Forms.iOS/Playground.Forms.iOS.csproj | 5 ----- appveyor.yml | 4 ++++ 10 files changed, 21 insertions(+), 32 deletions(-) diff --git a/Directory.build.props b/Directory.build.props index 5b3b011eb..1753b3704 100644 --- a/Directory.build.props +++ b/Directory.build.props @@ -24,14 +24,19 @@ full $(MSBuildProjectName.Contains('UnitTest')) $(MSBuildProjectName.Contains('MvvmCross')) + $(MSBuildProjectName.Contains('.Forms')) - + + + + + diff --git a/MvvmCross.Android.Support/V7.AppCompat/MvxAppCompatViewPresenter.cs b/MvvmCross.Android.Support/V7.AppCompat/MvxAppCompatViewPresenter.cs index 534f5652a..bc8287bc6 100644 --- a/MvvmCross.Android.Support/V7.AppCompat/MvxAppCompatViewPresenter.cs +++ b/MvvmCross.Android.Support/V7.AppCompat/MvxAppCompatViewPresenter.cs @@ -568,7 +568,7 @@ namespace MvvmCross.Droid.Support.V7.AppCompat protected virtual Fragment FindFragmentInChildren(string fragmentName, FragmentManager fragManager) { - if (fragManager?.Fragments != null && !fragManager.Fragments.Any()) return null; + if (!(fragManager?.Fragments?.Any() ?? false)) return null; foreach (var fragment in fragManager.Fragments) { diff --git a/MvvmCross.Forms/MvvmCross.Forms.csproj b/MvvmCross.Forms/MvvmCross.Forms.csproj index cd1fe0651..e25fcb756 100644 --- a/MvvmCross.Forms/MvvmCross.Forms.csproj +++ b/MvvmCross.Forms/MvvmCross.Forms.csproj @@ -79,13 +79,7 @@ - - - - 2.5.0.280555 - - - + diff --git a/Projects/Directory.build.props b/Projects/Directory.build.props index 625568765..9a907c9cf 100644 --- a/Projects/Directory.build.props +++ b/Projects/Directory.build.props @@ -5,11 +5,17 @@ MvvmCross;slodge;cheesebaron;martijn00 $(AssemblyName) ($(TargetFramework)) en - + 6.0.0 + latest - $(NoWarn);1591;1701;1702;1705 + $(NoWarn);1591;1701;1702;1705;VSX1000 AnyCPU full + $(MSBuildProjectName.Contains('.Forms')) + + + + \ No newline at end of file diff --git a/Projects/Playground/Playground.Forms.Droid/Playground.Forms.Droid.csproj b/Projects/Playground/Playground.Forms.Droid/Playground.Forms.Droid.csproj index 21bcccd86..fa22aa32b 100644 --- a/Projects/Playground/Playground.Forms.Droid/Playground.Forms.Droid.csproj +++ b/Projects/Playground/Playground.Forms.Droid/Playground.Forms.Droid.csproj @@ -157,9 +157,6 @@ 0.4.9 - - 2.5.0.280555 - diff --git a/Projects/Playground/Playground.Forms.UI/Playground.Forms.UI.csproj b/Projects/Playground/Playground.Forms.UI/Playground.Forms.UI.csproj index e6a38b514..58e93245c 100644 --- a/Projects/Playground/Playground.Forms.UI/Playground.Forms.UI.csproj +++ b/Projects/Playground/Playground.Forms.UI/Playground.Forms.UI.csproj @@ -3,11 +3,7 @@ netstandard2.0 - - - - - + diff --git a/Projects/Playground/Playground.Forms.Uwp/Playground.Forms.Uwp.csproj b/Projects/Playground/Playground.Forms.Uwp/Playground.Forms.Uwp.csproj index 52c10147a..4b7e55627 100644 --- a/Projects/Playground/Playground.Forms.Uwp/Playground.Forms.Uwp.csproj +++ b/Projects/Playground/Playground.Forms.Uwp/Playground.Forms.Uwp.csproj @@ -142,9 +142,6 @@ 2.0.1 - - 2.5.0.280555 - diff --git a/Projects/Playground/Playground.Forms.Wpf/Playground.Forms.Wpf.csproj b/Projects/Playground/Playground.Forms.Wpf/Playground.Forms.Wpf.csproj index 7800ecf34..ddb28a6f0 100644 --- a/Projects/Playground/Playground.Forms.Wpf/Playground.Forms.Wpf.csproj +++ b/Projects/Playground/Playground.Forms.Wpf/Playground.Forms.Wpf.csproj @@ -119,11 +119,6 @@ Playground.Forms.UI - - - 2.5.0.280555 - - ResXFileCodeGenerator diff --git a/Projects/Playground/Playground.Forms.iOS/Playground.Forms.iOS.csproj b/Projects/Playground/Playground.Forms.iOS/Playground.Forms.iOS.csproj index 8ea34bbef..07726f3c6 100644 --- a/Projects/Playground/Playground.Forms.iOS/Playground.Forms.iOS.csproj +++ b/Projects/Playground/Playground.Forms.iOS/Playground.Forms.iOS.csproj @@ -156,10 +156,5 @@ - - - 2.5.0.280555 - - \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index b1f1fe68d..133d3c480 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,6 +5,8 @@ - /release\/.*/ version: 1.0.{build} image: Previous Visual Studio 2017 + before_build: + - cmd: dotnet --info environment: NUGET_SOURCE: https://www.nuget.org/api/v2/package NUGET_APIKEY: @@ -20,6 +22,8 @@ - develop version: 1.0.{build} image: Previous Visual Studio 2017 + before_build: + - cmd: dotnet --info environment: NUGET_SOURCE: https://www.myget.org/F/mvvmcross/api/v2/package NUGET_APIKEY: