I have a Microsoft.NET.Sdk.Web project and in the solution folder I have a Lib folder with subfolders which in turn have files, for example:
Lib
sv
myfile.dll
de
myfile.dll
I added the following to the csproj:
<ItemGroup>
<Content Include="Lib\sv\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="Lib\de\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
But the above is placing the subfolders and their files within the Lib folder in the output folder.
I need to have the following:
(OutputPath)
sv
myfile.dll
de
myfile.dll
How can I do this?