Versioning CommonAssemblyInfo.cs and MSBuild
        Posted  
        
            by James Thigpen
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by James Thigpen
        
        
        
        Published on 2010-05-28T17:02:16Z
        Indexed on 
            2010/05/28
            17:22 UTC
        
        
        Read the original article
        Hit count: 283
        
So I have a CommonAssemblyInfo.cs linked into all the projects in my solution and is dynamically generated by my rake/albacore scripts which is not checked into source control.
I also have a CommonAssemblyInfo.cs.local for use when there is no ruby available, mainly to be used by devs.
Is it possible to have a msbuild task or something that runs before any of the other project compilation that will copy CommonAssemblyInfo.cs.local to CommonAssemblyInfo.cs before trying to compile my solution? I hate having to have a command you have to just know about and type in order to open and buidl the solution in Visual Studio.
© Stack Overflow or respective owner