Easy.Tool.IgnoresAccessChecks
1.0.3
dotnet add package Easy.Tool.IgnoresAccessChecks --version 1.0.3
NuGet\Install-Package Easy.Tool.IgnoresAccessChecks -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Easy.Tool.IgnoresAccessChecks" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Easy.Tool.IgnoresAccessChecks" Version="1.0.3" />
<PackageReference Include="Easy.Tool.IgnoresAccessChecks" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Easy.Tool.IgnoresAccessChecks --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Easy.Tool.IgnoresAccessChecks, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Easy.Tool.IgnoresAccessChecks@1.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Easy.Tool.IgnoresAccessChecks&version=1.0.3
#tool nuget:?package=Easy.Tool.IgnoresAccessChecks&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
实现"MSBuild"构建使用[IgnoresAccessChecksToAttribute]特性的工具
我可以让你使用本不该属于你的"力量",但是你也得谨慎使用,希望你不会因为这股"力量"而受伤 声明:本程序集只对开发时的引用程序集做处理
配置
一切的配置都在 YourProject.csproj 中
设置忽略访问检查的程序集
- 在"IgnoresAccessChecksAssemblyNames"属性中写入程序集名即可,支持多个使用';'/','分割
- 默认 null,不会生成任何忽略检查的程序集
<PropertyGroup>
<IgnoresAccessChecksAssemblyNames>Assembly1;Assembly2</IgnoresAccessChecksAssemblyNames>
</PropertyGroup>
设置排除类型(不需要访问的类型)
- 在"ExcludeTypeFullNames"属性中写入类型完全限定名即可,支持多个使用';'/','分割
- 默认 null,不排除任何类型
<PropertyGroup>
<ExcludeTypeFullNames>Type1;Type2</ExcludeTypeFullNames>
</PropertyGroup>
设置设置生成的公开程序集是否是空方法体
- 在"UseEmptyMethodBody"属性中写入true/false即可
- 默认 true,生成的程序集都是空方法体
<PropertyGroup>
<UseEmptyMethodBody>true</UseEmptyMethodBody>
</PropertyGroup>
更新日志
1.0.0
- 项目发布
1.0.1
- 修改项目readme文档
1.0.2
- 公开所有未公开类型
- 公开所有未公开成员
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Easy.Tool.IgnoresAccessChecks:
Package | Downloads |
---|---|
Easy.Extensions.DependencyInjection
依赖注入 |
GitHub repositories
This package is not used by any popular GitHub repositories.