Share via


"Could not install package 'Microsoft.Bot.Builder 4.1.5'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible wit

Question

Thursday, November 15, 2018 11:22 AM

Hello,

We have created nuget package of custom dll and uploaded in Artifactory server which supports nuget repositories.

We are also able to see nuget package in "Manage Nuget packages for solution"

When i tried to install, it is showing Above (Headding)error.

 I am using Visual Stdio 2107(Professional)

Any Idea ?

All replies (6)

Friday, November 16, 2018 5:53 AM

Hi Bunny,

Welcome to the MSDN forum.

Refer to the error message, it seems this Nuget package not compatible with .NET Framework 4.6. The Microsoft.Bot.Builder (4.1.5) is depends on .NET Standard 2.0, if your project is target .NET Framework 4.6, please try to create a new project with .NET Standard 2.0 and install this package.

Go to File-New-Project and C#/VB and click ‘.NET Standard’ tab to select one project type to create, I tried it in my side and it works fine as below:

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Tuesday, November 20, 2018 7:00 AM

Hi Bunny,

Have you tried to create a .NET Standard project and install this Nuget package? If this issue persists, please update your information in here and we will help you analysis it again.

If your issue is solved, we are also welcome you to share the solution or mark the helpful reply, then we can close this thread, thank you for your understanding.

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Tuesday, November 20, 2018 7:31 AM

My Project Was already >NETStanderd Version =2.0

 Still Error.


Tuesday, November 20, 2018 8:10 AM

Hi Bunny,

Thank you for your update.

What's your VS 2017 detail version? You can go to Help-About Microsoft Visual Studio to check and share it.

If you create a new .NET Standard 2.0 project, does this issue persists or not? If so, could you please share the detail steps to reproduce this issue, like project type...

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Tuesday, November 20, 2018 8:41 AM

Microsoft Visual studio Proffesional 2017   **<Version =15.8.8) **

 I am trying what you say ,But still same error 


Thursday, November 22, 2018 9:40 AM

Hi Bunny,

Thanks for your detail information.

Please have a try with the following:

1. Upgrade VS to 15.9.2 to test

2. Re-run the VS installer as administrator and repair it

3. re-install the .NET Standard 2.0

Best regards,

Sara

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]