Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create builds (PC Standalone) #314

Closed
maxi-jp opened this issue May 17, 2019 · 8 comments
Closed

Unable to create builds (PC Standalone) #314

maxi-jp opened this issue May 17, 2019 · 8 comments
Assignees
Labels

Comments

@maxi-jp
Copy link

maxi-jp commented May 17, 2019

Hi,

We have been working with this amazing plugin during some projects, but now I'm unable to create new builds due to some errors provided by DOTweenPro. In editor mode, everything work just fine.

Unity version: 2018.3.6f1
DOTween v1.2.235 [Release build]
DOTweenPro v1.0.145

Errors (after pressing "Build" button):

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(7,10): error CS0234: The type or namespace name 'DemiEditor' does not exist in the namespace 'DG' (are you missing an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(8,24): error CS0234: The type or namespace name 'Core' does not exist in the namespace 'DG.DOTweenEditor' (are you missing an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(9,24): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'DG.DOTweenEditor' (are you missing an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(6,10): error CS0234: The type or namespace name 'DemiEditor' does not exist in the namespace 'DG' (are you missing an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(11,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(112,44): error CS0246: The type or namespace name 'PlayModeStateChange' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(25,46): error CS0246: The type or namespace name 'ABSAnimationInspector' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(726,6): error CS0246: The type or namespace name 'InitializeOnLoadAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(726,6): error CS0246: The type or namespace name 'InitializeOnLoad' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(24,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(24,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(208,30): error CS0115: 'DOTweenAnimationInspector.OnInspectorGUI()': no suitable method found to override
-----CompilerOutput:-stderr----------
-----EndCompilerOutput---------------
- Finished compile Library/ScriptAssemblies/DOTweenPro.Scripts.dll
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(7,10): error CS0234: The type or namespace name 'DemiEditor' does not exist in the namespace 'DG' (are you missing an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 7)

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(8,24): error CS0234: The type or namespace name 'Core' does not exist in the namespace 'DG.DOTweenEditor' (are you missing an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 8)

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(9,24): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'DG.DOTweenEditor' (are you missing an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 9)

Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(6,10): error CS0234: The type or namespace name 'DemiEditor' does not exist in the namespace 'DG' (are you missing an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs Line: 6)

Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(11,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs Line: 11)

Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(112,44): error CS0246: The type or namespace name 'PlayModeStateChange' could not be found (are you missing a using directive or an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs Line: 112)

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(25,46): error CS0246: The type or namespace name 'ABSAnimationInspector' could not be found (are you missing a using directive or an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 25)

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(726,6): error CS0246: The type or namespace name 'InitializeOnLoadAttribute' could not be found (are you missing a using directive or an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 726)

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(726,6): error CS0246: The type or namespace name 'InitializeOnLoad' could not be found (are you missing a using directive or an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 726)

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(24,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 24)

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(24,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 24)

Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(208,30): error CS0115: 'DOTweenAnimationInspector.OnInspectorGUI()': no suitable method found to override
 
(Filename: Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs Line: 208)

DisplayProgressNotification: Build Failed
Error building Player because scripts had compiler errors

Update: I have been able to do a build by removing the Pro version folders.

@33pda
Copy link

33pda commented May 30, 2019

Confirm. Same issue for Android build (Unity 2018.2.3f1)

@Demigiant
Copy link
Owner

Demigiant commented May 30, 2019

Ahoy! Sorry I missed the first message. I assume you're using the new ASMDEF system. There's a bug which was introduced by Unity in the latest versions: while before ASMDEF automatically excluded editor code, now they include it unless excluded manually, so that's why the build is failing. Please download the latest version of DOTween here (1.1.245) which solves this problem since it's a core issue (Asset Store upgrade coming soon).

@Demigiant Demigiant self-assigned this May 30, 2019
@GiacomoMariani
Copy link

I'm still getting the issue with Pro Version
Unity 2020.1.10f
DotTween Pro Version 1.0.244

I tried setting the non-pro version and it is working fine, so the issue might still be just on pro.

@Demigiant
Copy link
Owner

Hi, can you write me the error log you're getting? There is no build issue I'm aware of right now with DOTween Pro on any platfrom, so I need more info.

@GiacomoMariani
Copy link

GiacomoMariani commented Oct 30, 2020

Platform is standalone windows. The error reproduces only on pro version. We're using ASMDEF.

Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(6,10): error CS0234: The type or namespace name 'DemiEditor' does not exist in the namespace 'DG' (are you missing an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(11,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenPreviewManager.cs(112,44): error CS0246: The type or namespace name 'PlayModeStateChange' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(25,46): error CS0246: The type or namespace name 'ABSAnimationInspector' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(726,6): error CS0246: The type or namespace name 'InitializeOnLoadAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(726,6): error CS0246: The type or namespace name 'InitializeOnLoad' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(24,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(24,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
Assets\Demigiant\DOTweenPro\Editor\DOTweenAnimationInspector.cs(208,30): error CS0115: 'DOTweenAnimationInspector.OnInspectorGUI()': no suitable method found to override

@Demigiant
Copy link
Owner

Uhm, that doesn't seem right, those classes should be excluded from builds. I assume you're referencing DOTween's editor ASMDEFs in some of your runtime code/ASMDEFs, can you check? The "DOTweenPro/Editor/DOTweenPro.EditorScripts" ASMDEF should only be referenced by editor code and editor ASMDEFs.

@GiacomoMariani
Copy link

Sorry, I thought it was a straightforward solution.

I searched in our own asmdef and I did not see any reference of DOTweenPro/Editor/DOTweenPro.EditorScripts.

Anyway the free version does not have any issue and we do not specifically need the pro version for the project, so for the moment I plan to just switch the version.

@Demigiant
Copy link
Owner

Then probably there's some custom runtime code referencing those classes. I'm definitely sure there's no other way this could be happening. But I now added a reminder in the Utility panel not to reference DOTween's editor classes or ASMDEFS :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants