为 Linux 编译 .NET 控制台应用程序时出现问题

问题描述 投票:0回答:1

大家下午好。我编写了一个简单的discord bot,并想将其上传到Linux 的VPS。在所有指南中,人们通常会打开 Publish Profiler,您可以在其中选择 linux-x64 平台。我没有这样的窗口(见下文)。 What i have What another people have

我重新安装了MVS,但没有帮助我。我还尝试使用命令“dotnet build MyAppName.csproj --runtime linux-x64”来构建项目,但它再次创建了 Windows 的构建。也许我需要下载一些东西或创建不同类型的项目? Result of compilation

c# .net linux publish vps
1个回答
0
投票

事实证明这个决定是一个愚蠢的决定。我只是再次拆除了我的视觉工作室并选择了不同类型的项目来创建。

© www.soinside.com 2019 - 2024. All rights reserved.