Project Properties in VS2022

Peter Volz 1,295 Reputation points

Hello experts,

There's a C# Class Library (dll) project and it was set to netstandard2.0 and net40.

I removed the netstandard2.0 since only net framework 4.0 is needed in the project properties but project.csproj is still in the new SDK style, I need to convert it to legacy style to be able to compile it using 2013, and also remove all nupkg properties.

Please advise which tool can do this conversion.

Also the new format is strange, it always compile to bin/Release/net40 while I can't find the net40 path in the project, also, project files are not mentioned in the .csproj or .sln file or any other file, how's that?

Thanks all :)

Project File: ABCD.csproj.txt

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,159 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce ( 54,621 Reputation points

    in the new project style, which supports building multiple framework versions, the build is always under the framework folder name. nuget package references are in the project rather than a separate file (packages.config)

    there is no downgrade tool. the easiest is to create a new class lib with the version you want. add in the nuget packages, and the source code.

    note: the extended support of vs2013 ends 4/9/24. net 4.* < 4.8 support has already ended. for security reasons you should upgrade to 4.8

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful