Can't seem to get class library projects to build after upgrading aspnet 5 from beta4 to beta5

后端 未结 1 998
夕颜
夕颜 2021-01-14 09:08

after upgrading from aspnet beta4 to beta5 I have a solution with multiple class library projects and a single web app. I\'m getting all kinds of errors. So I started over c

相关标签:
1条回答
  • 2021-01-14 09:54

    ok, for my purposes I solved the build problem by dropping the target for dnx451 in each of my projects and then configuring my web app to use the specific DNX version 1.0.0-beta5 .NET Core. that is in project.json for each project I removed "dnx451": { }, from the frameworks section, and in the properties for the web project I specified the DNX version to use.

    I suspect there is some kind of packaging snafu that is causing all the dnx451 errors I was having.

    For now my assumption is if it works under dnxcore50 then it will work later on dnx451/desktop framework. that is I assume dnxcore50 is a subset of the desktop framework and for now that is all I really need to work with to move forward with my app. I figure I can safely drop support for desktop framework now and add it back later after the packaging snafu has cleared up.

    by targeting only dnxcore50 in all of my project.json files I was able to get past all the errors and build and run my solution without errors.

    0 讨论(0)
提交回复
热议问题