Locked Unable to Add RESX file through Automation

  • Saturday, September 01, 2012 10:37 PM
     
     

    I am having some issues adding a resx file to my C# project through automation.

    I am able to able all sorts of other items just not able to add RESX files. 

    This separate thread shows what I trying to accomplish ...

    http://social.msdn.microsoft.com/Forums/en-CA/vsx/thread/7f5e482a-248a-4f8d-9c17-48ad2d449fd7

    I have tried a number of things all fail.

    Here are the screen shots from my 3 different code attempts, each of which fails.


    Johnny Larue

All Replies

  • Saturday, September 01, 2012 10:37 PM
     
     

    Johnny Larue

  • Saturday, September 01, 2012 10:38 PM
     
     

    Johnny Larue

  • Saturday, September 01, 2012 10:45 PM
     
     

    ... I am able to manually add the resource file without issue.  

    The Solution folder "Resources" does exist as early in logic I ensure it does, else I create it.

    Also, in other are of code, same DSL solution, I am able to add custom T4 templates using similar approach as last screen shot.

    I am perplexed :( as to why I am not able to automatically add a resources file.

    Any thoughts would be greatly appreciated!

    Cheers


    Johnny Larue


    • Edited by Johnny Larue Saturday, September 01, 2012 10:48 PM
    •  
  • Monday, September 03, 2012 7:06 PM
     
     
    I can't add resources file from Template but was able to create the resources file using the resxwriter then once new file is closed I am able to include into active project through addfromfile() however I'd sure like to know why I am unable to add from templates.

    Johnny Larue