Introduction
Moving a .NET application to Windows Arm64 can be straightforward when the application consists mostly of managed .NET code. The situation becomes more complicated when the application depends on NuGet packages, native DLLs, database drivers, third-party SDKs, or other components that were built for a specific processor architecture.
A project can compile successfully and still fail after it is deployed to an Arm64 machine.
This is why dependency checking should happen before the migration rather than after the first production deployment.
The goal is not to inspect every package manually. The goal is to identify dependencies that can affect runtime compatibility, determine whether Arm64 support exists, and replace or isolate anything that cannot run on the target architecture.
This article walks through a practical dependency audit for a .NET application before moving it to Windows Arm64.
Why Dependency Checking Matters
The .NET application itself may be architecture-neutral, but its dependencies are not necessarily architecture-neutral.
Consider an application with this structure:
ASP.NET Core Application
|
+-- Managed .NET libraries
|
+-- NuGet packages
|
+-- Native DLL
|
+-- Database driver
|
+-- Third-party SDKThe managed libraries may work without modification.
The native DLL or SDK may only support x64.
That creates a situation where:
Application builds successfully
↓
Application starts
↓
Native dependency is loaded
↓
Runtime failureDependency validation is intended to catch that problem before deployment.
Start With the Target Framework
First identify the target framework used by the application.
Open the project file:
<TargetFramework>net10.0</TargetFramework>You may also see:
<TargetFramework>net8.0</TargetFramework>or a multi-targeted project:
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>The target framework matters because Arm64 support depends partly on the runtime and framework version being used.
Also check the SDK installed on the development machine:
dotnet --infoLook at:
.NET SDK version
Runtime versions
OS
OS architecture
Installed runtimes
Do this on both the development machine and the intended Arm64 test environment when possible.
List All NuGet Dependencies
The first practical step is to create an inventory of the application's packages.
For SDK-style projects, use:
dotnet list packageFor newer .NET SDK versions, you may also encounter:
dotnet package listThe command output gives you a starting point for identifying direct and transitive dependencies.
For example:
Top-level Package
> Microsoft.Extensions.Http
> Newtonsoft.Json
> Some.Database.Client
> Some.Native.LibraryDo not stop at the direct packages.
A package you explicitly installed may depend on another package that contains native runtime assets.
Separate Managed and Native Dependencies
This is one of the most important steps in the audit.
A fully managed assembly generally does not contain CPU-specific machine code in the same way a native DLL does.
For example:
using Newtonsoft.Json;
var json = JsonConvert.SerializeObject(
new { Name = "Developer" });
Console.WriteLine(json);The application does not need a different C# implementation for Arm64 simply because it uses JSON serialization.
A native dependency is different.
For example:
[DllImport("NativeProcessor.dll")]
private static extern int ProcessData();The CLR must load NativeProcessor.dll into the process.
If that DLL is x64-only, an Arm64 process can encounter a loading failure.
This distinction should guide your dependency review.
Inspect the Runtime Assets in NuGet Packages
NuGet packages can contain architecture-specific files under the runtimes directory.
A package may contain assets such as:
runtimes/
win-x64/
native/
library.dllAnother package may provide:
runtimes/
win-x64/
native/
library.dll
win-arm64/
native/
library.dllThe second package is much more useful for a native Arm64 deployment because it explicitly provides an Arm64 runtime asset.
When reviewing a package, look for directories such as:
runtimes/win-arm64and:
runtimes/win-x64The presence of win-arm64 is a strong compatibility signal, although it should still be validated with the actual package version you plan to deploy.
Check the Assets File
For deeper dependency analysis, inspect the generated NuGet assets file:
obj/project.assets.jsonThis file contains information about how NuGet resolved packages for the project.
Search for:
win-arm64and:
win-x64You may also search for:
nativeThis can help identify packages that bring architecture-specific assets into the application.
For example:
"runtime": {
"win-arm64": {
"NativeLibrary.dll": {}
}
}indicates that the dependency provides an Arm64 runtime asset.
Do not manually edit project.assets.json. It is generated by NuGet and should be treated as diagnostic output.
Use dotnet nuget why to Trace Dependencies
A package that looks harmless may be introduced by another dependency.
Modern .NET SDK versions provide:
dotnet nuget whyFor example:
dotnet nuget why MyApplication.csproj Some.Native.PackageThis helps answer an important question:
Why is this package part of my application?
The dependency chain might look like:
MyApplication
|
+-- Reporting.Package
|
+-- Native.Rendering.PackageYou may not have installed Native.Rendering.Package directly, but your application still depends on it.
This is especially useful when investigating large applications with many transitive dependencies.
Check Native DLLs in the Application
NuGet is only part of the dependency picture.
Some applications carry native DLLs directly inside the repository.
Search the project and output directories for files such as:
*.dll
*.exe
*.sysNot every DLL is native, so the file extension alone is not enough to determine compatibility.
Pay particular attention to libraries loaded using:
DllImportor:
NativeLibrary.LoadFor example:
using System.Runtime.InteropServices;
var handle = NativeLibrary.Load("NativeProcessor.dll");These calls should trigger a manual review.
Review P/Invoke Code
Platform invocation, commonly called P/Invoke, is another area that deserves attention.
For example:
[DllImport("user32.dll")]
private static extern int MessageBox(
IntPtr hWnd,
string text,
string caption,
uint type);Operating-system APIs may have Arm64-compatible implementations, but custom native libraries are more likely to cause migration problems.
Search the codebase for:
DllImport
LibraryImport
NativeLibrary.Load
NativeLibrary.TryLoadAlso search for project files and configuration that reference native libraries.
For newer applications, you may see source-generated interop such as:
[LibraryImport("NativeProcessor")]
private static partial int ProcessData();The same architecture question still applies: the native library must support the target architecture.
Check Database Drivers
Database connectivity deserves a separate review because database providers can have native components.
Start by identifying the database libraries used by the application.
Examples include:
SQL Server providers
PostgreSQL providers
Oracle providers
SQLite libraries
ODBC-based integrations
Vendor-specific database SDKs
A fully managed provider may be straightforward.
A provider that depends on native client libraries requires additional verification.
For example, an application might use:
Application
↓
.NET Database Provider
↓
Native Database Client
↓
Database ServerThe database server architecture is not necessarily the issue.
The native client installed on the application machine is.
Make sure the client library used by the application supports Windows Arm64.
Check Third-Party SDKs
Third-party SDKs are another common source of migration issues.
Examples include:
Payment SDKs
Document processing libraries
Video processing tools
Hardware SDKs
Security libraries
Barcode scanners
Printing SDKs
Camera integrations
AI inference libraries
Ask the vendor these questions:
Does the SDK support Windows Arm64?
Is the support native or dependent on emulation?
Which package version introduced Arm64 support?
Are all required DLLs available for Arm64?
Is the installer Arm64-compatible?
Are drivers required?
Is there a separate Arm64 package?
Do not rely solely on the CPU architecture listed on the vendor's product page.
The complete SDK stack needs to be compatible.
Check Build and Publish Configuration
Dependency compatibility can also be affected by the application's build configuration.
Inspect the project file for properties such as:
<RuntimeIdentifier>win-x64</RuntimeIdentifier>or:
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>If both architectures need to be supported, you can explicitly declare both:
<PropertyGroup>
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
</PropertyGroup>You can then publish the appropriate runtime:
dotnet publish -c Release -r win-arm64and:
dotnet publish -c Release -r win-x64This makes the architecture targets explicit in the build process.
Check the Published Output
Never assume that a successful dotnet build proves deployment compatibility.
Publish the application:
dotnet publish -c Release -r win-arm64Then inspect the generated output.
Look for:
Native DLLs
Runtime-specific directories
Missing dependencies
Unexpected x64-only binaries
Required configuration files
Third-party native components
Run the published application on a Windows Arm64 system.
This is more meaningful than testing only from Visual Studio on a development machine.
Check Application Architecture at Runtime
Add temporary diagnostic logging during the migration test.
using System.Runtime.InteropServices;
Console.WriteLine(
$"OS: {RuntimeInformation.OSArchitecture}");
Console.WriteLine(
$"Process: {RuntimeInformation.ProcessArchitecture}");
Console.WriteLine(
$"Framework: {RuntimeInformation.FrameworkDescription}");For a native Arm64 process, you should expect the process architecture to report:
Process: Arm64If the process is running under another architecture or compatibility layer, the result may differ from what you expect.
This information is valuable when troubleshooting third-party components.
Create a Dependency Compatibility Matrix
For a larger application, maintain a simple dependency matrix.
Dependency | Type | Current Target | Arm64 Support | Action |
|---|---|---|---|---|
JSON library | Managed | Any CPU | Yes | Keep |
Database provider | Managed | Any CPU | Verify | Test |
Native image library | Native | x64 | No | Replace/upgrade |
Payment SDK | Native | x64 | Vendor-dependent | Verify |
Logging library | Managed | Any CPU | Yes | Keep |
Hardware SDK | Native | x64 | Unknown | Contact vendor |
This makes the migration decision easier.
It also gives developers and operations teams a record of why a particular dependency was upgraded or replaced.
Common Dependency Problems
The package supports .NET but not Arm64
.NET compatibility and CPU architecture compatibility are not the same thing.
A package can support your target framework while still depending on an x64 native library.
Check its runtime assets and vendor documentation.
A transitive dependency causes the failure
You may not have directly installed the problematic package.
Use:
dotnet nuget whyto identify which package introduced it.
The application works in Visual Studio
This does not necessarily mean the published application is compatible.
The development machine may have additional runtimes, native libraries, or tooling installed.
Always test the published artifact on the target environment.
An x64 dependency runs through emulation
Windows on Arm can run some x64 applications through emulation, but that should not automatically be treated as native Arm64 compatibility.
For production applications, determine whether the dependency has a native Arm64 build and whether performance, supportability, and licensing requirements make emulation acceptable.
The installer is the real problem
Sometimes the application itself runs correctly, but installation fails because the installer assumes an x64 environment.
Check the complete deployment chain rather than testing only the application executable.
A Practical Dependency Audit Checklist
Before approving an Arm64 migration, verify the following:
Confirm the target .NET version.
List direct NuGet dependencies.
Investigate transitive dependencies.
Identify packages containing native assets.
Search the codebase for P/Invoke and native library loading.
Check database client dependencies.
Verify third-party SDK support.
Check project runtime identifiers.
Publish specifically for
win-arm64.Inspect the published output.
Test on actual Windows Arm64 hardware.
Test installation and application updates.
Record unsupported dependencies and their replacement plans.
Keep the compatibility matrix updated.
Best Practices
Treat native dependencies as migration blockers until verified
Do not mark an application as Arm64-ready simply because the main project compiles.
Every native dependency should have a known compatibility status.
Keep dependency versions controlled
Use predictable package versions rather than allowing unexpected dependency changes during the migration.
A package update can introduce or remove native runtime assets.
Test the exact production package
The artifact that passes testing should be the artifact that goes through deployment.
Avoid validating one build and deploying another.
Keep architecture-specific logic isolated
If a dependency requires different initialization for Arm64 and x64, isolate that logic rather than spreading architecture checks throughout the application.
Document unsupported dependencies
If one component cannot yet run natively on Arm64, document:
Dependency name
Version
Reason for incompatibility
Current workaround
Vendor support status
Replacement plan
This prevents the same investigation from being repeated later.
Advantages and Disadvantages of a Dependency Audit
Area | Advantage | Consideration |
|---|---|---|
Risk management | Finds compatibility issues early | Requires investigation time |
Build reliability | Makes runtime targets explicit | CI/CD may need additional configuration |
Maintenance | Creates a clear dependency inventory | Inventory must be maintained |
Troubleshooting | Makes native failures easier to isolate | Some vendor dependencies require external support |
Deployment | Reduces production surprises | Hardware testing is still necessary |
Conclusion
Checking .NET dependencies before moving an application to Windows Arm64 is one of the most important parts of the migration process.
The application source code may require little or no modification, but native dependencies can change the migration effort significantly. NuGet packages, database drivers, P/Invoke libraries, third-party SDKs, installers, and deployment scripts should all be reviewed.
Start with the application's dependency inventory, identify native components, trace transitive packages, verify Arm64 support, and publish a real win-arm64 build for testing.
The most useful rule is simple: do not ask only whether the .NET application supports Arm64. Ask whether every dependency required by the application supports the way you plan to run it on Arm64.
That dependency-level view gives you a much more reliable migration plan and helps prevent runtime failures after deployment.

Join the conversation! Your thoughts help the community grow.