I'm using the code generator lib Myriad in my project, which adds a dependency for FSharp.Compiler.Service. This dependency suddenly breaks single file publishing when I'm using v39. With v38 everything works fine.
It looks like the problem is the dependency on FSharp.Core 5.0.1 (#11111 (comment)).
Repro steps
Edit: I created a minimal repro: #11111 (comment)
I got the problem in one of my repos.
As you can see in the commit history and look at the CI results:
the deployment works, if I pin the Service to v38 and does not work, if I use v39 (which depends on FSharp.Core 5.0.1).
- commit (works): NicoVIII/MagicCollectionHelper@46f09c4
- commit (broken): NicoVIII/MagicCollectionHelper@b0e874c
With v5.0.1 if I execute following commands in src/MagicCollectionHelper/AvaloniaApp:
dotnet publish -c Release -r linux-x64 -o "../../../deploy"
This works.
dotnet publish -c Release -r linux-x64 -o "../../../deploy" -p:PublishSingleFile=true
This produces the following error:
error MSB4018: The "GenerateBundle" task failed unexpectedly. [/workspaces/MagicCollectionHelper/src/MagicCollectionHelper/AvaloniaApp/MagicCollectionHelper.AvaloniaApp.fsproj]
error MSB4018: System.ArgumentException: Invalid input specification: Found multiple entries with the same BundleRelativePath [/workspaces/MagicCollectionHelper/src/MagicCollectionHelper/AvaloniaApp/MagicCollectionHelper.AvaloniaApp.fsproj]
error MSB4018: at Microsoft.NET.HostModel.Bundle.Bundler.GenerateBundle(IReadOnlyList`1 fileSpecs) [/workspaces/MagicCollectionHelper/src/MagicCollectionHelper/AvaloniaApp/MagicCollectionHelper.AvaloniaApp.fsproj]
error MSB4018: at Microsoft.NET.Build.Tasks.GenerateBundle.ExecuteCore() [/workspaces/MagicCollectionHelper/src/MagicCollectionHelper/AvaloniaApp/MagicCollectionHelper.AvaloniaApp.fsproj]
error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [/workspaces/MagicCollectionHelper/src/MagicCollectionHelper/AvaloniaApp/MagicCollectionHelper.AvaloniaApp.fsproj]
error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/workspaces/MagicCollectionHelper/src/MagicCollectionHelper/AvaloniaApp/MagicCollectionHelper.AvaloniaApp.fsproj]
error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/workspaces/MagicCollectionHelper/src/MagicCollectionHelper/AvaloniaApp/MagicCollectionHelper.AvaloniaApp.fsproj]
Expected behavior
Publishing as single file works also with the current version of FSharp.Core.
Actual behavior
See Repro steps. Publishing as single file throws an error.
Known workarounds
Use v5.0.0.
Related information
Provide any related information (optional):
- OS: Manjaro (Development happens inside of a devcontainer)
- .NET 5.102
- Visual Studio Code
I'm using the code generator lib Myriad in my project, which adds a dependency for FSharp.Compiler.Service. This dependency suddenly breaks single file publishing when I'm using v39. With v38 everything works fine.
It looks like the problem is the dependency on FSharp.Core 5.0.1 (#11111 (comment)).
Repro steps
Edit: I created a minimal repro: #11111 (comment)
I got the problem in one of my repos.
As you can see in the commit history and look at the CI results:
the deployment works, if I pin the Service to v38 and does not work, if I use v39 (which depends on FSharp.Core 5.0.1).
With v5.0.1 if I execute following commands in src/MagicCollectionHelper/AvaloniaApp:
dotnet publish -c Release -r linux-x64 -o "../../../deploy"This works.
dotnet publish -c Release -r linux-x64 -o "../../../deploy" -p:PublishSingleFile=trueThis produces the following error:
Expected behavior
Publishing as single file works also with the current version of FSharp.Core.
Actual behavior
See Repro steps. Publishing as single file throws an error.
Known workarounds
Use v5.0.0.
Related information
Provide any related information (optional):