Posts Tagged Visual Studio 2010

Inconvenient: Files inside mapped folder which links to existing items

Problem You’re working on a SharePoint site for company x in Visual Studio 2010. Your boss tells you that company x uses a graphical profile (css + images) and some javascript files that you “must” include in the new site. The boss also informs you that if you make any changes to these files they […]

, , ,

4 Comments

Getting to know your SharePoint 2010 packaging options

Have a look at the image above. If you’re familiar with working with SharePoint 2010 projects in VS2010 you should know that when you add a new SPI (SharePoint Project Item), like a module|content type|empty item|etc, it’s by default added to a feature of the “correct” scope. Waldek Mastykarz has more information about this, and […]

, ,

Leave a comment

Utilizing NuGet for SharePoint projects in VS2010

“NuGet is a free, open source developer focused package management system for the .NET platform intent on simplifying the process of incorporating third party libraries into a .NET application during development.” That description of NuGet comes from the NuGet site over at codeplex. In short it’s a common way of downloading, installing, and managing third […]

, , , ,

Leave a comment

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

Be aware of copy/paste

Problem You are working with a SharePoint 2010 solution inside VS2010 to add some site columns (could be any type of SPI but maybe most common with site columns). You have added your first column like in the picture below: The second column you are about to add is more or less the same so […]

, ,

5 Comments

Working with xml transformations in SharePoint: Part 2

This is the second part of this two part series about working with xml transformations and especially how to benefit from them when using app.config files as a source for application settings in SharePoint. In the first part of the series I we finished off with having two different kinds of transformed app.config files. The […]

, , , ,

2 Comments

Working with xml transformations in SharePoint: Part 1

A while back I made a post about how you can benefit from xml file transformations with other files that just web.config files (which is supported OOB in VS2010). Since then I have made some adjustments to the transformation process and started to use it myself in some SharePoint projects so I though I´d make […]

, , , ,

6 Comments

File ~/_controltemplates/{someusercontrol}.ascx was not found

Today I stumbled upon something in VS2010 that I think is maybe a bug. I found a very simple workaround though, so I thought I´d share how I solved it. I was working with a SharePoint 2010 solution in VS2010 that looked something like what you see in the image below (simplified for this example […]

, , ,

2 Comments

SPG: Find all settings using the application settings manager

If you are using the The Application Setting Manager from Patterns and Practices SharePoint Guidance library (SPG) to work with application settings, like I do, you might have noticed that the IConfigManager really has no method for retrieving all the settings at a given scope. You can only add, delete and retrieve one setting. So, […]

, , , , , , ,

Leave a comment

SPG: Add settings to SPWebApplication or SPFarm

If you are using the Patterns and Practices SharePoint Guidance library (SPG) to add application settings to SharePoint, like I do, and you are using the 2010 version of it there are some differences to the API that you might not be aware of as they are not so well documented in the included .chm […]

, , , , , ,

Leave a comment