CopyLocal error - why am i getting this error

Jacob Brock-Hansen 1 Reputation point
2021-01-12T08:59:25.18+00:00

Hi

Im getting this error when i try to build my Visual Studio project:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\v16.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(226,9): error MSB4096: The item "C:\Projects\IO-Archiver\packages\System.Runtime.WindowsRuntime.4.7.0\build\net461....\ref\netstandard2.0\System.Runtime.WindowsRuntime.dll" in item list "ReferencePath" does not define a value for metadata "CopyLocal". In order to use this metadata, either qualify it by specifying %(ReferencePath.CopyLocal), or ensure that all items in this list define a value for this metadata.

I have been trying to search the web for answers and i have found several with the same problem, but not any solutions that is specifically with the Office tools package.

This is a project that im developing with another programmer and it works fine on his computer and it has been working fine on my computer as well, but it has been a couple of months since i worked on the project last so i checked out the newest Github branch through Azure devops and then it started to fail.

I have tried removing the packages and readding them, i tried to rebuild the project - but sofar it just isnt working :(

I need help to solve this

Regards

Jacob

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,623 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.