Making a typed resource file public

Hi!

I made this question before during the beta period but I'm coming back just in case something changed after the final release of vs2005.

Is there any way for a typed resources class to be generated as public so that they are accessible by other projects expect the project containing it. The ResXFileCodeGenerator custom tool generates this class as friend.

The only work around I found is to clear the custom tool property from the resource file to executer the resgen.exe manually. Isn't there any other more elegant way




Answer this question

Making a typed resource file public

  • Edwin Jeffcoat

    I think it doesn't work for VB. My assembly only contains resources, so I can turn it to a C# project for the moment.

    Try using your tool and then try to read some resource string in run time. You will get an exception. You should also mark the produced class as partial in order to be extendible.

    It's a great tool and I have been looking for it! Why don't you make some posts here and there so that people discover it!



  • rreinman

    Forget the whole thing!!! I works just fine. It's just that the msi file uploaded is not correct. The one in .rar is fine!


  • Daniel Dosen: XML Commerce

    ... I'have been looking for this tool for quite some time! I finally did it my self and I think it has the same problem with the one you found. There is a namespace issue when using the tool in VB.NET (see comments under the blog post)

    However, I will download it and check it out.

    Thanks!



  • bbonnifield

    Hi,

    I have fixed the tool, it should be working fine in VB.Net projects by now.

    Please let me know if it's still broken. Sorry for the trouble.

    Gokhan
    gokhan (AT_SIGN) altinoren (DOT) com

  • Espen Gätzschmann

  • ferchuz

    Glad that it's solved. I'll remove the 1.0 download to prevent confusion.

  • Ajakati

    Hi Dimitris,

    What I was trying to say was, I have updated the tool last night after seeing your post, so you may want to check that again to see if it's still broken. If it is, I'm really determined to fix this so just tell me and I'll work on it more.

    Thanks for the nice comments.

    Gokhan


  • Rob McCaughey

    I downloaded the msi today. Have you tried it yourself in VB.NET


  • greg aiken

    Yes. I'm using the one downloadable through http://altinoren.com/content/binary/ResXFilePublicCodeGenerator.1.0.0.1.rar.

    Can you mail me a test project of your own, a simple console app maybe I'll make sure it works as expected on your test app.

    Gokhan
    gokhan (AT_SIGN) altinoren (DOT) com


  • Making a typed resource file public