I'm working on a C# project that has Content files. In MonoDevelop, I can set the type to Content
and the Build Action
to Copy if Newer
. I can do something similar in Visual Studio.
How do I do this with Visual Studio Code? I'm not opening a solution file (I'm opening a directory), and I don't see anything in tasks.json
or in VSCode that I can use to configure this.
In addition to ctrl + shift + v you can use ctrl + shift + c to Merge-Copy. And ctrl + shift + x to Merge-Cut. Select clipboard to paste ( ctrl + alt + v ). Paste and cycle through clipboard items ( ctrl + shift + v ).
Copy to Output Directory is a property for files within a Visual Studio project. Select a Windows Form in a project, find Copy to Output Directory and note Copy to Output Directory is set to [Do not copy].
Updating the .csproj file with the below line of code helped me
<Content Include="FolderPath/*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
Try to manipulate csproj:
<ItemGroup>
<None Update="FILE_PATH">
<CopyToOutputDirectory>ACTION_TYPE</CopyToOutputDirectory>
</None>
</ItemGroup>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With