Aha! Got it at last! If you select the cursor in the Resources tab, as I had done before, you get an entirely different set of properties than if you select it through the "Solution Explorer". Dont know why. But anyway, selecting it through the Solution Explorer does give the Build Action property. If I set that, and then you use your code, but omitting the Rootnamespace qualifier, it works! Thanks.