Build/Test Issues

F# .net core projects doesn't build in after upgrade to VS 2017 15.7.0

Started by zapotec on 5,202 views

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
..\..\..\.paket\Paket.Restore.targets (74, 5): The command ""O:\Temp\NCrunch\9812\22\.paket\paket.exe" restore" exited with code 9009.

It doesn't work with latest .NET Core SDK (2.1.300-rc1-008673) nor with latest RTM ( 2.1.200)

Both VS build and console 'dotnet build' runs ok without issues.

Paket version 5.156.7
Windows 10 Pro x64
NCrunch 3.15.0.6
VS 2017 15.7.0 RTM

Tryed replacing "Newtonsoft.Json.dll" with 11.0 version without luck.
Hi, thanks for sharing this problem.

Does turning on the 'Copy referenced assemblies to workspace' setting for the projects involved resolve this issue?

It may be necessary to turn off your paket restore step for NCrunch builds using an MSBuild condition.

Edited

Adding

<PropertyGroup>
<!-- Disable Paket restore under NCrunch build -->
<PaketRestoreDisabled Condition="'$(NCrunch)' == '1'">True</PaketRestoreDisabled>
</PropertyGroup>

to Directory.Build.props solved the problem. Thanks!! It is my fault to not properly reading "Troubleshooting" docs...

Post a reply

Log in to reply.