Getting “type or namespace name could not be found” but everything seems ok?

后端 未结 30 1128
北海茫月
北海茫月 2020-11-22 09:27

I\'m getting a:

type or namespace name could not be found

error for a C# WPF app in VS2010. This area of code was compiling fine

30条回答
  •  悲哀的现实
    2020-11-22 09:52

    To anyone that is getting this error when they try to publish their website to Azure, none of the promising-looking solutions above helped me. I was in the same boat - my solution built fine on its own. I ended up having to

    1. Remove all nuget packages in my solution.
    2. Close and reopen my solution.
    3. Re-add all the nuget packages.

    A little painful but was the only way I could get my website to publish to Azure.

提交回复
热议问题