azure-devopsazure-pipelinesms-release-management

Build&Release Error CS0234: The type or namespace name 'Security' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)


When I commit a project to vsts to do Build Automation

it's have a error

Error CS0234: The type or namespace name 'Security' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

but my project it's can work on local with vs

have anyone know how to fix this error?


Solution

  • Add NuGet Restore task to your build/release definition.

    1. Change version to 0.*
    2. Path to solution or packages.config: ***.sln
    3. Select Restore for Installation type