0
I recently created a package in Nuget in order to perform some tests with a private Nuget server.
I did it this way in Visual Studio 2017:
- I created a new Class Library project (.NET Standard)
- I implemented what I needed
- Then I managed the package
I went to the folder where the package is generated, took the generated . nupkg file and the generated folder and copied it to the Packages folder of the Nuget server.
Then it generates a folder with the package name.
After that, I opened an MVC application that uses . NET Framework 4.6 and went to the package manager to install the package I created, and after the installation attempt the following message was displayed:
"Unable to install 'Package Name' package. You are trying to install this package in a project that is intended to '. Netframework, Version=4.6, but the package does not count Assembly reference or content file that is compatible with this structure. For more information, please contact package author."
How do I fix it? I’ve searched for information in Microsoft documentation and couldn’t find anything that could help me clearly.
You have created a package that is not computable with 4.6, you need to tailor this package to work in this version of . NET FRAMEWORK.! ? The problem apparently is not the package but its version, in which version you made the package?
– novic
The package was made in the same version.
– Jonatan Santana
Whoever is told this is the error itself at the time of installation, you should not have done correct because . NET Standard is not always compatible (because it was not done) correctly. It has the project file?
– novic