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



"Deterministic builds only support portable PDBs" in F# project
#1 Posted : Monday, June 17, 2019 12:35:39 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/15/2016(UTC)
Posts: 3
Location: Germany

Thanks: 2 times
I have a .NET solution I'm using with NCrunch that's suddenly started giving this error on the NCrunch build:

FSC (0, 0): Deterministic builds only support portable PDBs (--debug:portable or --debug:embedded)

The project has a .NET Core 3.0 F# console project and a .NET Core 3.0 F# NUnit test project.

Strangely, this doesn't happen when doing a normal VS 2019 build or rebuild, and it doesn't happen when building with dotnet build (whether or not I do a dotnet clean first).

Any ideas?
#2 Posted : Tuesday, June 18, 2019 12:43:54 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,692

Thanks: 738 times
Was thanked: 944 time(s) in 899 post(s)
Hi, thanks for sharing this issue.

NCrunch in its current form doesn't support working with portable PDB files. We're working on a solution to this, but it's a very big task.

So right now, it forces your build system to use 'Full' PDBs instead. This clashes with deterministic builds.

The solution here is to set your NCrunch build so that it is not deterministic. If you have an existing deterministic property in your project, please replace it with the following:

<Deterministic Condition="'$(NCrunch)' != '1'">true</Deterministic>

Otherwise, add the following line:

<Deterministic Condition="'$(NCrunch)' == '1'">false</Deterministic>
Users browsing this topic
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.026 seconds.