SpecFlow.NetCore icon indicating copy to clipboard operation
SpecFlow.NetCore copied to clipboard

Version for package 'Specflow.NetCore' could not be resolved

Open chinookproject opened this issue 7 years ago • 3 comments

I have a .NET Core project that I can't build anymore because Specflow.NetCore is giving me a build error.

When I build I get the following error in output:

Version for package 'SpecFlow.NetCore' could not be resolved.

I'm not sure what the problem is. I seem to be the only one having this issue. I did a git clean -xdf, but the problem is still there on my machine.

I even tried to specify the version using the --specflow-version arg. But that didn't do the trick.

Is there anything else I can try to fix this error?

chinookproject avatar Mar 27 '19 22:03 chinookproject

Sounds like a NuGet problem - can you do a package restore?

stajs avatar Mar 27 '19 22:03 stajs

I cleared my nuget cache. Even manualy emptied my package folder that is under my 'user' folder. I also tried a Update-Package -reinstall. But the problem stays.

Any other ideas?

chinookproject avatar Mar 28 '19 06:03 chinookproject

I;ve managed to solve this issue.

I tried a lot of things like deleting all my local nuget cache items (documentation about nuget package cache). Cloning the repo to a new location etc. Nothing worked.

The fix is to do a dotnet restore in the folder where to .csproj is. For some reason that does something that Visual Studio isn't doing...

chinookproject avatar Mar 28 '19 20:03 chinookproject