File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/BenchmarkDotNet/Toolchains Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 2
2
using System . IO ;
3
3
using System . Text ;
4
4
using BenchmarkDotNet . Code ;
5
+ using BenchmarkDotNet . Extensions ;
5
6
using BenchmarkDotNet . Loggers ;
6
7
using BenchmarkDotNet . Portability ;
7
8
using BenchmarkDotNet . Running ;
@@ -103,6 +104,7 @@ [PublicAPI] protected virtual void GenerateProject(BuildPartition buildPartition
103
104
[ PublicAPI ] protected virtual void GenerateAppConfig ( BuildPartition buildPartition , ArtifactsPaths artifactsPaths )
104
105
{
105
106
string sourcePath = buildPartition . AssemblyLocation + ".config" ;
107
+ artifactsPaths . AppConfigPath . EnsureFolderExists ( ) ;
106
108
107
109
using ( var source = File . Exists ( sourcePath ) ? new StreamReader ( File . OpenRead ( sourcePath ) ) : TextReader . Null )
108
110
using ( var destination = new StreamWriter ( File . Create ( artifactsPaths . AppConfigPath ) , Encoding . UTF8 ) )
You can’t perform that action at this time.
0 commit comments