dotnet-script icon indicating copy to clipboard operation
dotnet-script copied to clipboard

fixed publish for net5.0

Open dangar61 opened this issue 4 years ago • 1 comments

dangar61 avatar Apr 25 '21 05:04 dangar61

I'm getting a similar issue with .NET6 when publishing:

$ dotnet script --verbosity d publish --configuration Release --output ./ ./project.csx

# ... snip ...
dbug: Dotnet.Script.DependencyModel.Process.CommandRunner[0]
      /usr/share/dotnet/sdk/6.0.201/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(1110,5): warning NETSDK1179: One of '--self-contained' or '--no-self-contained' options are required when '--runtime' is used. [ ... ]
# ... snip ...

It does build successfully but the resulting binary doesn't work at all, I'm guessing this PR would fix that?

AndreSteenveld avatar Mar 29 '22 06:03 AndreSteenveld