Skip to content

Powershell build.ps1 script throws error logging an error #25

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

Closed
goofballLogic opened this issue Feb 20, 2018 · 0 comments · Fixed by #33
Closed

Powershell build.ps1 script throws error logging an error #25

goofballLogic opened this issue Feb 20, 2018 · 0 comments · Fixed by #33

Comments

@goofballLogic
Copy link
Member

If an error occurs during the CoreCLR run, it tries to execute a cmd-let called "Error-Log" which, at least on my system, is not defined:


Error-Log : The term 'Error-Log' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\src\json-ld.net\build.ps1:61 char:5
+     Error-Log "Tests failed!!!"
+     ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Error-Log:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Note that the .NET 4 version of the run doesn't use this cmdlet - instead it just uses Write-Host.

Am I doing something wrong or should I send a PR to use Write-Host for the CoreCLR portion too?

This is in reference to https://github.com/NuGet/json-ld.net/blob/master/build.ps1#L58

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

Successfully merging a pull request may close this issue.

1 participant