How to identify that an assembly has been compiled with/for .NET 4.5, as opposed to .NET 4.0?

后端 未结 2 1096
你的背包
你的背包 2021-01-12 17:23

I have some build agents that is building .NET code for us through a TeamCity setup, and I\'m beginning to wonder if despite the project settings, they\'re outputting .NET 4

2条回答
  •  不知归路
    2021-01-12 17:39

    The metadata version v4.0.30319 is for .Net 4.0. See here:

    Generation Version number

    1.0 - 1.0.3705

    1.1 - 1.1.4322.573

    2.0 - 2.0.50727.42

    3.0 - 3.0.4506.30

    3.5 - 3.5.21022.8

    4.0 - 4.0.30319.1

    4.5 - 4.5.50709.17929

    4.5.1 - 4.5.50938.18408

提交回复
热议问题