Question

I have several forms with this strange behaviour.

For instance I have this form generated code.

namespace Sogyo.InHolland.SeriousGameFactory.GameCreator
{
    partial class FormAvatarResourceSetEditor
{
this.bindingSourceAvatarResourceSets.DataSource = typeof(SeriousGameFactory.Framework.ImageResource);
}
}

In this case when i press build the compiler complains that it does not recognize "SeriousGameFactory.Framework.ImageResource". (Intellisense does not seem to be able to find the Framework namespace within the SeriousGameFactory Namespace)

I then change this manually to the following code

using SeriousGameFactory.Framework;
namespace Sogyo.InHolland.SeriousGameFactory.GameCreator
{
    partial class FormAvatarResourceSetEditor
{
this.bindingSourceAvatarResourceSets.DataSource = typeof(ImageResource);
}
}

Now the project builds. (strange !??) However when i open the form and work with it, visual studio autogenerates the following code.

using SeriousGameFactory.Framework;
namespace Sogyo.InHolland.SeriousGameFactory.GameCreator
{
    partial class FormAvatarResourceSetEditor
{
this.bindingSourceAvatarResourceSets.DataSource = typeof(SeriousGameFactory.Framework.ImageResource);
}
}

And again it does not compile. (Intellisense does not seem to be able to find the Framework namespace within the SeriousGameFactory Namespace)

Does anybody has any thoughts on what could cause this.

Was it helpful?

Solution

Have you got a conflicting type/property/method/control called SeriousGameFactory at some level? That would do it...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top