Skip to content

Xlf files don't update in dev containers #16311

@Martin521

Description

@Martin521

Repro steps

If you open this repository in VS Code Dev Containers, change FSComp.txt and build FSharp.Compiler.Service, the xlf files are not updated as they should. If you try and run dotnet build src/Compiler /t:UpdateXls manually, you get an error message
/workspaces/fsharp/src/Compiler/FSharp.Compiler.Service.fsproj : error MSB4057: The target "UpdateXlf" does not exist in the project., while the same command seems to be working well on Windows. I don't know the behavior in other Linux environments.

Related information

My tests were on Windows11/WSL2 with Docker, VS Code with Ionide 7.16.1 and Dev Containers 0.321.0, and the current FSharp repo.

I have traced this to the line
<Import Project="CoordinateXlif.targets" Condition = " '$(FSharpBuildAssemblyFile)' != '' and '$(XliffTasksAssembly)' != '' "/> in Directory.Build.targets. It seems XliffTasksAssembly is empty and therefore the targets are not imported. I am happy to debug this further, but as my My MsBuild and SDK knowledge is limited, I need some help, for example

  • Where is XliffTasksAssembly set in a Windows environment?
  • How is the behaviour in a native Linux environment?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions