Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Not able to build with VS2015 #57

Open
JasonYanxx opened this issue Apr 21, 2019 · 3 comments
Open

Not able to build with VS2015 #57

JasonYanxx opened this issue Apr 21, 2019 · 3 comments

Comments

@JasonYanxx
Copy link

JasonYanxx commented Apr 21, 2019

the code public bool IsError { get => !(CompileError == null && ExecuteError == null); } in source project make my building wrong!
Here is the error:
'Error CS0161 'ExecutionResult.IsError.get': not all code paths return a value Kernel'

@JasonYanxx
Copy link
Author

JasonYanxx commented Apr 21, 2019

usepublic bool IsError { get { return !(CompileError == null && ExecuteError == null); } } instead,then rebuild the project, eventually be fine!

@zabirauf
Copy link
Owner

I believe this might be happening because the msbuild installed by VS2015 doesn't support the newer version of C#. Can you try updating the VS 2015 or the msbuild version to latest and try again. Hopefully that should resolve the problem.

@JasonYanxx
Copy link
Author

JasonYanxx commented Apr 22, 2019

Indeed,I've updated msbuild to the latest version,i.e,6.10, but I still failed to build the project. The error mainly focus on the code below :public bool IsError { get => !(CompileError == null && ExecuteError == null); }. I rewrite this code with public bool IsError { get { return !(CompileError == null && ExecuteError == null); } } , and it works.

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

No branches or pull requests

2 participants