| title | NuGet Error NU1201 | |
|---|---|---|
| description | NU1201 error code | |
| author | zhili1208 | |
| ms.author | lzhi | |
| ms.date | 06/25/2018 | |
| ms.topic | reference | |
| ms.reviewer | anangaur | |
| f1_keywords |
|
Project 'ProjectA' is not compatible with 'TargetFramework'. Project 'ProjectA' supports:
- 'TargetFrameworkA'
- 'TargetFrameworkB'
A dependency project doesn't contain a framework compatible with the current project. Typically, the project's target framework is a higher version than the consuming project.
Change the project's target framework to an equal or lower version than the consuming project.
Project 'ProjectB' is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project 'ProjectB' supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)
In this case:
- ProjectA targets NetStandard 2.0
- ProjectB targets NetCoreApp 2.0
- ProjectA has a project reference to ProjectB
NetStandard projects can never depend on a NetCoreApp project.
Either:
- change ProjectA to target NetCoreApp 2.0
or
- change ProjectB to target NetStandard 2.0