I add the keys, and just click "Build" in VS.Net 2003.
I'm not using any build scripts yet; I'm not using any pre or post build
events (at least none that I'm aware of given that I'm only using VS.Net's
build); I'm not registering anything new with the GAC.
I simply add a single key for the solution, have all 10 projects reference
that key, and now the Rebuilds in VS go from 15 seconds to 3 minutes.
Thanks for any insight,
Mark
-----
Just adding the key shouldn't increase the time, as far as I can tell, by
that much.
How did you add the key to the solution? The best way is to reference the
key in each project's AssemblyInfo file.
(This assumes the location of the key is in the folder directly above the
project file)
For C#:
[assembly: AssemblyKeyFile(@"..\..\..\WhateverName.snk")]
For VB:
<Assembly: AssemblyKeyFile("..\..\..\WhateverName.snk")>
I have never seen a marked difference in compile times using this method.
Ideally, you want to use something like delay signing instead of using the
private/public key directly, though. For more information, check out this
article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/s
trongNames.asp.
Could you give a little more information about your changes to try to
pinpoint the differences in compile times?
Robert Hurlbut
http://www.securedevelop.net
http://weblogs.asp.net/rhurlbut
>I add the keys, and just click "Build" in VS.Net 2003.
>
[quoted text clipped - 39 lines]
>> > Thanks,
>> > Mark
Mark - 23 Nov 2004 04:47 GMT
> How did you add the key to the solution? The best way is to reference the
key in each project's AssemblyInfo file.
This is what I did.
>Could you give a little more information about your changes to try to
pinpoint the differences in compile times?
I'm not sure what else I can say - the only difference was that I added the
strong name key.
Thanks for the article reference. I think it's best for me to read that,
maybe there's something else I am unaware of.
Thanks!
Mark
> Just adding the key shouldn't increase the time, as far as I can tell, by
> that much.
[quoted text clipped - 66 lines]
> >> > Thanks,
> >> > Mark
Nicole Calinoiu - 25 Nov 2004 18:24 GMT
Is your key being used from a key container, a local file, or a file
residing elsewhere on a network? How deep do your inter-project references
run? What is the maximum number of other assemblies referenced by any given
project?
>> How did you add the key to the solution? The best way is to reference the
> key in each project's AssemblyInfo file.
[quoted text clipped - 91 lines]
>> >> > Thanks,
>> >> > Mark