UnoptimizedAssemblyDetector 0.0.3
See the version list below for details.
Requires NuGet 4.0 or higher.
dotnet add package UnoptimizedAssemblyDetector --version 0.0.3
NuGet\Install-Package UnoptimizedAssemblyDetector -Version 0.0.3
<PackageReference Include="UnoptimizedAssemblyDetector" Version="0.0.3" />
paket add UnoptimizedAssemblyDetector --version 0.0.3
#r "nuget: UnoptimizedAssemblyDetector, 0.0.3"
// Install UnoptimizedAssemblyDetector as a Cake Addin #addin nuget:?package=UnoptimizedAssemblyDetector&version=0.0.3 // Install UnoptimizedAssemblyDetector as a Cake Tool #tool nuget:?package=UnoptimizedAssemblyDetector&version=0.0.3
Unoptimized Assembly Detector
A NuGet package that detects when assemblies compiled without the -optimized
flag are added to a project warns you about it.
How does it work?
This project hooks into the build process and detects if any referenced assembly was compiled in Debug mode.
Add to your project:
<ItemGroup>
<PackageReference Include="UnoptimizedAssemblyDetector" Version="0.0.2" PrivateAssets="All" />
</ItemGroup>
Motivation
It's surprising to many that dotnet publish
and dotnet pack
compile assemblies in debug mode.
This means that unless you've specified -c release
, you're building .NET assemblies without the -optimize
compiler flag.
With this package, you can get warned if one of your dependencies is being built in Debug
mode and published to nuget.org
.
It can warn any referened assembly, not only added through NuGet.
Now that you know about it, you can communicate to the author of the dependency. Wait until a fix is shipped, you can ignore the warning for said package, roll back to an older version or chose another dependency.
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.1
- System.Reflection.Metadata (>= 5.0.0)
-
.NETStandard 2.0
- System.Reflection.Metadata (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on UnoptimizedAssemblyDetector:
Repository | Stars |
---|---|
NetFabric/NetFabric.Hyperlinq
High performance LINQ implementation with minimal heap allocations. Supports enumerables, async enumerables, arrays and Span<T>.
|
|
getsentry/sentry-dotnet
Sentry SDK for .NET
|
|
dotnet/nuget-trends
Check out NuGet packages adoption and what's trending on NuGet.
|