File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -517,6 +517,10 @@ export function findNetCoreAppTargetFramework(project: MSBuildProject): TargetFr
517517 return project . TargetFrameworks . find ( tf => tf . ShortName . startsWith ( 'netcoreapp' ) ) ;
518518}
519519
520+ export function findNetStandardTargetFramework ( project : MSBuildProject ) : TargetFramework {
521+ return project . TargetFrameworks . find ( tf => tf . ShortName . startsWith ( 'netstandard' ) ) ;
522+ }
523+
520524export interface ProjectDescriptor {
521525 Name : string ;
522526 Path : string ;
@@ -533,7 +537,8 @@ export function getDotNetCoreProjectDescriptors(info: WorkspaceInformationRespon
533537
534538 if ( info . MsBuild && info . MsBuild . Projects . length > 0 ) {
535539 for ( let project of info . MsBuild . Projects ) {
536- if ( findNetCoreAppTargetFramework ( project ) !== undefined ) {
540+ if ( findNetCoreAppTargetFramework ( project ) !== undefined ||
541+ findNetStandardTargetFramework ( project ) !== undefined ) {
537542 result . push ( { Name : path . basename ( project . Path ) , Path : project . Path } ) ;
538543 }
539544 }
You can’t perform that action at this time.
0 commit comments