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

msos.exe --help throws null reference exception #63

Open
madhub opened this issue Jan 11, 2017 · 2 comments
Open

msos.exe --help throws null reference exception #63

madhub opened this issue Jan 11, 2017 · 2 comments
Labels

Comments

@madhub
Copy link

madhub commented Jan 11, 2017

Hi
I downloaded the latest x64 release version of msos and try to use, it throws null reference exception.
here is the output of command. Running on Windows 10

msos.exe --help

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at msos.CommandExecutionContext.WriteErrorLine(String value) in C:\projects\msos\msos\CommandExecutionContext.cs:line 185
at msos.Program.RunWrapper() in C:\projects\msos\msos\Program.cs:line 334
at msos.Program.Main() in C:\projects\msos\msos\Program.cs:line 347

Madhu

@goldshtn
Copy link
Owner

Thanks for the report. Indeed, the binaries on AppVeyor seems to be broken. Did you also try the Release-NoCostura artifacts? In any case, building locally seems to produce a valid binary on my machine. I will investigate.

@goldshtn goldshtn added the bug label Jan 12, 2017
@goldshtn
Copy link
Owner

Right, so the Release binaries on AppVeyor don't have the referenced managed assemblies (such as CmdLine) embedded. This NRE occurs very early because the CmdLine assembly can't be loaded. This doesn't happen in a local build of the Release configuration (I get an msos.exe that does have the managed assemblies embedded). The workaround is as I wrote above, and the issue on AppVeyor needs to be investigated and fixed.

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

2 participants