File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -334,9 +334,14 @@ private void RemoveNugetPackageReference(string packagePrefix, ISet<string> dllP
334
334
}
335
335
}
336
336
337
+ private bool IsAspNetCoreDetected ( )
338
+ {
339
+ return fileContent . IsNewProjectStructureUsed && fileContent . UseAspNetCoreDlls ;
340
+ }
341
+
337
342
private void AddAspNetCoreFrameworkDlls ( ISet < string > dllPaths , ISet < string > frameworkLocations )
338
343
{
339
- if ( ! fileContent . IsNewProjectStructureUsed || ! fileContent . UseAspNetCoreDlls )
344
+ if ( ! IsAspNetCoreDetected ( ) )
340
345
{
341
346
return ;
342
347
}
@@ -445,7 +450,7 @@ private void GenerateSourceFilesFromWebViews(List<FileInfo> allFiles)
445
450
446
451
logger . LogInfo ( $ "Found { views . Length } cshtml and razor files.") ;
447
452
448
- if ( ! fileContent . IsNewProjectStructureUsed )
453
+ if ( ! IsAspNetCoreDetected ( ) )
449
454
{
450
455
logger . LogInfo ( "Generating source files from cshtml files is only supported for new (SDK-style) project files" ) ;
451
456
return ;
You can’t perform that action at this time.
0 commit comments