0

Looking at the latest RC2 xproj projects, the AssemblyInfo.cs file is often missing several assembly attributes such as:

  • AssemblyTitle
  • AssemblyDescription
  • AssemblyCopyright
  • AssemblyCulture
  • AssemblyVersion
  • AssemblyFileVersion

When creating a web project, the AssemblyInfo is missing altogether. What is the reason for this and can/should we add them back in?

Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
  • 2
    Fortunately, xproj/json mess has been abandoned now. https://blogs.msdn.microsoft.com/dotnet/2016/05/23/changes-to-project-json/ – user9993 May 24 '16 at 10:27
  • The xproj features are being moved to csproj, so this question may still be useful for the new csproj. If csproj will compile to NuGet packages, then my answer below will still be relevant. – Muhammad Rehan Saeed May 24 '16 at 11:04

1 Answers1

1

After some experimentation, I discovered a partial answer. project.json contains a version number which is used to add AssemblyFileVersion and AssemblyInformationalVersion attributes at build time. The AssemblyInformationalVersion looks like it was added to handle version numbers with alpha characters which are used for pre-release semantic versioning.

Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
  • Actually it even supports some more attributes for the various other versions and attributes. But let us not focus on that. Create a .cs file with all the attributes in it. Like good old times. – Thomas May 25 '16 at 19:15