.net core 如何使用PublishSingleFile选项处理应用程序的旧版本?

.net core 如何使用PublishSingleFile选项处理应用程序的旧版本?,.net-core,.net-core-3.0,.net-core-publishsinglefile,.net Core,.net Core 3.0,.net Core Publishsinglefile,使用PublishSingleFile构建的应用程序是否清理旧版本?如果没有,是否有可靠的方法自动清理 Csproj示例供参考: <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.0</TargetFramework> <PublishSingleFile>true</PublishSingle

使用PublishSingleFile构建的应用程序是否清理旧版本?如果没有,是否有可靠的方法自动清理

Csproj示例供参考:

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <PublishSingleFile>true</PublishSingleFile>
    <PublishTrimmed>true</PublishTrimmed>
    <RuntimeIdentifier>ubuntu.16.04-x64</RuntimeIdentifier>
  </PropertyGroup>

Exe
netcoreapp3.0
真的
真的
ubuntu.16.04-x64