0

I am creating ResourceDictionarya and i want to create an enum that contain all the target ResourceDictionary Keys, to use in my code, to reduce the typing errors i tried to make a simpe tool.exe and called it in the Pre-build Action, but i am looking for best way to do that, any one help me please. thanks in advance.

1 Answer 1

1

Consider using T4 templates to get the job done. A T4 template can generate a C# file and you can configure your build to regenerate the file every time.

Sign up to request clarification or add additional context in comments.

Comments

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.