Ask a questionAsk a question
 

AnswerCould not locate the assembly "Microsoft.CSharp"

  • Sunday, November 01, 2009 3:02 AMsoandos3 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This appears as a warning, and the project builds, but what does this error mean, and why could I be be getting it?

Answers

  • Wednesday, November 04, 2009 3:52 AMHarry ZhuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    It seems System.dll does not contain the namespace, have you replace the dll?
    Please check it's content using ildasm or .net reflector:
    http://www.red-gate.com/products/reflector/

    It's located at :%SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.dll

    Are you working with a WindowsCE project? The System.dll does not contain the namespace:
     C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.dll

    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

All Replies

  • Wednesday, November 04, 2009 3:52 AMHarry ZhuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    It seems System.dll does not contain the namespace, have you replace the dll?
    Please check it's content using ildasm or .net reflector:
    http://www.red-gate.com/products/reflector/

    It's located at :%SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.dll

    Are you working with a WindowsCE project? The System.dll does not contain the namespace:
     C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.dll

    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.