views:

38

answers:

1

I have some .HQL files in my project that I want to include as strongly-typed resources. The extension is important because I'm using HQLAddin to get intellisense and validation on them.

If I choose "Add Existing File..." from the menu, it gets added as a binary file (mapped as byte[]) and I have to manually edit the resource file, which is not practical, to make it a string.

Is there any other easy way to add the resource files (without editing the resx file), or to make Visual Studio recognize them as text files?

A: 

How about using the ResourceWriter object directly? You could use this to generate the resource entries on startup using some sort of convention; or perhaps write a small custom app to handle this. Not direct integration persay, but maybe a step in the right direction?

DanP
Dan, I don't follow the idea... in any case, I'm specifically aiming for integration and ease of development/maintenance here. What I *could* do is use a T4 template to generate the resource file...
Diego Mijelshon
@Diego - alright, I see...I was thinking more along the lines of constructing the resource on the fly from several *.hql files in a defined folder at startup.
DanP