0

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?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.