-
Recent Posts
-
Recent Posts
Recent Comments
- Downsides of checking in files that have no changes? – Windows Questions on TFS Pending Changes – Ignoring Files which are Identical to the Originals
- Sam S on TFS Pending Changes – Ignoring Files which are Identical to the Originals
- earnest on TFS Pending Changes – Ignoring Files which are Identical to the Originals
- Erich Mühsam on TFS Pending Changes – Ignoring Files which are Identical to the Originals
- Evan Roberts on TFS Pending Changes – Ignoring Files which are Identical to the Originals
Categories
Archives
Category Archives: C#
NuGet issues with Nested Solutions / Branches
NuGet is a decent tool if you use it in exactly the way Microsoft envisages… but unfortunately, like many products/frameworks in their ecosystem, it suffers from Microsoft Tunnel Vision™. At work, I’m attempting to properly solve a problem which has been … Continue reading
Posted in ASP .NET, C#, General, Version Control
Tagged assembly reference, HintPath, library, multiple, nested branch, nested solution, nuget, package, package restore, packages, reference, repositoryPath
Leave a comment
Some wacky HTML generation code I wrote the other week
On a site I’m working on, we offer content authors a multi-line textbox whose content later is rendered to end-users by way of replacing newline-like tokens with <br />s. It was then decided that we needed to add support for … Continue reading
Provisioning SharePoint Lookup Fields Programmatically
There’s a large number of blog posts floating around on the topic of creating lookup fields (whether programmatically, via XML, or via the UI), as there are many ways of doing so with many variations, each with its own set … Continue reading
Posted in C#, SharePoint
Tagged addfield, addfieldasxml, addlookup, caml, lookup, object model, programmatically, provision, sharepoint, spfieldcollection, spfieldlookup
Leave a comment
Strongly Typed URLs in SharePoint
So it seems that the current flurry of advancement in our SP framework at work is leading me to write another topical blog post. For the longest time (at least a year), I’d been wanting to improve the way we handle … Continue reading
Posted in ASP .NET, C#, SharePoint, Web
Tagged asp .net, authoring, EditorPart, server relative, sharepoint, site, site collection, URI, URL
Leave a comment
Why All Developers Should Learn Functional Programming
Last Friday, I turned up to work completely unaware that I’d be spending the rest of the day at the CodeMania programming conference – it was a nice surprise to say the least. The most poignant presentation for me, was … Continue reading
Posted in C#, Functional Programming
Tagged .NET, C, functional, functional programming, imperative, languages, linq
1 Comment
JSON DateTime Serialisation Gotchas
DateTimes are a bit nasty, really. They appear deceptively elementary and unthreatening, leading generations of programmers to misuse them, or even grossly underestimate them and attempt to roll their own datetime libraries, only to end up in no man’s land … Continue reading
Posted in C#, Web
Tagged .NET, C, DataContractSerializer, DateTime, DateTimeOffset, JavaScript, JavaScriptSerializer, JSON, MVC, time zone
2 Comments
Using SPWebConfigModification to Modify your Web.Configs
SharePoint allows you to use SPWebConfigModification to programmatically make web.config changes which propagate across your farm. Typically, you do this by creating a SP feature and adding your code to its FeatureActivated and FeatureDeactivating event handlers. The advantage of this … Continue reading
Posted in ASP .NET, C#, SharePoint, Web
Tagged appsettings, configuration, sharepoint, spwcm, spwebconfigmodification, web.config
1 Comment
Should C# Offer the With Construct?
As repulsive as I find the syntax of VB .NET, I recently stumbled upon one of its language features which piqued my interest – the With keyword, for which no direct equivalent exists in C#. It basically allows you to … Continue reading