Posts Tagged Configuration

SpecFlow: using environment specific settings

One of the things I commonly see people struggling with is how to “push” environment specific settings into the execution of a SpecFlow scenario. This post will provide some background into the problem and later present my solution to the problem. Background/Problem Sometimes you might have a scenario (or several) that you wish to execute […]

, , ,

Leave a comment

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

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

Making use of configuration file transformations in SharePoint 2010

The first time I saw the new web.config transform stuff included in VS2010 I was totally amazed and I just kept thinking “I hope I can use that in SharePoint 2010”. Of course, we couldn´t…well not OOB. In this blog post I will show you how to bring some love to the SharePoint configuration transformations. […]

, , , , ,

6 Comments

Unity 2.0 and Automatic Type Lookup

I just recently started to use the new unity 2.0 release and I thought I´d share an example of using the new automatic type lookup feature that was introduced with this release. A simple example Let´s say I´ve got the following solution structure in Visual Studio: Unity.Model– has the contract/interface ICustomerServices Unity.Infrastructure – has the […]

, , , ,

Leave a comment

Nodes with namespace uri:s when modifying web.config file in SharePoint

A while back I wrote a post on how to use a real web.config file when writing modifications to SharePoint. Apparently I had missed that if a node (like the one you see below) has a namespace reference you have to handle that in a special way, thanks to Rikard Uppström for pointing that out. […]

, , , , , , ,

3 Comments

Trying to make web.config modifications maintainable

UPDATE 09-11-15: I updated the code to handle namespace uri:s and wrote a new post explaining those changes. The other day I had to make some changes into a web.config file (in a SharePoint application). I had previously made a couple of changes into the same file so I thought to myself that this would […]

, , , ,

2 Comments