When a NuGet package is created with content files in a nested directory structure, the (manifest) resource names of the embedded resources that are created for these files do not contain the relative directory path (with slashes converted to dots).
Steps to reproduce:
Create a NuGet package with the following content:
contentFiles
any
any
sub
myResource.txt
In the .nuspec for this package, add the following fragment to the metadata element:
When a NuGet package is created with content files in a nested directory structure, the (manifest) resource names of the embedded resources that are created for these files do not contain the relative directory path (with slashes converted to dots).
Steps to reproduce:
Expected result:
The myResource.txt file is embedded in the ConsoleApp1.exe assembly with the name 'ConsoleApp1.sub.myResource.txt'.
Actual result:
The myResource.txt file is embedded in the ConsoleApp1.exe assembly with the name 'ConsoleApp1.myResource.txt'.
NuGet product used: VS UI (15.8.1) OS version: Windows 7 Build 7601
Moved from: https://github.com/NuGet/Home/issues/7255
cc @drieseng @tmeschter