in Education by
There are three assembly version attributes. What are differences? Is it ok if I use AssemblyVersion and ignore the rest? MSDN says: AssemblyVersion: Specifies the version of the assembly being attributed. AssemblyFileVersion: Instructs a compiler to use a specific version number for the Win32 file version resource. The Win32 file version is not required to be the same as the assembly's version number. AssemblyInformationalVersion: Defines additional version information for an assembly manifest. This is a follow-up to What are the best practices for using Assembly Attributes? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
AssemblyVersion Where other assemblies that reference your assembly will look. If this number changes, other assemblies must update their references to your assembly! Only update this version if it breaks backward compatibility. The AssemblyVersion is required. I use the format: major.minor (and major for very stable codebases). This would result in: [assembly: AssemblyVersion("1.3")] If you're following SemVer strictly then this means you only update when the major changes, so 1.0, 2.0, 3.0, etc. AssemblyFileVersion Used for deployment (like setup programs). You can increase this number for every deployment. Use it to mark assemblies that have the same AssemblyVersion but are generated from different builds and/or code. In Windows, it can be viewed in the file properties. The AssemblyFileVersion is optional. If not given, the AssemblyVersion is used. I use the format: major.minor.patch.build, where I follow SemVer for the first three parts and use the buildnumber of the buildserver for the last part (0 for local build). This would result in: [assembly: AssemblyFileVersion("1.3.2.42")] Be aware that System.Version names these parts as major.minor.build.revision! AssemblyInformationalVersion The Product version of the assembly. This is the version you would use when talking to customers or for display on your website. This version can be a string, like '1.0 Release Candidate'. The AssemblyInformationalVersion is optional. If not given, the AssemblyFileVersion is used. I use the format: major.minor[.patch] [revision as string]. This would result in: [assembly: AssemblyInformationalVersion("1.3 RC1")]

Related questions

0 votes
    There are three assembly version attributes. What are differences? Is it ok if I use AssemblyVersion and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    There are three assembly version attributes. What are differences? Is it ok if I use AssemblyVersion and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 26, 2022 in Education by JackTerrance
0 votes
    What are the differences between Blockchain and Hyperledger?...
asked Jan 22, 2023 in Technology by JackTerrance
0 votes
    What are the advantages/disadvantages between MS VS C++ 6.0 and MSVS C++ 2008? The main reason ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 1, 2022 in Education by JackTerrance
0 votes
    What are the advantages/disadvantages between MS VS C++ 6.0 and MSVS C++ 2008? The main reason ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 29, 2022 in Education by JackTerrance
0 votes
    What are the advantages/disadvantages between MS VS C++ 6.0 and MSVS C++ 2008? The main reason ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 29, 2022 in Education by JackTerrance
0 votes
    There are two codes, what are the difference between them: Using type import types if type(q) is types. ... ): do_something_else() Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    Can someone state the difference between the assignment operators = and...
asked Jan 20, 2022 in Education by JackTerrance
0 votes
    What are the differences between flow of matter and of energy in an ecosystem? Why? Select the ... ,Science proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
0 votes
    Can someone state the difference between the assignment operators = and...
asked Oct 30, 2021 in Education by JackTerrance
0 votes
    What are the differences between get and post method?...
asked Sep 28, 2021 in Technology by JackTerrance
0 votes
    What are the differences between TCP and UDP?...
asked Aug 16, 2021 in Technology by JackTerrance
0 votes
    What are the differences between Blazor Server and Blazor WASM?...
asked Aug 9, 2021 in Technology by JackTerrance
0 votes
    What are the differences between Local Metastore and Remote Metastore?...
asked Aug 6, 2021 in Technology by JackTerrance
0 votes
    What are the main differences between HDFS (Hadoop Distributed File System ) and Network Attached Storage(NAS) ?...
asked Aug 2, 2021 in Technology by JackTerrance
...