File tree 2 files changed +11
-5
lines changed
source/Nuke.Common/ProjectModel
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
7
7
## [ vNext]
8
8
9
+ ## [ 0.12.4] / 2018-12-02
10
+ - Fixed ` SolutionAttribute ` to handle empty configuration file
11
+
9
12
## [ 0.12.3] / 2018-11-29
10
13
- Fixed ` EnvironmentInfo.Variables ` not to be cached
11
14
- Fixed ` Glob ` package reference in legacy template
@@ -216,7 +219,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
216
219
- Added CLT tasks for Git
217
220
- Fixed background color in console output
218
221
219
- [ vNext ] : https://github.com/nuke-build/nuke/compare/0.12.3...HEAD
222
+ [ vNext ] : https://github.com/nuke-build/nuke/compare/0.12.4...HEAD
223
+ [ 0.12.4 ] : https://github.com/nuke-build/nuke/compare/0.12.3...0.12.4
220
224
[ 0.12.3 ] : https://github.com/nuke-build/nuke/compare/0.12.2...0.12.3
221
225
[ 0.12.2 ] : https://github.com/nuke-build/nuke/compare/0.12.1...0.12.2
222
226
[ 0.12.1 ] : https://github.com/nuke-build/nuke/compare/0.12.0...0.12.1
Original file line number Diff line number Diff line change @@ -84,13 +84,15 @@ private string GetSolutionFile(string memberName)
84
84
private string GetSolutionFileFromConfigurationFile ( )
85
85
{
86
86
var nukeFile = Path . Combine ( NukeBuild . RootDirectory , NukeBuild . ConfigurationFileName ) ;
87
- ControlFlow . Assert ( File . Exists ( nukeFile ) , $ "File.Exists({ NukeBuild . ConfigurationFileName } )") ;
87
+ ControlFlow . Assert ( File . Exists ( nukeFile ) , $ "File.Exists({ nukeFile } )") ;
88
88
89
- var solutionFileRelative = File . ReadAllLines ( nukeFile ) [ 0 ] ;
90
- ControlFlow . Assert ( ! solutionFileRelative . Contains ( value : '\\ ' ) , $ "{ NukeBuild . ConfigurationFileName } must use unix-styled separators") ;
89
+ var solutionFileRelative = File . ReadAllLines ( nukeFile ) . ElementAtOrDefault ( 0 ) ;
90
+ ControlFlow . Assert ( solutionFileRelative != null && ! solutionFileRelative . Contains ( value : '\\ ' ) ,
91
+ $ "First line of { NukeBuild . ConfigurationFileName } must provide solution path using UNIX separators") ;
91
92
92
93
var solutionFile = Path . GetFullPath ( Path . Combine ( NukeBuild . RootDirectory , solutionFileRelative ) ) ;
93
- ControlFlow . Assert ( File . Exists ( solutionFile ) , $ "Solution file '{ solutionFile } ' does not exist.") ;
94
+ ControlFlow . Assert ( File . Exists ( solutionFile ) ,
95
+ $ "Solution file '{ solutionFile } ' provided via { NukeBuild . CompletionFileName } does not exist.") ;
94
96
95
97
return ( PathConstruction . AbsolutePath ) solutionFile ;
96
98
}
You can’t perform that action at this time.
0 commit comments