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

Notification

Icon
Error

Csproj with Fakes no longer building/working
upper
#1 Posted : Monday, June 8, 2020 8:22:23 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/21/2016(UTC)
Posts: 31
Location: Austria

Thanks: 8 times
Was thanked: 8 time(s) in 7 post(s)
This project was building fine for at least the last year, since about 1-2 weeks it's no longer working (wether with the latest offical version 4.3 (2 Feb 2020), nor with a test build taken from here: https://forum.ncrunch.ne...roj-fails-to-build.aspx)

R# Build and VS Build are working fine, maybe a VS Update caused this problem?
We are using VS 2019 Enterprise (16.6.0).

Here is the error:

ENGINE - [10:09:58.1328-LocalBuildTask-28] ERROR (Build): Upper.Core.Common.Test: C:\Temp\NCrunch\7192\57\CoreExtensions\Src\CE\v\3.13\Upper.Core.Common.Test\obj\Debug\Fakes\sw\f.csproj (240): The required attribute "Include" is empty or missing from the element <ReferencePath>.

ENGINE - [10:09:58.1338-LocalBuildTask-28] ERROR (Build): Upper.Core.Common.Test: C:\Temp\NCrunch\7192\57\CoreExtensions\Src\CE\v\3.13\Upper.Core.Common.Test\GENERATEFAKES (0): project compilation failed with exit code 1.

I try to create a sample solution (but it will take me some time), or are the provides zip files enough for you (added the csproj file and the generated obj files (obj from vs and from NCrunch):


Here is a screenshot:
https://ibb.co/njCkG15

And here are the zip files:
https://drive.google.com...NejmhY/view?usp=sharing (NCrunch generated files)
https://drive.google.com...8A9f3U/view?usp=sharing (VS generated Files)


Br
upper
#2 Posted : Monday, June 8, 2020 9:56:23 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/21/2016(UTC)
Posts: 31
Location: Austria

Thanks: 8 times
Was thanked: 8 time(s) in 7 post(s)
I can now also reproduce it with VS build, so it seems Ncrunch is doing everything correctly, must be some kind of "magic" that it works sometimes.

Br
Remco
#3 Posted : Monday, June 8, 2020 10:06:44 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks for the sample files. I've downloaded them now, so you can remove them if you like. I'll let you know as soon as I have more information. Noting that fakes is involved here ... does it make any difference if you rebuild the fakes references?
upper
#4 Posted : Monday, June 8, 2020 10:11:43 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/21/2016(UTC)
Posts: 31
Location: Austria

Thanks: 8 times
Was thanked: 8 time(s) in 7 post(s)
Remco;14783 wrote:
Thanks for the sample files. I've downloaded them now, so you can remove them if you like. I'll let you know as soon as I have more information. Noting that fakes is involved here ... does it make any difference if you rebuild the fakes references?


Thx, yeah it seems one of the last vs updates changed something. R# and Vs build are now failing as well, I can now reproduce it with and without Ncrunch, so you don't have to investigate that issue.
Thx for your time and sorry.

Br
Remco
#5 Posted : Monday, June 8, 2020 10:17:55 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
upper;14784 wrote:

Thx, yeah it seems one of the last vs updates changed something. R# and Vs build are now failing as well, I can now reproduce it with and without Ncrunch, so you don't have to investigate that issue.
Thx for your time and sorry.


No problem. Thanks for letting me know.
upper
#6 Posted : Monday, June 8, 2020 1:43:22 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 9/21/2016(UTC)
Posts: 31
Location: Austria

Thanks: 8 times
Was thanked: 8 time(s) in 7 post(s)
Remco;14785 wrote:
upper;14784 wrote:

Thx, yeah it seems one of the last vs updates changed something. R# and Vs build are now failing as well, I can now reproduce it with and without Ncrunch, so you don't have to investigate that issue.
Thx for your time and sorry.


No problem. Thanks for letting me know.


If anyone else encounters this issue (its a bug in VS 16.6.0),
https://developercommuni...crosoft-fakes-issue.html.
1 user thanked upper for this useful post.
Remco on 6/9/2020(UTC)
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.042 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download