Reputation: 185
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?
Upvotes: 2
Views: 3680
Reputation: 724
In my case I forgot to add packages.config file to the source control.
Upvotes: 1
Reputation: 864
Your build can't find a referenced Assembly. This could be because of missing the nuget restore build step (look at the other answer here) or because of some missing entry in your repository of this particular build.
Upvotes: 1
Reputation: 33698
Add NuGet Restore task to your build/release definition.
Upvotes: 3