asp.net - Errors after upgrading to netcoreapp2.0 -


i upgraded asp.net core solution netcoreapp1.1 netcoreapp2.0:

  • i used upgrade guide
  • installed new sdk
  • upgraded vs2017 15.3.1
  • removed old nuget packages, , replaced them new metapackage
  • cleaned solution, manually deleted bin , obj directories, , rebuilt

i tried tips found such as:

  • removed packagetargetfallback / assettargetfallback not necessary
  • ensured csproj don't have runtimeframeworkversion / netstandardimplicitpackageversion
  • tried , without global.json in solution root { "sdk": { "version": "2.0.0" } }
  • deleted .vs directory in solution root
  • cleared nuget package cache (tools-options-nuget-clear), , restored

however lots of errors this:

the type 'object' defined in assembly not referenced. must add reference assembly 'netstandard, version=2.0.0.0, culture=neutral, publickeytoken=cc7b13ffcd2ddd51'.

what more must do?

turns out had directory.build.props file in solution root, had common msbuild stuff projects in solution.

that file referenced netcoreapp1.1. once updated netcoreapp2.0, worked.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -