Andrew Stevenson's WebLog

Write Here Write Now

Syndication

.Net Languages

ADO.Net

Asp.Net (Misc.)

Asp.Net Controls

Bad Patterns

Err What?

Files and Folders

Forums

IE Add-Ins

Methods for the Madness

Performance

See Clearer, C#

Test Driven

August 2004 - Posts

Hot Fix :: VS.Net 2003 and VSS Dll Locking issue :: Please make it available

I'm sure that there are a lot of people who have this problem.
Is it possible to get a public release for this.
It is really annoying and I am tired of waiting for someone here to call support at MS.

FIX: "Cannot copy assembly" error message during the build process after you use the Get Latest command to retrieve solution files from Visual SourceSafe

http://www.kbalertz.com/kb_843370.aspx

 

Posted Tuesday, August 24, 2004 9:02 AM by AndrewSeven | 3 comment(s)

NUnit and ConfigurationSetings AppSettings

I've had the link below for a while, and now that I want to use it, I can't make it work. I don't even seem to have access to AppSettings from the nunit-gui.exe.config.

In a [Test] ConfigurationSettings.AppSettings.Count is zero :( and I would like to test some provider type stuff that relies on custom configuration sections.

Any suggestions or good links out there?

NUnit tip for ConfigurationSetings AppSettings:
 http://weblogs.asp.net/psperanza/archive/2004/02/24/79596.aspx

Posted Sunday, August 15, 2004 11:16 AM by AndrewSeven | 4 comment(s)

ID vs. Id (The naming of things)

I have a longtime habit of naming things like UserID with the i and the d capitalized, but FxCop doesn't seem to like that and keeps recommending Id.

Which do you use and which do you think is correct?

 

Posted Thursday, August 12, 2004 9:30 AM by AndrewSeven | 23 comment(s)

FxCop :: Do not declare explicit static constructors. Ignoreable?

I have this utility class nested in annother class and FxCop gives me a Critical warning.

DoNotDeclareExplicitStaticConstructors.html

I don't really think I have annother way to do it. Everything, including the ProductFields, is static or constant.

            public class FieldSets 

         {

                  public static readonly string Minimal;

                  static FieldSets()

                  {

                        CatalogSystemBase.FieldSets.Minimal = CreateFieldSet(ProductFields.ProductID,ProductFields.ProductName);

                  }

                  protected static string CreateFieldSet(string fieldSet,string fieldName)

                  {

                        return  CreateFieldSet(new string[]{fieldSet,fieldName});

                  }          

                  protected static string CreateFieldSet(params string[] fieldNames)

                  {

                        return String.Join(",",fieldNames);

                  }

            }

Added links to ctor stuff.

Perf penalty Static Constructor (Brad Abrams)

http://blogs.msdn.com/brada/archive/2004/04/17/115300.aspx


Quiz: Type Constructors (Brad Abrams)
http://blogs.msdn.com/brada/archive/2004/08/15/214948.aspx  

Posted Tuesday, August 03, 2004 9:20 AM by AndrewSeven | 6 comment(s)

More Posts