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

Notification

Icon
Error

WPF project build error - Could not copy xxx.csproj.nuget.dgspec.json
wilhelmmedetz
#1 Posted : Tuesday, October 19, 2021 3:08:48 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 7/4/2012(UTC)
Posts: 34

Was thanked: 2 time(s) in 2 post(s)
After installing VS 2022 RC & NCrunch v4.10 I get the following error message:

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\6.0.100-rc.2.21505.57\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets (430, 7): Could not copy the file "C:\Dev\NCrunch\13104\5\SimControl.Reactive\SimControl.Samples.CSharp.WpfApp\obj\SimControl.Samples.CSharp.WpfApp.csproj.nuget.dgspec.json" because it was not found.

When including the xxx.csproj.nuget.dgspec.json file as an additional in NCrunch, the solution builds correctly.

The affected project is a simple WPF project (multitargeting net472 and net5.0-windows).

The error occurs both with VS2019 and VS2022.
Remco
#2 Posted : Wednesday, October 20, 2021 12:44:52 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 847 times
Was thanked: 1145 time(s) in 1069 post(s)
Hi, thanks for sharing this problem. I've managed to reproduce it using the standard WPF application template bundled with VS2022.

It looks like this file needs to be included in the NCrunch workspace. You are correct that adding the file to the 'Additional files to include' setting in NCrunch successfully works around this problem, and I recommend using this approach until we can deploy a fix for the issue (which we'll do with the next build of NCrunch).
DeltaEngine
#3 Posted : Wednesday, October 20, 2021 3:23:03 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/23/2012(UTC)
Posts: 27
Location: Germany

Thanks: 7 times
Was thanked: 2 time(s) in 2 post(s)
We have the same problem, thanks for the suggestion to fix it .. and we are waiting for the next release so it is fixed for all wpf projects
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.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download