suicvne / DiscordSharp

A .Net API for Discord written in C#
MIT License
130 stars 33 forks source link

System.TypeLoadException #39

Closed bl89 closed 8 years ago

bl89 commented 8 years ago

"System.TypeLoadException was unhandled Message: An unhandled exception of type 'System.TypeLoadException' occurred in mscorlib.dll Additional information: Could not load type 'DiscordSharp.DiscordClient' from assembly 'DiscordSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'."

I get this error whenever I compile. I could have overlooked something but I have no idea why this is happening. I am using version 0.6.2-rc1.

suicvne commented 8 years ago

compiling just your bot? that's really..weird.

bl89 commented 8 years ago

Yeah. It's nothing special. I can show you the source if you want it

bl89 commented 8 years ago

Nevermind, solved the issue. Looks like you have to use NuGet to install DiscordSharp, compile before you make your bot, so that it auto-generates AssemblyInfo etc and then make your bot.

suicvne commented 8 years ago

That's weird. I've never had that happen to me before but, glad to see you got this resolved!