Hello Mahdi Hosseini,
Thanks for taking the time to investigate this.
I tested this many times in many way but got the same result as you.
At this point, the best next step would be to raise this through the Visual Studio feedback channels, so it can be reviewed by the XAML designer and IntelliSense owners. That’s the team responsible for design-time resource discovery.
You can submit this via the Visual Studio Developer Community portal: https://developercommunity.visualstudio.com
When submitting, it will help to include:
- A minimal repro (app + custom control library → packed as NuGet)
- Confirmation that the resources work correctly at runtime
- The fact that IntelliSense resolves the resources when using a project reference but not when using the NuGet package
That information will allow the tooling team to evaluate whether additional design-time support is needed for this scenario.
As a temporary workaround during development, keeping the control library as a project reference (instead of NuGet) is the most reliable way to retain IntelliSense support.
Hope this helps, and thanks for surfacing the issue, feedback like this is valuable for improving the tooling experience.