MSBuild cannot find the reference assemblies for the target framework
Your error
MSB3644: The reference assemblies for .NETFramework,Version=v4.7.2 were not found.2 more lines it can showFix it fast
Most common cause, 1 of 4The targeting pack for that .NET Framework version is not on this machine
Reference the Microsoft.NETFramework.ReferenceAssemblies NuGet package, which carries the reference assemblies and needs no admin install, so the build works on any machine with MSBuild or the .NET SDK.
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
</ItemGroup>Short answer
MSB3644 means MSBuild found no reference assemblies for the framework version the project asks for. Usually that .NET Framework targeting pack is missing on the machine, the project targets 4.0 to 4.5.1 which Visual Studio 2022 and later cannot build, or TargetFramework is misspelled. The Microsoft.NETFramework.ReferenceAssemblies package fixes the first case anywhere. Applies to VS 2022 and 2026.
Which cause do you have?
Read which framework the project requests, then look for a reference assembly folder with that version number. The two answers together point to one of the causes.
findstr /s /i "TargetFramework" *.csproj
dir "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework"
dir "C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework"Then find the line you see in this list and open its fix:
- 1The targeting pack for that .NET Framework version is not on this machine
The project asks for v4.6.2 to v4.8.1, and no folder with that version exists, typically on a fresh build agent or a Build Tools install - 2The project targets .NET Framework 4.0 to 4.5.1, which current Visual Studio cannot build
TargetFrameworkVersion is v4.0, v4.5 or v4.5.1, and the build runs in Visual Studio 2022 or 2026 - 3A typo or the wrong separator in the target framework properties
The framework name in the error looks odd, for example .NETCORAPP, or several frameworks run together in one name - 4The Visual Studio or MSBuild doing the build is older than the project's .NET version
The framework in the error carries a version .NET Framework never had (above 4.8.1), and msbuild -version prints 16.x or lower
What does the error look like?
MSB3644: The reference assemblies for .NETFramework,Version=v4.7.2 were not found.To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application.You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
Cause 1 of 4
The targeting pack for that .NET Framework version is not on this machine
You seeThe project asks for v4.6.2 to v4.8.1, and no folder with that version exists, typically on a fresh build agent or a Build Tools install
Check
MSB3644 for a supported .NET Framework version usually means its targeting pack was never installed here. Microsoft's description of the error says it appears when the reference assemblies folder for the requested version is absent or damaged. A machine gets the pack either from a Visual Studio installer component or from a standalone Developer Pack, so a build box set up any other way may have neither.
findstr /s /i "TargetFrameworkVersion TargetFramework" *.csprojFix
Reference the Microsoft.NETFramework.ReferenceAssemblies NuGet package, which carries the reference assemblies and needs no admin install, so the build works on any machine with MSBuild or the .NET SDK. Installing the Developer Pack for that version from Microsoft's download page also works, but must be repeated on every machine.
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
</ItemGroup>Verify
Restore and build again; the MSB3644 line is gone from the output.
msbuild -restore
msbuildConfirmed by raw.githubusercontent.com
Cause 2 of 4
The project targets .NET Framework 4.0 to 4.5.1, which current Visual Studio cannot build
You seeTargetFrameworkVersion is v4.0, v4.5 or v4.5.1, and the build runs in Visual Studio 2022 or 2026
Check
Microsoft's developer install guide states that from Visual Studio 2022 on, the components for .NET Framework 4.0 through 4.5.1 are gone and apps targeting them cannot be built. Those versions are out of support, as are 4.5.2, 4.6 and 4.6.1 since 26 April 2022.
findstr /s /i "<TargetFrameworkVersion>v4.0 <TargetFrameworkVersion>v4.5" *.csprojFix
Retarget the project to a supported version, ideally 4.8.1 or at least 4.6.2, and rebuild. Run your tests after the change. If retargeting is impossible right now, the guide's stated fallback is building with Visual Studio 2019.
<!-- classic project -->
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<!-- SDK-style project -->
<TargetFramework>net481</TargetFramework>Verify
The project builds in the current Visual Studio and the output folder holds the new assembly.
msbuild -restoreConfirmed by learn.microsoft.com
Cause 3 of 4
A typo or the wrong separator in the target framework properties
You seeThe framework name in the error looks odd, for example .NETCORAPP, or several frameworks run together in one name
Check
If TargetFramework, TargetFrameworks, TargetFrameworkIdentifier or TargetFrameworkVersion holds a misspelled value, MSBuild looks for reference assemblies that cannot exist. The MSB3644 page calls out two mistakes: an identifier such as .NETCORAPP instead of .NETCOREAPP, and a comma instead of a semicolon between frameworks.
findstr /s /i "TargetFrameworks TargetFrameworkIdentifier" *.csproj *.propsFix
Correct the spelling, and separate several frameworks with semicolons only.
<PropertyGroup>
<TargetFrameworks>net10.0;net481</TargetFrameworks>
</PropertyGroup>Verify
Each framework builds as its own output folder, such as bin\Debug\net10.0 and bin\Debug\net481.
dotnet buildConfirmed by learn.microsoft.com
Cause 4 of 4
The Visual Studio or MSBuild doing the build is older than the project's .NET version
You seeThe framework in the error carries a version .NET Framework never had (above 4.8.1), and msbuild -version prints 16.x or lower
Check
Microsoft's SDK and Visual Studio versioning page explains that each new TargetFramework needs a new Visual Studio or SDK, and that an SDK will not load in Visual Studio older than its minimum. For example, net10.0 needs Visual Studio 18.0 and net11.0 needs 18.12. An old build server or Visual Studio 2017 cannot resolve a modern target, and the build fails before compiling.
msbuild -versionFix
Build with a Visual Studio or Build Tools release that supports the target, or call dotnet build from a matching .NET SDK. On CI, move the job to an agent image with a current Visual Studio.
dotnet --list-sdks
dotnet build -c ReleaseVerify
msbuild -version reports 18.x (or the SDK build completes) and MSB3644 no longer appears.
msbuild -versionConfirmed by learn.microsoft.com
How do I stop it coming back?
- Add Microsoft.NETFramework.ReferenceAssemblies to every .NET Framework project, so a build machine never depends on an installed targeting pack.
- Keep TargetFramework values in one Directory.Build.props, which makes a typo show up once instead of in a dozen projects.
- Record the minimum Visual Studio version beside the TargetFramework in the README, and bump both in the same pull request.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine on the same stack: Raheeb, Loade Driver, Dhero.