File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/GitVersionTask/AssemblyInfoBuilder Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,15 @@ void CreateTempAssemblyInfo(VersionVariables versionVariables)
95
95
}
96
96
97
97
var assemblyInfoBuilder = new AssemblyInfoBuilder ( ) ;
98
- var assemblyInfo = assemblyInfoBuilder . GetAssemblyInfoText ( versionVariables , RootNamespace ) ;
98
+ var assemblyInfo = assemblyInfoBuilder . GetAssemblyInfoText ( versionVariables , RootNamespace ) . Trim ( ) ;
99
99
100
100
// We need to try to read the existing text first if the file exists and see if it's the same
101
101
// This is to avoid writing when there's no differences and causing a rebuild
102
102
try
103
103
{
104
104
if ( File . Exists ( AssemblyInfoTempFilePath ) )
105
105
{
106
- var content = File . ReadAllText ( AssemblyInfoTempFilePath , Encoding . UTF8 ) ;
106
+ var content = File . ReadAllText ( AssemblyInfoTempFilePath , Encoding . UTF8 ) . Trim ( ) ;
107
107
if ( string . Equals ( assemblyInfo , content , StringComparison . Ordinal ) )
108
108
return ; // nothign to do as the file matches what we'd create
109
109
}
You can’t perform that action at this time.
0 commit comments