Skip to content

PathMap not supported by F#? #11100

@njlr

Description

@njlr

Repro steps

I want to have deterministic builds, regardless of the folder that the project is checked-out into.

Following information found here, I added a PathMap property to my fsproj:

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <Deterministic>true</Deterministic>
    <DeterministicSourcePaths>true</DeterministicSourcePaths>
    <PathMap>$(EnlistmentRoot)=/home/runner/</PathMap>
  </PropertyGroup>

Expected behavior

Deterministic builds

Actual behavior

$ dotnet build
usr/share/dotnet/sdk/5.0.103/FSharp/Microsoft.FSharp.Targets(281,9): error MSB6006: "dotnet" exited with code 134.

Known workarounds

Unknown

Related information

$ dotnet --version 
5.0.103

$ lsb_release -a 
LSB Version:	core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.2 LTS
Release:	20.04
Codename:	focal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions