Geeksltd / Olive

Olive framework, for more productive cross platform .NET solutions. It's available under the GPL v3 license. See License.md for more information.
https://geeksltd.github.io/Olive
Other
44 stars 44 forks source link

Build.bat can not build project #406

Closed Gargi82 closed 1 year ago

Gargi82 commented 1 year ago

Hi, I have upgraded the .Net Core Version from 3.1 to 6.0 according to https://geeksltd.github.io/Olive/#/ChangeLog?id=_11-jan-2022-net-60-upgrade. I'm using vs2022, installed .Net 6.0 SDK. But when I run the build.bat it throws below exception (It was building while target framework was .net Core 3.1):

`Running BuildRuntimeConfigJson...Done. 0s Running RestoreNuget...Failed: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Error running 'C:\Windows\System32\WHERE.exe':INFO: Could not find files for the given pattern(s).

at Olive.OliveExtensions.Execute(FileInfo this, String args, Boolean waitForExit, Action`1 configuration) at MSharp.Build.Commands.FindExe(String fileInPathEnv) in D:\Projects\msharp-build\Commands.cs:line 37 at MSharp.Build.OliveSolution.RestoreNuget() in D:\Projects\msharp-build\OliveSolution.cs:line 75 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at MSharp.Build.Builder.<>c__DisplayClass4_0.b__0() in D:\Projects\msharp-build\Builder.cs:line 23 at MSharp.Build.Builder.ExecuteTasks() in D:\Projects\msharp-build\Builder.cs:line 41 Error running 'C:\Windows\System32\WHERE.exe':INFO: Could not find files for the given pattern(s).


STACK TRACE:

at Olive.OliveExtensions.Execute(FileInfo this, String args, Boolean waitForExit, Action`1 configuration)

at MSharp.Build.Commands.FindExe(String fileInPathEnv) in D:\Projects\msharp-build\Commands.cs:line 37

at MSharp.Build.OliveSolution.RestoreNuget() in D:\Projects\msharp-build\OliveSolution.cs:line 75`