Visual studio. AssemblyVersion with * don't work

后端 未结 2 1020
梦毁少年i
梦毁少年i 2020-12-13 12:00

I can\'t use * in assembly version

Represents text as sequence of UTF-16 code units.To browse the .NET Framework source code for this type, see the Reference Source

相关标签:
2条回答
  • 2020-12-13 12:39

    I guess you were able to use it earlier and can't anymore.

    Reason - There have been some changes to Visual Studio as the new project files now default to 'True' for 'Deterministic' attribute.

    Solution - as Hans Passant says, edit project file by hand. Cons to doing it, also as he says.

    Source - https://marinovdh.wordpress.com/2018/10/22/68/

    0 讨论(0)
  • 2020-12-13 13:03

    Add <Deterministic> tag with false value and use * for the 3'rd part of AssemblyVersion inside <PropertyGroup> in .csproj file:

    <PropertyGroup>
        <ProduceReferenceAssembly>true</ProduceReferenceAssembly>
        <Version>1.0.0</Version>
        <AssemblyVersion>1.0.*</AssemblyVersion>
        <Deterministic>false</Deterministic>
    </PropertyGroup>
    
    0 讨论(0)
提交回复
热议问题