Many Versions In One .NET SLN

mevjy's Avatar

mevjy

20 Jul, 2018 03:02 PM

My .net code base is now being asked to ship two different products and thus two different versions from the same sln. I would like to have two different AssemblyResource.cs files. One linked to half the projects in the sln and another linked to the other half and use the 'assembly_info' appveyor tag to patch the two files. The versions should share the same build number but have different major, minor, patch numbers. Is this possible or should I seek a different path?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 21 Jul, 2018 01:30 AM

    Ilya Finkelshteyn's Avatar

    AssemblyInfo patching happens only once during build job. That's why I would recommend to implement build matrix to split build to 2 separate jobs. You can create 2 configurations in VS, and tune them so each configuration builds only specific part of the projects. Set those 2 configurations in YAML or on Build tab (if you use UI).

    Then then you can specialize settings for AssemblyInfo patching for different matrix jobs.

    Build will contain 2 jobs, but it should not take significantly more time as each job will build only part of projects. And if you have spare concurrent job, it will be actually faster.

    Another advantage of this is clear separation of artifacts, especially indeed they are different products.

    Let us know if this works for you.

  2. Ilya Finkelshteyn closed this discussion on 27 Aug, 2018 08:33 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Oct, 2018 08:45 PM
23 Oct, 2018 07:48 PM
23 Oct, 2018 06:50 PM
23 Oct, 2018 06:06 PM
23 Oct, 2018 05:51 PM