© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
dstr

Copy folder in .csproj

<ItemGroup>
    <Content Include="assets\**" CopyToOutputDirectory="Always" />
</ItemGroup>
<ItemGroup>
    <Content Include="assets\**" CopyToOutputDirectory="Always" />
</ItemGroup>

This results in all the items in the asset folder ending up in
<output dir>/assets/
<output dir>/assets/
whereas I would like them to be copied to
<output dir>/
<output dir>/
.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ Reading file from the folder where .csproj is
C#CC# / help
4y ago
✅ Local csproj
C#CC# / help
11mo ago
Configure .csproj
C#CC# / help
11mo ago
.Csproj problems
C#CC# / help
2y ago