File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/Tasks/Microsoft.NET.Build.Tasks Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1414using NuGet . Common ;
1515using NuGet . ProjectModel ;
1616using NuGet . Versioning ;
17+ using static System . Net . Mime . MediaTypeNames ;
1718
1819namespace Microsoft . NET . Build . Tasks
1920{
@@ -1165,11 +1166,12 @@ private void WriteDebugItems<T>(
11651166
11661167 asset . Properties . TryGetValue ( MetadataKeys . RelatedProperty , out string relatedExtensions ) ;
11671168
1168- foreach ( string fileExtension in relatedExtensions . Split ( RelatedPropertySeparator ) )
1169+ foreach ( string relatedExtension in relatedExtensions . Split ( RelatedPropertySeparator ) )
11691170 {
1170- if ( fileExtension . ToLower ( ) == extension )
1171+ string ext = Path . GetExtension ( relatedExtension ) ;
1172+ if ( ext . ToLower ( ) == extension )
11711173 {
1172- WriteItem ( Path . ChangeExtension ( itemSpec , extension ) , library ) ;
1174+ WriteItem ( Path . ChangeExtension ( itemSpec , relatedExtension ) , library ) ;
11731175 }
11741176 }
11751177 }
You can’t perform that action at this time.
0 commit comments