Road docker learning -build asp.net core 2.2 produces warning MSB3245: Could not resolve this reference the wrong solution.

Sometimes we can directly use dotnet publish docker build in time to publish, but if the time to build a mirror with a docker but the following error occurs:

Solution: https: //stackoverflow.com/questions/14261412/could-not-resolve-this-reference-could-not-locate-the-assembly

答案的原文如下:You most likely get this message when the project points to an old location of the assembly where it no longer exists. Since you were able to build it once, the assembly has already been copied into your bin\Debug / bin\Release folders so your project can still find a copy.

If you open the references node of the project in your solution explorer, there should be a yellow icon next to the reference. Remove the reference and add it again from the correct location.

If you want to know the location it was referenced from, you'd have to open the .csproj file in a text editor and look for the HintPath for that assembly - the IDE for some reason does not show this information.

To the effect that there is a warning sign yellow line in .cspj file, after warning that the yellow line marks the line deleted (that is, to a certain package references deleted), and then re-cite this package can be, that what I have map for example, Microsoft.AspNetCOre.Http.Abstractions this package there is a problem, so he will be removed and then I re-download it at nuget, the problem is solved.

Guess you like

Origin www.cnblogs.com/pangjianxin/p/11084996.html