September 15, 2026

[Solved] Visual Studio 2026 “VSCommonPackage” Error After D365FO 10.0.49 Update

Hello,

With the release of Dynamics 365 Finance & Operations (D365FO) 10.0.49, developers are required to move to the newer Visual Studio 2026 development environment. While the upgrade itself is generally straightforward, some developers may encounter the following warning when launching Visual Studio:

"The 'VSCommonPackage' package did not load correctly."




The VSCommonPackage is a core Visual Studio component responsible for loading common services and functionality used by Visual Studio extensions and development workloads.

Solution: 

1. Close Visual Studio and delete the following folder:
C:\Users\<User>\AppData\Local\Microsoft\VisualStudio\18.0_xxxxx\ComponentModelCache

2. Launch Visual Studio in Safe Mode, Open a command prompt and execute: devenv /safemode

3. Reset Visual Studio Settings, Execute: devenv /resetsettings. This restores the default Visual Studio configuration.


Now try to reopen VS and you should be able to use it without any issue now. 

In case you are still facing issues, worth to check my earlier post on similar error, 

https://www.theaxapta.com/2026/03/solved-vsprojectpackage-package-did-not.html



-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

June 30, 2026

Friend Packages in D365FO

Hi Folks,

In this post let’s learn about Friend packages in D365FO, which are part of the development model and are configured via Visual Studio. 

A friend package allows one model/package to access internal members (classes/methods) of another package. Normally, only public elements are accessible across models, but this feature extends controlled visibility. They should be used carefully as part of a well-governed architecture strategy.

 This feature allows controlled access between models/packages, specifically enabling access to internal elements without exposing them as public APIs. 

For instance, A core framework model contains internal helper classes for integration. Instead of making them public, you declare integration models as friend packages so they can reuse internal logic safely

Without Friend Package: - Only public elements are accessible 

With Friend Package: - Both public and internal elements are accessible (controlled) 

Why Use Friend Packages?

       Maintain proper encapsulation

       Avoid making everything public

       Enable controlled reuse of logic

       Improve architectural cleanliness

How to Configure

       Open Visual Studio

       Navigate to Extension menu →  Dynamics 365 → Model Management → Update model parameters

       Select model

       Proceed to ‘Select friend packages’ step

       Add required package

       Finish and rebuild

Benefits

       Better encapsulation

       Controlled reuse

       Cleaner architecture

       Reduced duplication

Limitations

       Not a replacement for APIs

       Can introduce tight coupling if misused

       Requires governance


-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta