Skip to content

不支持.NET Core 3.0 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
monksoul opened this issue Sep 9, 2019 · 10 comments
Closed

不支持.NET Core 3.0 #9

monksoul opened this issue Sep 9, 2019 · 10 comments

Comments

@monksoul
Copy link

monksoul commented Sep 9, 2019

.net core 3.0 之后,HttpMethodActionConstraint已经设置为私有方法,导致3.0程序集中无法找到该程序集出错。

官方Issue:dotnet/aspnetcore#8653

@stulzq
Copy link
Collaborator

stulzq commented Sep 9, 2019

等core3正式发布了做支持

@monksoul
Copy link
Author

monksoul commented Sep 9, 2019

找到解决方法了,.NET Core 3.0 HttpMethodActionConstraint移到Microsoft.AspNetCore.Mvc.ActionConstraints命名空间下了,之前在Microsoft.AspNetCore.Mvc命名空间下,能否快速发布一个Preview版本修复这个问题?

@stulzq
Copy link
Collaborator

stulzq commented Sep 10, 2019

能提个Pr吗

@stulzq
Copy link
Collaborator

stulzq commented Sep 10, 2019

搞了半天,类库项目当前不具备迁移条件,Microsoft.AspNetCore.Mvc.Core 这个包现在连3.0的版本你都没有,Core3的aspnetcore项目还好,隐式引用了,类库项目没法。

@monksoul
Copy link
Author

昨天我也发现了类库不支持,只能在WebAPI/Web项目下搞,我也问了作者,作者也回复了:dotnet/aspnetcore#13823

@stulzq
Copy link
Collaborator

stulzq commented Sep 10, 2019

类库项目现在有解决办法吗

@monksoul
Copy link
Author

PackageReference改为FrameworkReference 就可以了:dotnet/aspnetcore#3612

@stulzq
Copy link
Collaborator

stulzq commented Sep 10, 2019

了解,我试一下

@stulzq
Copy link
Collaborator

stulzq commented Sep 10, 2019

已上传 preview版本,请稍等10分钟左右更新
image

@monksoul
Copy link
Author

很赞,可以了。

@stulzq stulzq closed this as completed Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants