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/documentation/troubleshooting_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.
Build/Test Issues
WPF project build error - Could not copy xxx.csproj.nuget.dgspec.json
Started by wilhelmmedetz on 3,092 views
Remco NCrunch Developer
#15725
20 Oct 2021 00:44 UTC
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).
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).
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
Post a reply
Log in to reply.