Dockerize.NET icon indicating copy to clipboard operation
Dockerize.NET copied to clipboard

Error running 'dotnet dockerize' : 'Version for package `Brthor.Dockerize.NET` could not be resolved.'

Open pieterclaerhout opened this issue 5 years ago • 3 comments

I'm having the same issue as #9 (and I'm running it on a mac using .NET Core 3.1):

Screenshot 2020-01-31 at 16 27 55

Any idea what I might be doing wrong?

pieterclaerhout avatar Jan 31 '20 15:01 pieterclaerhout

This tool has not been tested with dotnet core 3.1, but preliminary research shows that it should still work.

To start, I would suggest deleting your bin/obj folders for the project, re-restoring, and testing again if the version cannot be resolved. This will force recreation of nuget's intermediate files, which may be part of the issue.

If that does not work, please provide the output of dotnet info and I will try for a repro.

brthor avatar Jan 31 '20 22:01 brthor

I got slightly further, but it seems that it's not compatible with .NET Core 3.1 and requires .NET Core 2.0…

Screenshot 2020-02-01 at 10 40 20

Any chance you can make it compatible with .NET Core 3.1?

pieterclaerhout avatar Feb 01 '20 09:02 pieterclaerhout

#13 is tracking compatibility.

In the meantime, an easy solution is to install the 2.0 framework from the link provided in the error description. Different versions of the framework can exist side-by-side so it should not affect existing projects.

brthor avatar Feb 04 '20 20:02 brthor