'DesignGeneratedAttribute' is ambiguous in the namespace 'Microsoft.VisualBasic.CompilerServices'.

  • Thread starter Thread starter bennett.sean
  • Start date Start date
B

bennett.sean

This is in a Visual Studio 2005 project.

I don't know what caused this, but my app is unable to compile now.

I get 5 compiler errors that mention "...ambious in the namespace..."

Example:

'DesignGeneratedAttribute' is ambiguous in the namespace
'Microsoft.VisualBasic.CompilerServices'.

Example line of code it refers to:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class DialogLoginInformation


All the compiler errors point to designer generated code, hence I am
hesitant to fiddle with it

The last thing I did before theses errors came up was remove some
references to some unused libraries.

Anyone know how to fix this?
 
A reference to "Microsoft.VisualBasic" got added to the project and was
causing the "ambiguous" error.
 
Back
Top