I imported the HTTP server project into the LA portable version, and the following error occurred during compilation. The path mentioned in red below does not exist.
Failed to compile 'HTTP server.cs'. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Au.folders.get_NetRuntimeDesktop()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
at System.Reflection.PropertyInfo.GetValue(Object obj)
at Au.folders.<>c.<.cctor>b__315_0()
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location ---
at System.Lazy`1.CreateValue()
at Au.folders.unexpandPath(String path, String& folder, String& name)
at Au.folders.unexpandPath(String path)
at Au.Compiler.Compiler.XCompiled.AddCompiled(FileNode f, String outFile, MetaComments m, MPFlags miniFlags) in C:\code\au\Au.Editor\Compiler\XCompiled.cs:line 178
at Au.Compiler.Compiler._Compile(CCReason reason, FileNode f, CompResults& r, FileNode projFolder, Action& aFinally, Func`2 canCompile, MCFlags addMetaFlags) in C:\code\au\Au.Editor\Compiler\Compiler.cs:line 298
at Au.Compiler.Compiler.Compile(CCReason reason, CompResults& r, FileNode f, FileNode projFolder, Boolean needMeta, Func`2 canCompile, MCFlags addMetaFlags) in C:\code\au\Au.Editor\Compiler\Compiler.cs:line 58
Adding DLL reference doesn't work.
https://i.ibb.co/7rp2w9R/AAA.gif
In the LA portable version, sometimes the referenced path is added in the following format.
/*/ r data\doc\Main\dll\Newtonsoft.Json.dll; /*/
I think it should be added in this format.
/*/ r %dll%\Newtonsoft.Json.dll; /*/
Failed to compile 'HTTP server.cs'. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Au.folders.get_NetRuntimeDesktop()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
at System.Reflection.PropertyInfo.GetValue(Object obj)
at Au.folders.<>c.<.cctor>b__315_0()
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location ---
at System.Lazy`1.CreateValue()
at Au.folders.unexpandPath(String path, String& folder, String& name)
at Au.folders.unexpandPath(String path)
at Au.Compiler.Compiler.XCompiled.AddCompiled(FileNode f, String outFile, MetaComments m, MPFlags miniFlags) in C:\code\au\Au.Editor\Compiler\XCompiled.cs:line 178
at Au.Compiler.Compiler._Compile(CCReason reason, FileNode f, CompResults& r, FileNode projFolder, Action& aFinally, Func`2 canCompile, MCFlags addMetaFlags) in C:\code\au\Au.Editor\Compiler\Compiler.cs:line 298
at Au.Compiler.Compiler.Compile(CCReason reason, CompResults& r, FileNode f, FileNode projFolder, Boolean needMeta, Func`2 canCompile, MCFlags addMetaFlags) in C:\code\au\Au.Editor\Compiler\Compiler.cs:line 58
Adding DLL reference doesn't work.
https://i.ibb.co/7rp2w9R/AAA.gif
In the LA portable version, sometimes the referenced path is added in the following format.
/*/ r data\doc\Main\dll\Newtonsoft.Json.dll; /*/
I think it should be added in this format.
/*/ r %dll%\Newtonsoft.Json.dll; /*/