Build/Test Issues

Project build failure - NuGet restore

Started by lmoelleb on 6,636 views

I am evaluating ncrunch and not getting off to a good start.

Using VS2019 I created a .NET Standard DLL with a single method.
I then created an .NET Core xUnit test project.

It executes without problems from the Visual Studio test runner.

With nCrunch, I get this error:
NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/documentation/troubleshooting_project-build-issues
..\..\..\Program Files\dotnet\sdk\2.2.203\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets (208, 5): Package xunit.analyzers, version 0.10.0 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.

I checked the nuget package folder, and the assembly is present as expected in the path:
C:\Users\LMølleb\.nuget\packages\xunit.analyzers\0.10.0

Is it the non-ascii character in my username (and hence the path)? If not, any other suggestion what it can be?
Hi, thanks for sharing this issue.

Would you mind submitting a bug report after NCrunch has done a pass of your test project? The log file in the report may yield some useful information about why this is happening.
Done. Let me know if you would like the test project and nuget folder content as well. Not that I expect there is anything strange in them, but the gnomes might have got to my files :)
Your guess about the non-ascii character seems to have been correct. No gnomes in here :)

Would you like to try the build below to see if it works better for you?

NCrunch_Console_3.29.0.1.msi
NCrunch_Console_3.29.0.1.zip
NCrunch_GridNodeServer_3.29.0.1.msi
NCrunch_GridNodeServer_3.29.0.1.zip
NCrunch_LicenseServer_3.29.0.1.zip
NCrunch_VS2008_3.29.0.1.msi
NCrunch_VS2010_3.29.0.1.msi
NCrunch_VS2010_3.29.0.1.zip
NCrunch_VS2012_3.29.0.1.msi
NCrunch_VS2012_3.29.0.1.zip
NCrunch_VS2013_3.29.0.1.msi
NCrunch_VS2013_3.29.0.1.zip
NCrunch_VS2015_3.29.0.1.msi
NCrunch_VS2015_3.29.0.1.msi.7z
NCrunch_VS2015_3.29.0.1.zip
NCrunch_VS2017_3.29.0.1.msi
NCrunch_VS2017_3.29.0.1.msi.7z
NCrunch_VS2017_3.29.0.1.zip
NCrunch_VS2019_3.29.0.1.msi
NCrunch_VS2019_3.29.0.1.msi.7z
NCrunch_VS2019_3.29.0.1.zip
Great, it works. You are in good company - .NET Core also failed on this a few versions back... and Windows still can't zip a file on my desktop. Why someone would create a username with non ascii characters is beyond me, but they thought they were being helpful. :)

Now on to convince myself I need this.... then convince the team they need this.... then convince the guy paying we need this... :)
lmoelleb wrote:Great, it works. You are in good company - .NET Core also failed on this a few versions back... and Windows still can't zip a file on my desktop. Why someone would create a username with non ascii characters is beyond me, but they thought they were being helpful. :)


It's something I think I would personally avoid doing, but professionally I think it's unreasonable to expect that software should only operate in ASCII and just ignore UTF8 entirely. This one was our fault (well, mine actually). We'd had a similar case like this in the past too, so I'm not going to make excuses here. This should have been handled better, and now it is :)

lmoelleb wrote:
Now on to convince myself I need this.... then convince the team they need this.... then convince the guy paying we need this... :)


I hoping the tool will work well enough to do most of this for you :)

Post a reply

Log in to reply.