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

Error Message in Unity #2

Closed
ad2003 opened this issue Dec 3, 2018 · 5 comments
Closed

Error Message in Unity #2

ad2003 opened this issue Dec 3, 2018 · 5 comments

Comments

@ad2003
Copy link

ad2003 commented Dec 3, 2018

Hello!
Getting the following error Log when opening Unity 2018.2 and importing the current release into an new project:

Assets/Scripts/BTCPayUnity.cs(27,16): error CS1644: Feature asynchronous functions' cannot be used because it is not part of the C# 4.0 language specification`

When following the tut (https://blog.indiesquare.me/develop-a-lightning-game-with-unity-btcpay-sdk-part-2-set-up-unity-project-d4fa68cec3bf - thank you for this!) and importing "Download In-Game Shop version of Survival Shooter" everything worked fine.

Thanks.

@ad2003
Copy link
Author

ad2003 commented Dec 3, 2018

microsoft/MixedRealityToolkit-Unity#739 (comment)

@ad2003 ad2003 closed this as completed Dec 3, 2018
@masashinaka
Copy link

Hi @ad2003 . Thanks for comments. How did you fix it ? I am guessing you have done either,

  1. .net version change on Unity setting to 4.x from 3.x
  2. import asset for async-await from Unity asset store
    Because I want to make the documentation better, I want to know that.
    Your feedback helps other game devs.

@ad2003
Copy link
Author

ad2003 commented Dec 3, 2018

Hi! Correct: 1. Under Project Settings I changed "Scripting Runtime Version" from 3.5 to 4.
This worked. I could open the project and fiddle around a bit. I could connect to my server and lightning pay works. I wanted to make a test build but now I am getting errors:

ArgumentException: The Assembly log4net is referenced by BitCoinSharp ('Assets/Dlls/BitCoinSharp.dll'). But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:155) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:161) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:161) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:195) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

edited: added the correct error log.

@hypergori
Copy link
Contributor

Please try to download the log4net dll here and put it in /Assets/Dlls/ folder.

https://logging.apache.org/log4net/download_log4net.cgi

We will make the dependency management more elegant. #3

@ad2003
Copy link
Author

ad2003 commented Dec 4, 2018

Nice! Thank you! I used log4net-2.0.8-bin-oldkey.zip\log4net-2.0.8\bin\net\4.0\release and put it in the DLLs folder. Under Player Settings I checked API Compatibility Level to NET 4.X. and now it works!

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

No branches or pull requests

3 participants