Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Include file in NuGet package to be copied on installed project folder (no output folder) using Visual Studio

$
0
0

Can a file be packed inside a NuGet package, using Visual Studio, in way that it will be copied inside the target project folder?

I added this code in NuGet .csproj

<ItemGroup><Content Include="MyFolder/**/*.*" copyToOutput="true"><Pack>true</Pack><PackagePath>contentFiles/any/any/MyFolder;content/any/any/MyFolder</PackagePath><IncludeInPackage>true</IncludeInPackage><CopyToOutput>true</CopyToOutput><BuildAction>Content</BuildAction><copyToOutput>true</copyToOutput><CopyToOutputDirectory>Always</CopyToOutputDirectory><CopyToPublishDirectory>Always</CopyToPublishDirectory></Content></ItemGroup>

and when I install the package the content of the MyFolder appears as linked and it will be copied only into the output directory. Instead of a link, is there a way to have the copy of the files?

Thanks.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>