Reputation: 3366
I have a console application with a folder. This folder contains files that are added to it on a daily basis. In order for this application to be executed at a later date these files need to be marked as embedded resources. As this application is packaged up.
Is there anyway to have all items in a folder marked as an embedded resource? Either automatically or programatically? Basically, I just want to make sure if an item is added to this folder it is automatically included as an embedded resource.
I know how to right click, properties, set a file as an embedded resource, but others tend to forget to do this which causes research back down the chain etc.
Upvotes: 0
Views: 65
Reputation: 9270
You should follow the instructions in this question.
Basically, you want to edit the .csproj
file manually to do something like this:
<ItemGroup>
<Content Include="myfolder**\*.dll**" />
</ItemGroup>
So you'll want to use wildcards (*
) to match the folder name.
Upvotes: 1