We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
YamlPeek fails when the yaml root is a list
Feed a list like:
- name: Star Trek stuff: yes - name: Star Wars stuff: no
parses correctly
"MyTarget.targets" (DoStuff target) (1) -> (EnsureOutputFiles target) -> MyTarget.targets(31,5): error MSB4018: The "YamlPeek" task failed unexpectedly. MyTarget.targets(31,5): error MSB4018: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path '', line 1, position 1. MyTarget.targets(31,5): error MSB4018: at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) MyTarget.targets(31,5): error MSB4018: at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) MyTarget.targets(31,5): error MSB4018: at YamlPeek.Execute() in /_/src/YamlPeek/YamlPeek.cs:line 67 MyTarget.targets(31,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Execute() MyTarget.targets(31,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
1.0.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
YamlPeek fails when the yaml root is a list
Steps to Reproduce
Feed a list like:
Expected Behavior
parses correctly
Exception with Stack Trace
Version Info
1.0.0
Additional Info
The text was updated successfully, but these errors were encountered: