Skip to content
This repository has been archived by the owner on Apr 12, 2020. It is now read-only.

The type or namespace name '(stuff)' could not be found #1

Closed
ghost opened this issue Feb 25, 2018 · 3 comments
Closed

The type or namespace name '(stuff)' could not be found #1

ghost opened this issue Feb 25, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 25, 2018

I'm just going to start it off as I'm shit at coding.
Alright so when I grab these files, go into VS and try to build the Injector it works. But when I try to build ExampleAssembly, it starts giving me 'The type or namespace name '(insert stuff here ex: Camera, UnityEngine) could not be found (are you missing a using directive or an assembly reference?)
I kind of get what it means, but I don't know how to fix this.
Thanks.
P.S I have FASM.NET and Process.NET and their correct versions. (Shouldn't relate to this as those are for injector right?)

@t1f7
Copy link
Owner

t1f7 commented Feb 25, 2018

default
Links.

@ghost
Copy link
Author

ghost commented Feb 25, 2018

Uh, I don't know if I did this right but that didn't work. (I can safely say I probably did something wrong with the linking)
What I did was select ExampleAssembly, opened data sources, went to object, clicked add reference, went to browse, found those things that you showed above, added them, pressed ok, went back to select data objects and selected them again, and pressed finish.
EDIT: Got the Errors down to 7 from 23 after adding CoreModule, the rest seems like it needs the Assembly-CSharp reference but for some reason when pressing ok in the reference section nothing pops up in the data sources.
EDIT2: Got the errors down to 3 after adding most dll's inside the managed folder but then there are some NetworkBehaviour and NetworkIdentity errors that I can not seem to be able to fix.
EDIT3: Got it working after referencing ALL the files inside the managed folder twice.

@t1f7
Copy link
Owner

t1f7 commented Feb 26, 2018

I will upload update about 7pm (Moscow time), fixed links.
It was using UnityEngine.dll from Unity3D instead of the game itself.

@t1f7 t1f7 closed this as completed Mar 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant