Actual warning was:
Could
not resolve this reference. Could not locate the assembly
"Newtonsoft.Json, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL". Check to
make sure the assembly exists on disk. If this reference is required by your
code, you may get compilation errors.
Which further caused build to fail with error:
The
type or namespace name 'Newtonsoft' could not be found (are you missing a using
directive or an assembly reference?)
Such errors can be resolved by adding the related .dll files to source control.
The details steps are:
- Build the solution in laptop.
- Select the project which fails to build
- In the solution explorer click on show all files at the top.
- Then expand bin/debug or bin/release folders
- Right click on Newtonsoft.Json.dll and select 'Add Ignored File to Source Control' command.
- Right click again on the file and select 'Include in Project' command.
- Lastly check in the project and build on devops
More information can be found at https://stackoverflow.com/questions/1882038/hintpath-vs-referencepath-in-visual-studio
Update: There are some more related errors which can be solved in a similary way
No comments:
Post a Comment