K
K
kodagen2015-12-14 19:08:12
C++ / C#
kodagen, 2015-12-14 19:08:12

How to get rid of such warnings in teamcity?

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "KellermanSoftware.Compare-NET-Objects, Version=3.3.0.0, Culture=neutral, PublicKeyToken=d970ace04cc85217, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Makarov, 2015-12-14
@kodagen

Use NuGet to work with dependencies ( https://www.nuget.org/packages/CompareNETObjects/ is just what you need), and if you already use it, obviously, you need to fix the list of dependencies in packages.config, or do a nuget restore before calling MSBuild.
Since the assembly is not found, then either: a) the path to it is incorrect; b) the path is correct, but it is not pumped out by nuget when building;
There may also be c) a jamb with versions / tokens, but this is unlikely.
Well, of course, if your code compiles and works without problems, remove this reference from the project altogether.

K
kodagen, 2015-12-15
@kodagen

Hello. Thanks for the advice. restore NuGet helped get rid of the bulk of the warnings. ))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question