What .NET Framework and C# version should I target with my class library?

后端 未结 12 1050
故里飘歌
故里飘歌 2020-12-29 11:04

I\'m building a DLL class library - I want to make it usable by as many people as possible. Which version of the .NET Framework and which C# version should I use? Is it po

12条回答
  •  失恋的感觉
    2020-12-29 11:50

    If I were to start a new project, I would always use the newest runtime! If 3.5 is available, why would I need to start a project in 2.0, or 1.0 unless I knew that there is something seriously wrong with the new version? New versions mean fixing old bugs and adding new features so this is good.

    When it comes to upgrading old project to a new version, then you need to consider your gains and losses. If its worthed, upgrade it, if not stick with the old version.

    Be careful thought because new tools might not support older versions. Though this is not the case with 2010 as it will support all version up to 2.0.

提交回复
热议问题