{"action":"created","issue":{"url":"https://api.github.com/repos/GitTools/GitVersion/issues/544","labels_url":"https://api.github.com/repos/GitTools/GitVersion/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/GitTools/GitVersion/issues/544/comments","events_url":"https://api.github.com/repos/GitTools/GitVersion/issues/544/events","html_url":"https://github.com/GitTools/GitVersion/issues/544","id":97757513,"number":544,"title":"MajorMinorPatchTag - AssemblyVersion vs AssemblyFileVersion","user":{"login":"veccie","id":13075972,"avatar_url":"https://avatars.githubusercontent.com/u/13075972?v=3","gravatar_id":"","url":"https://api.github.com/users/veccie","html_url":"https://github.com/veccie","followers_url":"https://api.github.com/users/veccie/followers","following_url":"https://api.github.com/users/veccie/following{/other_user}","gists_url":"https://api.github.com/users/veccie/gists{/gist_id}","starred_url":"https://api.github.com/users/veccie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veccie/subscriptions","organizations_url":"https://api.github.com/users/veccie/orgs","repos_url":"https://api.github.com/users/veccie/repos","events_url":"https://api.github.com/users/veccie/events{/privacy}","received_events_url":"https://api.github.com/users/veccie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-28T17:24:31Z","updated_at":"2015-07-29T00:48:51Z","closed_at":null,"body":"I don't know if this is a bug or how it's suppose to be, so this is maybe more a question about the logic and thought behind MajorMinorPatchTag.\r\n\r\nWhen using the MajorMinorPatchTag scheme the applied assembly versions look like this:\r\n```\r\n[assembly: AssemblyVersion(\"0.4.0.12\")]\r\n[assembly: AssemblyFileVersion(\"0.4.0.0\")]\r\n[assembly: AssemblyInformationalVersion(\"0.4.0-alpha.12+Branch...\")]\r\n```\r\nThe AssemblyVersion has number of commits(which is correct) but AssemblyFileVersion doesn't. When I look in the code I can see that AssemblyVersion is set according to the scheme(via AssemblySemVer). AssemblyFileVersion however is always set to MajorMinorPatch + \".0\", which means that the MajorMinorPatchTag scheme actually is ignored?\r\n\r\nWhy isn't AssemblyFileVersion set to AssemblySemVer also? Does it course problems elsewhere?\r\n\r\nThe AssemblyVersion is hidden from file properties, so it can be confusing to see 0.4.0.0 when deep down it's actually 0.4.0.12. I know that AssemblyInformationalVersion for example shows 0.4.0-alpha.12+Branch... but that doesn't necessarily tell me the truth about the AssemblyVersion, unless MajorMinorPatch scheme is used.\r\n\r\nIf these version numbers really are suppose to be different then shouldn't it be the other way around, if you consider what the CLR cares about: AssemblyVersion?\r\n```\r\n[assembly: AssemblyVersion(\"0.4.0.0\")]\r\n[assembly: AssemblyFileVersion(\"0.4.0.12\")]\r\n```\r\nIn any case, I think both version properties should be set to the same version: 0.4.0.12 when using the MajorMinorPatchTag scheme. In fact couldn't they always be set to the same version?"},"comment":{"url":"https://api.github.com/repos/GitTools/GitVersion/issues/comments/125792641","html_url":"https://github.com/GitTools/GitVersion/issues/544#issuecomment-125792641","issue_url":"https://api.github.com/repos/GitTools/GitVersion/issues/544","id":125792641,"user":{"login":"veccie","id":13075972,"avatar_url":"https://avatars.githubusercontent.com/u/13075972?v=3","gravatar_id":"","url":"https://api.github.com/users/veccie","html_url":"https://github.com/veccie","followers_url":"https://api.github.com/users/veccie/followers","following_url":"https://api.github.com/users/veccie/following{/other_user}","gists_url":"https://api.github.com/users/veccie/gists{/gist_id}","starred_url":"https://api.github.com/users/veccie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veccie/subscriptions","organizations_url":"https://api.github.com/users/veccie/orgs","repos_url":"https://api.github.com/users/veccie/repos","events_url":"https://api.github.com/users/veccie/events{/privacy}","received_events_url":"https://api.github.com/users/veccie/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T00:48:51Z","updated_at":"2015-07-29T00:48:51Z","body":"Both:\r\n\r\nExe:\r\nhttps://github.com/GitTools/GitVersion/blob/master/src/GitVersionExe/AssemblyInfoFileUpdate.cs#L38\r\n\r\nTask:\r\nhttps://github.com/GitTools/GitVersion/blob/master/src/GitVersionTask/AssemblyInfoBuilder/AssemblyInfoBuilder.cs#L42"}}