'You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2'

Visual Studio 2022

I recently created an automation framework "prototype" project for my work. I created a nuget package for this framework following these instructions. I then created a new, separate project to try and install this nuget package with and I'm getting the following error: enter image description here

I've looked through a lot of posts about this error and checked multiple things but nothing seems to be working. I've double checked that both my framework project and the target project are both the same output type / target framework:

Framework project:

enter image description here


Target project:

enter image description here

I've also checked both the csproj files for these projects and they both reference v4.7.2 as well. enter image description here

I feel like I should be able to install this nuget package based on all this and the posts I've been reading that have fixes.

UPDATE Nuspec file for the framework project enter image description here



Solution 1:[1]

Karl's comment above seemed to do the trick. Somewhere I seemed to have missed a nuget pack. Once I did that it looks like the nuget package is able to be installed successfully.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user1818298