win7 docker 构建镜像并运行dotnet程序,提示缺少这个类库。
原因是win7以默认发布的程序将缺少这个运行在linux的这个类库。
解决方法:
以linux指令构建:
dotnet publish --self-contained true --runtime linux-x64 --framework netcoreapp2.2 --output /app
win7 docker 构建镜像并运行dotnet程序,提示缺少这个类库。
原因是win7以默认发布的程序将缺少这个运行在linux的这个类库。
解决方法:
以linux指令构建:
dotnet publish --self-contained true --runtime linux-x64 --framework netcoreapp2.2 --output /app