I have a C# Winforms application (MainProject) that references 2 other projects (Project1, Project2). When I call the Build target for MainProject.csproj with a new AssemblyName (Test) it builds Project1 and Project2 and tries to output their assemblies as Test.dll (rather than Project1.dll and Project2.dll as specified in the project properties)
This leads to the following error because because Project1 is version 188.8.131.52 and Project2 is version 184.108.40.206.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3243: No way to resolve conflict between "Test, Version=220.127.116.11, Culture=neutral, PublicKeyToken=ddbe980ea63b8a34" and "Test, Version=18.104.22.168, Culture=neutral, PublicKeyToken=ddbe980ea63b8a34". Choosing "Test, Version=22.214.171.124, Culture=neutral, PublicKeyToken=ddbe980ea63b8a34" arbitrarily.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.
Why are the referenced project being built with the passed in AssemblyName? How do I change the assembly name using the MSBuild and keep my referenced assemblies named to their original names?