I get the error...
"A namespace does not directly contain members such as fields or methods"
frequently when I work on .xoml files. I've had to recreate a workflow about 10 times in the last 2 weeks because they keep getting corrupted somehow. Sometimes I can fix the problem by examining the .xoml file but sometimes I can't figure out what's wrong.
Anyone out there have similar issues? Do you know of a way to prevent having to recreate a workflow from scratch?Friday, July 14, 2006 1:56 PM
I was getting this error when building a project that contained a workflow. When I created the project it was just a c# assembly, not a workflow project. I edited the csproj file and added the following to the first PropertyGroup section:
now everything builds.Wednesday, November 05, 2008 3:35 PM