Skip to content
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

应该在用户启用 ImplicitUsings 的时候自动的为用户引入 Natasha 的常用名称空间 #162

Closed
newbe36524 opened this issue Jan 21, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request.

Comments

@newbe36524
Copy link
Contributor

No description provided.

@newbe36524 newbe36524 added the enhancement New feature or request. label Jan 21, 2023
@newbe36524 newbe36524 self-assigned this Jan 21, 2023
@NMSAzulX
Copy link
Collaborator

启用 implicitUsings 是对应 Natasha 的手动管理 using 的功能? Natasha 的常用名称空间即 Natasha 所有组件及自动生成的类的常用空间吗?

@newbe36524
Copy link
Contributor Author

  1. 用户标记自己的项目 A 中 implicitUsings true
  2. 用户为 A 项目引入了 Natasha 包,也就表示用户希望在 A 项目中使用 Natasha
  3. 因此,为用户自动将 Natasha 常用的名称空间进行一次 global using
  4. 这样,用户就可以不用在手动引入 natasha 的名称空间

可参考: https://github.com/dotnet/orleans/blob/main/src/Orleans.Sdk/build/Microsoft.Orleans.Sdk.targets

@NMSAzulX NMSAzulX self-assigned this Feb 15, 2023
@NMSAzulX
Copy link
Collaborator

e42cfcd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants