File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Tasks/Microsoft.NET.Build.Tasks Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ protected override void ExecuteCore()
6969 string supportedRuntimeIdentifiers = frameworkRef == null ? null : frameworkRef . GetMetadata ( "RuntimePackRuntimeIdentifiers" ) ;
7070
7171 // Get information on the runtime package used for the current target
72- ITaskItem frameworkPack = RuntimePacks . Where ( pack => pack . ItemSpec . EndsWith ( ".Microsoft.NETCore.App" , StringComparison . InvariantCultureIgnoreCase ) ) . SingleOrDefault ( ) ;
72+ ITaskItem frameworkPack = RuntimePacks . Where ( pack =>
73+ pack . GetMetadata ( MetadataKeys . FrameworkName ) . Equals ( "Microsoft.NETCore.App" , StringComparison . OrdinalIgnoreCase ) )
74+ . SingleOrDefault ( ) ;
7375 _runtimeIdentifier = frameworkPack == null ? null : frameworkPack . GetMetadata ( MetadataKeys . RuntimeIdentifier ) ;
7476 _packagePath = frameworkPack == null ? null : frameworkPack . GetMetadata ( MetadataKeys . PackageDirectory ) ;
7577
You can’t perform that action at this time.
0 commit comments