Can AssemblyInfo patching work for only specific files

seandhunt_7's Avatar

seandhunt_7

02 Jun, 2018 07:01 PM

So like for example I got like 7~8 .NET (C# assemblies), some of them must be a separate version than what my main projects are. I only want to patch the AssemblyInfo.cs files to the main projects, not the non main which are in this case plugins (5 of the) loaded by a core dll which is then loaded by the main windows forms exe that both share the same version. The other 2 assemblies are non-versioned and are just used for build (like getting information from git or for doing the actual zipping of artifacts because I want it to also zip locally even outsize of AppVeyor. So doing a patch on only 2 of the AssemblyInfo.cs files on the projects might be helpful.

  1. Support Staff 1 Posted by Ilya Finkelshte... on 03 Jun, 2018 07:05 AM

    Ilya Finkelshteyn's Avatar

    You can share assemblyinfo file between projects you need to patch and patch only that file. This file can have different name as well.

    Some helpful info:
    https://stackoverflow.com/questions/6771694/shared-assemblyinfo-for...
    https://blogs.msdn.microsoft.com/jjameson/2009/04/03/shared-assembl...

  2. 2 Posted by seandhunt_7 on 08 Jun, 2018 02:24 AM

    seandhunt_7's Avatar

    Well unrelated but apperently if I call rc.exe on my laptop in a c# project it works but apperently in AppVeyor it fails under the default build with msbuild on the sln. You guys might want to add rc.exe to the path on the VS2017 boxes.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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