|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GAC and developmentgoing forward. I have done a bit of research and determined a process based on that research on how to manage the assemblies for deployment. Here is my issue, all of the information I find talks about what you should do for deployment to prod, I've not found very much on how to handle this with a team of developers. Where do we put the assemblies? How do we get each of the dev boxes updated on a daily basis? How do each of the projects get updated to reference the current build of the assembly? How do we deploy current builds, but not screw up anything that may be a work in progress on the developers box? E.G. they are responsible for fixes a bug in a shared assembly. Anyone currently using the GAC that would like to share how they accomplish this? Thanks Wayne You don't need to put the assembiles into GAC while developing.
Just put them there once the program goes into production... Hi,
>> Where do we put the assemblies? You decide. If the assemblies are shared between multiple applications,only then, it makes sense to install them to the GAC. Else, just keep them in the application bin directory. >> How do we get each of the dev boxes updated on a daily basis? A better option might be to hard code the version no. of the assembly>> How do each of the projects get updated to reference the current build of the assembly? in the AssemblyInfo file. By default, it is : <Assembly: AssemblyVersion("1.0.*")> You can change this to <Assembly: AssemblyVersion("1.0.0.0")> or anything similar. Therefore, each subsequent build of your assembly will have the same version. So, no updation is required in the Client application. >> How do we deploy current builds, but not screw up anything that may be a work in progress on the developers box? E.G. they are responsible forfixes a bug in a shared assembly. Jan is right, you need to install to the GAC, only when your development work is over, and you're at the deployment stage. Or else, you're going to have a whole slew of different versions of the same assembly in your GAC. Though that isn't going to cause any problems, since the applications that were using the older version will continue to do so, without breaking. Regards, Cerebrus. hi,
....only for the case, that you still wanting to use the gac, because of speed improvement if you don't want to recompile your client(s), you should create a "publisher policy" for this new dll, in order to redirect the "old" client to your new version of the dll. (the client holds the compiled version of the dll in his metadata, so if you recompile your strong named dll, you get a new version) => use al.exe for publisher policy + snk file if you are bored of "manual working" you can use the shareware "GacPublish" for advanced deployment of assemblies + activeX .... more after using goooogle disadvantage => documentation only in german at this time .... english version will follow? adrian p.s hope that my english is still usable ;-) |
|||||||||||||||||||||||