Hi @ionut stoica,
Need to publish your app with specific files? If this is the case, there is a CopyToPublishDirectory
attribute for ItemGroup
elements that determines whether to copy the file to the publish directory and can have one of the following values:
- Always,
- PreserveNewest
- Never
Something like:
<ItemGroup>
<None Include="template1.png" CopyToPublishDirectory="Always" />
</ItemGroup>
If possible, please try it and let me know the result, thank you. For more details, just refer to the doc: MSBuild reference for .NET SDK projects - CopyToPublishDirectory.
Best regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.