(You probably already know this) You don't need the .snk file to build
in Release mode. If you comment out these lines from the
AssemblyInfo.cs file:

 #if STRONG
 [assembly: AssemblyDelaySign(false)]
 [assembly: AssemblyKeyFile(@"..\..\..\log4net.snk")]
 #endif

You can build in Release mode.

Where did you end up putting the .snk file to get it to build? It
sounds like the .snk file needs to be in two different locations
depending on whether you're building the complete source or just the
extensions. Is that the case? At first glance, I would have thought the
.snk needs to be in the root /src folder and everything knows to find
it there. It sounds like that's not the case.

--- Jeremiah Voris <[EMAIL PROTECTED]> wrote:

> On 7/21/05, Jeremiah Voris <[EMAIL PROTECTED]> wrote:
> > On 7/21/05, Jeremiah Voris <[EMAIL PROTECTED]> wrote:
> > > On 7/21/05, Nicko Cadell <[EMAIL PROTECTED]> wrote:
> >      <snip>
> > > > I suggest that you give the EventID extension a try.
> > 
> > Built it, used it, works like a charm. Thanks!
> 
> So I just went through the process of building a release version of
> this and got some wierdness. I was under the impression that the .snk
> file locations outlined in the AssemblyInfo file were relative to the
> build target directory. When I tried to place the .snk file there,
> however, there was no love.
> 
> The release build output path is set to ..\build\release\ which would
> be log4net\extensions\net\1.0\log4net.Ext.EventID\cs\build\release
> and, by god, that is where it put my log4net.Ext.EventID.dll file
> when
> I finally did get it to build. The AssemblyInfo file says to look for
> the .snk file in ..\..\..\..\log4net.Ext.EventID.snk which would be
> log4net\extensions\net\1.0\log4net.Ext.EventID.snk but when I put the
> file there, as I said, I did not get success. So then I tried putting
> it in the same directory the log4net.snk file is in, and no dice
> again. I tried a couple of other random targets and then, finally, on
> a whim I went another ..\..\..\..\ up from where I originally tried
> to
> put it and I was able to build!
> 
> Can you explain what the heck is going on there? I'll note this is
> ..\
> from the root log4net directory that I had to put the
> log4net.Ext.EventID.snk file...
> 
> 
> Perplexed,
> -- 
> 533777336444244
> 

Reply via email to