You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
dotnet build src/Compiler/ /p:EnableXlfLocalization=true /t:UpdateXlf might be a workaround. Should probably add one more condition (building_using_dotnet one) to FSharpBuild.Directory.Build.props. Or just set it to true when we do BUILDING_USING_FSHARP in the Directory.Build.props file. We rarely want to not update those.
dotnet build src/Compiler/ /p:EnableXlfLocalization=true /t:UpdateXlf might be a workaround.
That doesn't work either
Right, I used the wrong terminal (macOS). Not sure what issue might be. My suspicion is that it could be that environment is clean in devcontainer, and xliff tasks package is not getting installed by arcade and discovered by msbuild and not getting loaded.
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 seemsXliffTasksAssembly
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 exampleXliffTasksAssembly
set in a Windows environment?The text was updated successfully, but these errors were encountered: