-4

For reasons I cannot explain on SO we cannot update one of our projects to the new VS2017 csproj format, it has to stay "classical". We still want the project to target .NET Core 2.1. How to do that?

If I change the TargetFrameworkVersion from "v4.5.2" to "netcoreapp2.1" the project can't be loaded anymore.

2
  • 2
    AFAIK, it can't be done. you need to use the new csproj format in order to use the newer, simpler format. May 21, 2019 at 9:52
  • 1
    Why the downvotes?
    – D.R.
    May 22, 2019 at 12:14

1 Answer 1

1

It cant be done. VS reads the project files differently, and as such requires a different format. If there is a technical reason why you cant upgrade the solution, you need to have a think about how important that technical reason is for stopping the project from evolving. Failing all of that - can the code be split out into a new project that "can" be upgraded?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.