4

有没有在 mac 上跑.net 6 rc 的

 2 years ago
source link: https://www.v2ex.com/t/807944
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
有没有在 mac 上跑.net 6 rc 的

V2EX  ›  .NET

有没有在 mac 上跑.net 6 rc 的

  xinhaiw · 14 小时 36 分钟前 · 820 次点击

跑不起来啊,都是报错,用的 vs for mac 创建的项目

15 条回复    2021-10-15 12:54:42 +08:00

janxin

janxin   14 小时 26 分钟前

等 MAUI 出了再用

reallittoma

reallittoma   14 小时 10 分钟前

在 Windows 上创建 MAUI 项目也是跑不起来

Sirius1

Sirius1   14 小时 9 分钟前

具体是什么错误,我 m1 版本的 macbook 之前用 preview 版本可以跑起来。要装对应的 SDK,项目指定 net 6

xinhaiw

xinhaiw   14 小时 6 分钟前

@Sirius1 /Users/xinhai/Projects/nettest/nettest/obj/Debug/net6.0/nettest.GlobalUsings.g.cs(1,1): Error CS0116: A namespace cannot directly contain members such as fields or methods (CS0116) (nettest)

kiracyan

kiracyan   12 小时 55 分钟前

@xinhaiw 这是编译报错吧?

Removable

Removable   12 小时 54 分钟前

楼主用的啥版本的 vs for mac?

xinhaiw

xinhaiw   12 小时 50 分钟前

@kiracyan 就是 build 过不去啊 各种报错

xinhaiw

xinhaiw   12 小时 50 分钟前

@Removable Visual Studio 2019 for Mac

xinhaiw

xinhaiw   12 小时 50 分钟前

要试试 Visual Studio 2022 for Mac Preview ?

Removable

Removable   12 小时 43 分钟前

@xinhaiw #9 对,要 2022 哦

xinhaiw

xinhaiw   12 小时 38 分钟前

@Removable 正在下载中

0o0o0o0

0o0o0o0   11 小时 50 分钟前

vs2019 for mac 最终版只支持.net6 preview4

agagega

agagega   11 小时 46 分钟前

vs2019 for mac 应该不会原生支持 M1 了,看微软的意思得 2022. 不过 vscode 也能写

xinhaiw

xinhaiw   11 小时 42 分钟前

跑起来了发现没有 startup 清爽了,也没有 useRouting 了,默认了吗?

hez2010

hez2010   11 小时 40 分钟前 via Android

把 csproj 里面的 EnableImplicitUsings 改成 false 试试

关于   ·   帮助文档   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   1723 人在线   最高记录 5497   ·  

创意工作者们的社区

World is powered by solitude

VERSION: 3.9.8.5 · 18ms · UTC 16:34 · PVG 00:34 · LAX 09:34 · JFK 12:34
♥ Do have faith in what you're doing.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK