From 8bc74cc98a4e77fa7e9328ef5c37569a2b1e400c Mon Sep 17 00:00:00 2001 From: mkoertgen Date: Sun, 30 Aug 2015 08:25:48 +0200 Subject: [PATCH] #2: fixed installation by conditionally importing non-existing solution.targets better separated properties with corresponding targets --- OneClickBuild/build/OneClickBuild.targets | 78 ++++++++++++++--------- 1 file changed, 48 insertions(+), 30 deletions(-) diff --git a/OneClickBuild/build/OneClickBuild.targets b/OneClickBuild/build/OneClickBuild.targets index fd0170b..3092692 100644 --- a/OneClickBuild/build/OneClickBuild.targets +++ b/OneClickBuild/build/OneClickBuild.targets @@ -17,46 +17,30 @@ 0 - - $(OutDir)$(AssemblyName).exe - $(OutDir)$(AssemblyName).dll - $(SolutionDir)testresults\ - $(TestResultsDir)$(ProjectName).Tests.xml - $(SolutionDir)packages\NUnit.*\tools\nunit-console-x86.exe - $(SolutionDir)packages\NUnit.*\tools\nunit-console.exe - +[$(AssemblyName)]* -[*]*Tests -[FluentAssertions]* - $(TestResultsDir)$(ProjectName).Coverage.xml - - - *DebuggerNonUserCode*;*.GeneratedCode*;*.ExcludeFromCodeCoverage* - true - $(TestResultsDir)coverage\$(ProjectName) - - $(ProjectDir)Package.nuspec - https://www.nuget.org - - - - Warning - - Warn - - Error - - + + + + Properties\SolutionInfo.cs + + - + + + $(ProjectDir)Package.nuspec + https://www.nuget.org + + $(GitVersion_MajorMinorPatch).$(Build) $(GitVersion_Sha) - + @@ -72,10 +56,23 @@ Command="nuget push $(PackageFile) -Source $(NugetSourceToDeploy)" /> + + + $(OutDir)$(AssemblyName).exe + $(OutDir)$(AssemblyName).dll + $(SolutionDir)testresults\ + $(TestResultsDir)$(ProjectName).Tests.xml + $(SolutionDir)packages\NUnit.*\tools\nunit-console-x86.exe + $(SolutionDir)packages\NUnit.*\tools\nunit-console.exe + + + + Warning /nologo /nodots /noshadow /framework=net-4.0 /domain=single /xml:$(TestResults) /trace=$(TestVerbosity) + + + +[$(AssemblyName)]* -[*]*Tests -[FluentAssertions]* + $(TestResultsDir)$(ProjectName).Coverage.xml + + + *DebuggerNonUserCode*;*.GeneratedCode*;*.ExcludeFromCodeCoverage* + true + $(TestResultsDir)coverage\$(ProjectName) + + Warn + + Error + + @@ -143,5 +154,12 @@ - + + + OneClickBuild has not yet been initialized for this solution. Use ... + + + + +