其他分享
首页 > 其他分享> > .NET6 全局using

.NET6 全局using

作者:互联网

语法

全局using你再也不用每个类里都引用命名空间了
项目的csproj文件中加入

  <ItemGroup>
    <PackageReference Include="LeetCode.CommunityToolKit" Version="4.0.3" />
    <Using Include="LeetCode.CommunityToolKit.Models;" />
    <Using Include="System.Collections.Generic;" />
    <Using Include="System.Linq;" />
  </ItemGroup>

Exapples

https://github.com/huzuohuyou/LeetCode

标签:github,using,csproj,huzuohuyou,NET6,全局,LeetCode
来源: https://www.cnblogs.com/wuhailong/p/16382917.html