Hello Guest

Author Topic: tk2dExternal does not exist  (Read 20874 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dExternal does not exist
« Reply #15 on: April 08, 2015, 07:48:14 pm »
Vico92's problem was in Monodevelop only, because of a Unity issue that doesn't generate the solution files correctly. If that is the case, you'll need to file a bug with the Unity guys. In the mean time you can manually add the dll to the solution but thats not a great solution.

yo_milo

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: tk2dExternal does not exist
« Reply #16 on: April 08, 2015, 10:31:22 pm »
The thing is, the DLL is there.

But for some reason Mono does gives me the "Does not exist in the current context" error in tk2dEditorSkin line 14, 20, 24, and 46.

So, do you recommend me deleting and adding the DLL?

Sorry if this problem is not really 2D toolkit. I love your tools, but this bug has totally disrupted my rhythm today... I have not been able to work...

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dExternal does not exist
« Reply #17 on: April 08, 2015, 10:36:32 pm »
Is the DLL in the external assemblies in the relevant monodevelop project? Thats what it wasn't doing correctly last time I looked.

yo_milo

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: tk2dExternal does not exist
« Reply #18 on: April 08, 2015, 11:39:18 pm »
I reinstalled Monodevelop. It fixed my problem.

Vico92

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: tk2dExternal does not exist
« Reply #19 on: April 09, 2015, 09:12:05 am »
.cs FILES are into the project but DLL REFERENCES are missing.

To add the missing references :
1-right-clic the References folder in Assembly-CSharp-Editor to edit references.
2-Select .NET Assembly tab, then go to the TK2DROOT.tk2d/Editor folder
3-Select both tk2dExternal.dll and tk2dSkin.dll and clic "Add" then "OK"

You will have to repeat the process when solution is regenerated.

thiagodeserto

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: tk2dExternal does not exist
« Reply #20 on: April 18, 2015, 08:30:57 pm »
Same problem here, but with unity cloud only.

Locally builds perfectly, but in the cloud cannot build iOS, Android or Web.
Both unity versions are the same: 5.0.1f1.

This is happening with a brand new project and last 2d toolkit version.
2.5.1

Code: [Select]
1: [Unity] Initialize engine version: 5.0.1f1 (5a2e8fe35a68)
2: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-Editor.dll
3: [Unity] Compilation failed: 4 error(s), 0 warnings
4: [Unity] Assets/TK2DROOT/tk2d/Editor/tk2dEditorSkin.cs(14,25): error CS0103: The name `tk2dExternal' does not exist in the current context
5: [Unity] Assets/TK2DROOT/tk2d/Editor/tk2dEditorSkin.cs(20,24): error CS0103: The name `tk2dExternal' does not exist in the current context
6: [Unity] Assets/TK2DROOT/tk2d/Editor/tk2dEditorSkin.cs(24,24): error CS0103: The name `tk2dExternal' does not exist in the current context
7: [Unity] Assets/TK2DROOT/tk2d/Editor/tk2dEditorSkin.cs(46,17): error CS0103: The name `tk2dExternal' does not exist in the current context
8: [Unity] Assets/TK2DROOT/tk2d/Editor/tk2dEditorSkin.cs(14,25): error CS0103: The name `tk2dExternal' does not exist in the current context
9: [Unity] Assets/TK2DROOT/tk2d/Editor/tk2dEditorSkin.cs(20,24): error CS0103: The name `tk2dExternal' does not exist in the current context
10: [Unity] Assets/TK2DROOT/tk2d/Editor/tk2dEditorSkin.cs(24,24): error CS0103: The name `tk2dExternal' does not exist in the current context
11: [Unity] Assets/TK2DROOT/tk2d/Editor/tk2dEditorSkin.cs(46,17): error CS0103: The name `tk2dExternal' does not exist in the current context
12: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-Editor.dll

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dExternal does not exist
« Reply #21 on: April 19, 2015, 06:00:16 pm »
Is tk2dEditor.dll in version control?

I have no idea why its trying to build an Editor folder, or even the Editor assembly for an iOS build. You will need to ask the Unity guys about this. The reason its happening is -
1. Its building an editor assembly when trying to build an iOS / Android / Web deployment for some reason.
2. Its not finding the dll file that is in the editor folder, but it does when building locally. It should at least be consistent with the editor.

VeTaLkO

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: tk2dExternal does not exist
« Reply #22 on: July 24, 2015, 10:10:01 am »
Hi, i have the same issue.

// Is tk2dEditor.dll in version control?
Should it be? I cant find it in solution itself.
Also, if to open asset store page and check package content from there (just in case i had removed it accidentally), there are only 2 dlls: tk2dExternal and tk2dSkin

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dExternal does not exist
« Reply #23 on: July 24, 2015, 10:41:26 am »
Sorry, I meant tk2dExternal.dll
Its complaining about a missing tk2dExternal dll - that is an editor DLL, no idea why its trying to build it for a cloud build, as is Assembly-CSharp-Editor. This sounds like a bug in the cloud build