pardeike / Harmony

A library for patching, replacing and decorating .NET and Mono methods during runtime
https://www.patreon.com/pardeike
MIT License
5.05k stars 481 forks source link

Errors building assembly #110

Closed toxicaliengf closed 5 years ago

toxicaliengf commented 5 years ago

Hi! I'm sorry if this is a dumb question, but I'm having trouble getting harmony set up for a cities skylines mod. I downloaded a .zip of the repository and added all the files to my mod directory and visual studio project. VS doesn't show any errors, but when I run the game I get all sorts of compile errors: https://i.gyazo.com/2f6939b983f9daa06e094183da45904e.png

Is there something obvious I'm doing wrong or any advice you can give? Thanks🌼

pardeike commented 5 years ago

Seems like you are trying to compile Harmony yourself. You should do that from it’s project to get the correct settings.

Or simply use the precompiles dll that is part of the download and add it as a reference (including copying) to your own project. That’s how I usually use Harmony.

toxicaliengf commented 5 years ago

that makes sense, thanks!

I can't seem to find the .dll in the zip file, do I need to look somewhere else?

pardeike commented 5 years ago

Please have a look at the v1.2 release. It comes with Debug.zip and Release.zip. You probably downloaded just the source code in zipped format.