Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Project build failure - NuGet restore
lmoelleb
#1 Posted : Wednesday, May 29, 2019 9:03:59 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/29/2019(UTC)
Posts: 3
Location: Netherlands

Thanks: 1 times
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/d...ng_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?
Remco
#2 Posted : Wednesday, May 29, 2019 11:40:49 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
lmoelleb
#3 Posted : Wednesday, May 29, 2019 5:53:58 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/29/2019(UTC)
Posts: 3
Location: Netherlands

Thanks: 1 times
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 :)
Remco
#4 Posted : Thursday, May 30, 2019 2:13:39 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
1 user thanked Remco for this useful post.
lmoelleb on 5/30/2019(UTC)
lmoelleb
#5 Posted : Thursday, May 30, 2019 3:56:06 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/29/2019(UTC)
Posts: 3
Location: Netherlands

Thanks: 1 times
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... :)
Remco
#6 Posted : Thursday, May 30, 2019 10:40:15 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
lmoelleb;13550 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;13550 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 :)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.044 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download