Skip to content

Commit

Permalink
Create 2024-12-24-windows上面编译.net9.0的linux平台代码 .markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
gmd20 authored Dec 24, 2024
1 parent b9e257c commit e2da141
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e2da141

Please sign in to comment.