Share via


targets '.NETStandard,Version=v1.5'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.0'

Question

Sunday, August 6, 2017 4:44 PM | 1 vote

Hello every time I try to build my project I get these 2 errors.

targets '.NETStandard,Version=v1.5'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.0'

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Net.Sdk\build\Microsoft.NET.Sdk.Common.targets  73

How do I change this error.

Thank you

All replies (1)

Monday, August 7, 2017 2:07 AM

Hi friend,

Change project targets framework to .netframework 4.5 or above.

Project name -> properties-> application:

Please let us know if it works.

 

Best regards,

Fletcher

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].