Reference disappear upon debug/build (C#, VB.NET, VS2010)

前端 未结 2 919
谎友^
谎友^ 2020-12-31 07:36

I am using the MagicLibrary for a few components. I knew it was written in Visual Studio 2003 and recompiled it in Visual C# Express 2010. It compiled just fine

相关标签:
2条回答
  • 2020-12-31 08:17

    Check that you are using the .Net 4 framework and not the client profile version

    You find that setting when you right-click on your project, choose properties. And under application there is a setting for target framework. If you have chosen the .Net 4 framework Client Profile, then this behavior that you described can happen

    0 讨论(0)
  • 2020-12-31 08:31

    I ran into a very similar issue once. In my case the problem turned out to be a missing dependency for the "vanishing" namespace's assembly. What finally gave me the information I needed was the suggestion in this StackOverflow answer to raise the MSBuild output verbosity level. After raising the verbosity setting the IDE should give you a more specific reason why the compilation fails.

    0 讨论(0)
提交回复
热议问题