I have a project where I need to dynamically create .resx files based on other input files that are coming from somewhere else. These created .resx files then need to be compiled and embedded in the resulting .NET assembly.
What I have now in my project file (a .csproj, but that is not relevant I believe):
<Target Name="CreateResx"
BeforeTargets="BeforeBuild"
Inputs="<list of input files>"
Outputs="<list of created .resx files>">
<CustomResxCreationTask />
</Task>
In this configuration, the resx files are correctly generated at the beginning of the build process. However, they are not compiled and embedded in the final assembly. I can see that when I try to read a resource from these resource files and the resource is not found.
Do I need to execute my resource generation task before some other target, or is it just not possible?