File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -108,30 +108,5 @@ public void WriteVersionInfoToBuildLog(WriteVersionInfoToBuildLog task)
108108 gitVersionOutputTool . OutputVariables ( versionVariables , configuration . UpdateBuildNumber ) ;
109109 }
110110
111- private void DeleteTempFiles ( )
112- {
113- var tempPath = AssemblyInfoFileHelper . TempPath ;
114- if ( ! this . fileSystem . Directory . Exists ( tempPath ) )
115- {
116- return ;
117- }
118-
119- foreach ( var file in this . fileSystem . Directory . GetFiles ( tempPath ) )
120- {
121- if ( this . fileSystem . GetLastDirectoryWrite ( file ) >= DateTime . Now . AddDays ( - 1 ) . Ticks )
122- {
123- continue ;
124- }
125- try
126- {
127- this . fileSystem . File . Delete ( file ) ;
128- }
129- catch ( UnauthorizedAccessException )
130- {
131- //ignore contention
132- }
133- }
134- }
135-
136111 private GitVersionVariables GitVersionVariables ( GitVersionTaskBase task ) => serializer . FromFile ( task . VersionFile ) ;
137112}
You can’t perform that action at this time.
0 commit comments