home

my love hate relationship with .NET development

It’s just so darn easy to develop with .NET. The Visual Studio IDE just keeps getting better, and gosh, Microsoft even went to the trouble to make their crappy source control system (Visual Source Safe 6.0 which came out years and years ago) work amazing with Visual Studio. BUT, why-oh-why does it have to go and change all the file permissions on my xml settings files to read-only rightbefore they get built into the PocketPC ARM specific CAB to be deployed on the device?

After spending all morning debugging a new:

System.UnauthorizedAccessException System.Windows.Forms.dll

Exception that broke the entire mobile-app. I realized quickly that Visual Studio and/or SourceSafe was making all my .xml settings files read-only.

I added some code in all the right places to do a quick:

System.IO.FileInfo fi = new System.IO.FileInfo(settingsFile);
// remove readonly attribute
if ((fi.Attributes & System.IO.FileAttributes.ReadOnly) != 0)
fi.Attributes -= System.IO.FileAttributes.ReadOnly;

Fixed.

2 Responses to “my love hate relationship with .NET development”

  1. Jonathan LaCour
    July 27th, 2005 13:40
    1

    Really? You find development in .NET to be easy, agile, and fast?

    My experience is exactly the opposite… especially for web applications. ASP.NET pales in comparison to the more dynamic and agile solutions available (Rails, Django, Seaside and the like).

    On the other hand, I also have been working on a few desktop apps in .NET, and while I think its cumbersome, over-designed, and complicated — there isn’t anything better for Windows desktop development.

    One day you will see the Python light CBQ :)

  2. seebq
    July 27th, 2005 14:20
    2

    Perhaps I am enamored with the IDE — even Eclipse or the Zend IDE (for PHP) pales in comparison to the ease of VS in writing and deploying code. You have to admit Microsoft has that down. I mean, I’m not above hacking code in vim, (and I do), but it is so fabulous to drag and drop a datagrid, plug in an xml file, do tab-completion, then write a few lines in C#, and hit the little “debug” button, then check all the code back into my sourcesafe repo — and did I mention I’m developing on a pocketpc mobile phone, with a full-on emulator that works amazing — and can debug on the device?

    Yes, I agree with the Windows statement — on Windows and Windows Mobile for sure, there is no other way to slang code. Designing for the web — now that’s another story. Now, if I could only figure out how to compile in pgsql support for php5, do my mod_rewrites in apache2, and get my subversion webDAV over ssl working…. ;-)

Leave a Reply

Type the word "seebq" here: