Reputation: 2729
The azure-pipelines.yml files in my solutions are working. In Visual Studio Code I use the Azure Pipelines extension and it shows no errors in the YAML syntax, but Visual Studio reports many errors for the same valid YAML files.
So far, the errors seem be only on the the NuGetCommand@2 task type and its parameters.
Why does Visual Studio report these errors? Is there option to make Visual Studio recognize the syntax?
I am using Visual Studio version 16.8.3.
Upvotes: 1
Views: 1776
Reputation: 33
You can configure the Azure Pipelines extension in VS Code to use the yamlschema from your Azure DevOps Organization, this prevents false Problems. See README of Azure Pipelines for VS Code, heading Specific schema.
So something like this:
Upvotes: 0
Reputation: 4301
It seems like this is a known issue, "fixed" by disabling validation, that may not yet have made it into release:
Upvotes: 1