I have been fiddling with this for a day but no luck. The assembly versioning with MSBUILD used to work before, but recently we have moved the solution files to a separate folder within the Root of the project, and since then the versioning has not been working.
Below is the project structure
Code folder
-> ProjectA folder
-> ProjectB folder
-> ProjectC folder
-> Solutions folder
*Previously the Solutions (.sln) files were under the Code folder.
When we run the MSBuild I get the below warning.
No assembly information files were provided
Below is a cut down version of the build log.
Delete Workspace
00:00 Delete Sources Directory
00:00 Create Workspace
01:14 Get Workspace
00:00 Versioning Assemblies
00:00 AssemblyVersion and AssemblyFileVersion Assembly Version Processing: Using version number patterns included in build definition
00:00 Set all Assembly Property Values (b) Versioning assemblies with the following patterns: AssemblyVersion(1.0.0.0) and AssemblyFileVersion(yyyy.mm.dd.b) No assembly information files were provided
Below is the MSBuild Task that produces the above log.
<local:VersionAssemblyInfoFiles
AssemblyFileVersionPattern="[AssemblyFileVersionPattern]"
AssemblyInfoFilePattern=" AssemblyInfoFilePattern]"
AssemblyVersionPattern="[AssemblyVersionPattern]"
BuildDirectory="[BuildDirectory]" BuildNumberPrefix="
[BuildNumberPrefix]" BuildSettings="[BuildSettings]"
DisplayName="Versioning Assemblies"
DoCheckinAssemblyInfoFiles="[DoCheckinAssemblyInfoFiles]"
ForceCreateVersion="[ForceCreateVersion]"
sap:VirtualizedContainerService.HintSize="200,22"
mva:VisualBasic.Settings="Assembly references and imported namespaces
serialized as XML namespaces" UseVersionSeedFile="[UseVersionSeedFile]"
VersionSeedFilePath="[VersionSeedFilePath]" Workspace="[Workspace]"
xmlns:local="clr-namespace:TfsBuild.Versioning.Activities;
assembly=TfsBuild.Versioning.Activities">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="ShouldCollapseAll">False</x:Boolean>
<x:Boolean x:Key="ShouldExpandAll">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</local:VersionAssemblyInfoFiles>
I also looked at the solution suggested here but have no luck. Can someone please point me to the right direction? I 'm no expert in MSBuild.
Thanks in advance.