我在 macOS 上编译到 Ubuntu:
dotnet build --configuration Release --runtime ubuntu.18.04-x64
就是一句简单的 hello world 的 console, 半天没有编译完
1
zachlhb 2019 年 9 月 30 日 via Android
对 net 早就无爱了
|
2
tairan2006 2019 年 9 月 30 日
交叉编译还是 go 快啊 2333
|
4
chinvo 2019 年 9 月 30 日
还没试过这么搞,都是直接 dotnet publish -c Release 然后放到目标服务器上跑……
好像也没啥毛病? |
5
xupefei 2019 年 9 月 30 日
> dotnet new console
> dotnet build --configuration Release --runtime ubuntu.18.04-x64 Microsoft (R) Build Engine version 16.3.0+0f4c62fea for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. Restore completed in 2.66 sec for /Users/pengxu/text/text.csproj. text -> /Users/pengxu/text/bin/Release/netcoreapp3.0/ubuntu.18.04-x64/text.dll Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:05.32 我试了试,五秒钟搞定。楼主网有问题? |
7
netnr 2019 年 9 月 30 日
nuget 依赖 https://api.nuget.org/v3/index.json
|
9
agdhole 2019 年 10 月 1 日 via Android
微软最近被国内的某些 DNS 搞了,尝试换到 Google,cf DNS 试试,我前些天用 114DNS 下微软所有的东西都只有十多 kb,换了就好了
|
13
okampfer 2019 年 10 月 19 日
@TangMonk 腾讯云也有 nuget 镜像: https://mirrors.cloud.tencent.com/nuget
话说你在成都而且在做自由职业啊?真巧,我也是,关注你 github 了,如果可以想加个微信聊聊。 |