From e2da141c64458ee1236e14b46af17790f5840e81 Mon Sep 17 00:00:00 2001 From: gmd20 Date: Tue, 24 Dec 2024 15:12:56 +0800 Subject: [PATCH] =?UTF-8?q?Create=202024-12-24-windows=E4=B8=8A=E9=9D=A2?= =?UTF-8?q?=E7=BC=96=E8=AF=91.net9.0=E7=9A=84linux=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20.markdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\263\345\217\260\344\273\243\347\240\201 .markdown" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 "_posts/2024-12-24-windows\344\270\212\351\235\242\347\274\226\350\257\221.net9.0\347\232\204linux\345\271\263\345\217\260\344\273\243\347\240\201 .markdown" diff --git "a/_posts/2024-12-24-windows\344\270\212\351\235\242\347\274\226\350\257\221.net9.0\347\232\204linux\345\271\263\345\217\260\344\273\243\347\240\201 .markdown" "b/_posts/2024-12-24-windows\344\270\212\351\235\242\347\274\226\350\257\221.net9.0\347\232\204linux\345\271\263\345\217\260\344\273\243\347\240\201 .markdown" new file mode 100644 index 0000000..f1c4fb8 --- /dev/null +++ "b/_posts/2024-12-24-windows\344\270\212\351\235\242\347\274\226\350\257\221.net9.0\347\232\204linux\345\271\263\345\217\260\344\273\243\347\240\201 .markdown" @@ -0,0 +1,10 @@ +1. 安装.net 9.0 sdk +2. visual stuio code 安装 c# 和 .net 的扩展 +3. dotnet.exe build -c Release +4. dotnet publish -c Release -f net9.0 -r linux-x64 --self-contained true + +参考: +https://learn.microsoft.com/zh-cn/dotnet/core/tools/dotnet-publish +https://learn.microsoft.com/zh-cn/dotnet/core/deploying/deploy-with-cli +https://learn.microsoft.com/zh-cn/dotnet/standard/frameworks +https://learn.microsoft.com/zh-cn/dotnet/core/rid-catalog