Posts Tagged SharePoint

Workaround for unit testing code that reside in the GAC

The problem I expressed my frustration the other day on twitter when it comes to unit testing and code that reside in GAC (global assembly cache). This problem may occur more often in frameworks that like to put their code in the GAC, like SharePoint for example. Let’s examine this with an example: Imagine the […]

, ,

3 Comments

Using a different master page for authenticated users in SharePoint

So, let’s say you’re building a public facing internet site using SharePoint and you want to conditionally hide content from anonymous users viewing your site from the internet. Traditionally, you would use either a SPSecurityTrimmedControl or a LoginView. In this post I’m going to show you yet another way to accomplish sort of the same […]

, , , ,

3 Comments

This functionality is unavailable for fields not associated with a list

Ever gotten that error message (“This functionality is unavailable for fields not associated with a list”) from Visual Studio when working with a SharePoint solution? Ever wondered why and how to fix it? Well OK then here is an explanation of it.   The Why Most likely your code looks something like this: And it´s […]

, , , ,

2 Comments

SharePoint development is dead – long live SharePoint development

Warning! This is one of those, and I think my first, philosophical posts. As I see it there are two types of SharePoint developers (OK, maybe not but…): The pure SharePoint developer that has worked with 2001-2003 and so on. The ones that have a background in some other “CMS” (I know SP is more […]

, ,

3 Comments

Using ROBOCOPY to copy files to the 12 hive

I ran into a bit of a problem today when trying to copy files from one folder to another. I wanted to copy all files in a folder structure except the .cs files (ie I wanted to exclude them). This can be done with XCOPY but I didn´t get it working (since I wanted to […]

, , , ,

Leave a comment

Intellisense support for unity (and wss/moss) xml files

Andrew Connell has written about how to add intellisense support for when editing the SharePoint xml files. I have made an effort to include that support and also support for Unity config files. Firstly, a copy of the unity.xsd file is copied to “12/TEMPLATE/XML” and secondly I made an update to the custom catalog.xml file […]

, ,

Leave a comment