File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ CHANGELOG
69
69
70
70
5.4.4.0
71
71
72
+ * New: # 714 Improved AoT support
72
73
* New: # 721 Added support for comma-separated arguments in addition to semicolon
73
74
74
75
5.4.3.0
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public bool GenerateReport(
136
136
// Set log level before validation is performed
137
137
LoggerFactory . VerbosityLevel = reportConfiguration . VerbosityLevel ;
138
138
139
- Logger . Debug ( $ "{ Resources . Executable } : { typeof ( Program ) . Assembly . Location } ") ;
139
+ Logger . Debug ( $ "{ Resources . Executable } : { AppContext . BaseDirectory } ") ;
140
140
Logger . Debug ( $ "{ Resources . WorkingDirectory } : { Directory . GetCurrentDirectory ( ) } ") ;
141
141
142
142
if ( ! new ReportConfigurationValidator ( reportBuilderFactory ) . Validate ( reportConfiguration ) )
@@ -358,7 +358,7 @@ private IConfigurationRoot GetConfiguration()
358
358
try
359
359
{
360
360
var builder = new ConfigurationBuilder ( )
361
- . SetBasePath ( new FileInfo ( this . GetType ( ) . Assembly . Location ) . DirectoryName )
361
+ . SetBasePath ( AppContext . BaseDirectory )
362
362
. AddJsonFile ( "appsettings.json" )
363
363
. AddCommandLine ( args ) ;
364
364
@@ -368,7 +368,7 @@ private IConfigurationRoot GetConfiguration()
368
368
{
369
369
// This can happen when excuted within MSBuild (dotnet msbuild): JSON configuration gets ignored
370
370
var builder = new ConfigurationBuilder ( )
371
- . SetBasePath ( new FileInfo ( this . GetType ( ) . Assembly . Location ) . DirectoryName )
371
+ . SetBasePath ( AppContext . BaseDirectory )
372
372
. AddCommandLine ( args ) ;
373
373
374
374
return builder . Build ( ) ;
Original file line number Diff line number Diff line change @@ -127,8 +127,7 @@ private IAssemblyLoader CreateAssemblyLoader()
127
127
128
128
if ( framework != null && framework . StartsWith ( ".NETCoreApp" ) )
129
129
{
130
- var directory = new FileInfo ( typeof ( ReflectionPluginLoader ) . Assembly . Location ) . Directory . FullName ;
131
- string path = Path . Combine ( directory , "ReportGenerator.DotnetCorePluginLoader.dll" ) ;
130
+ string path = Path . Combine ( AppContext . BaseDirectory , "ReportGenerator.DotnetCorePluginLoader.dll" ) ;
132
131
133
132
if ( ! File . Exists ( path ) )
134
133
{
You can’t perform that action at this time.
0 commit comments