Archive for category Visual Studio

Using GitFlow with Visual Studio and SourceTree

I’m a Microsoft guy. I like their products, development tools, the whole lineup really. However, a couple of months ago I started using git (or github if I should be completely honest…but that’s based on git) for version control. Coming from a Microsoft environment with first Source Safe and later on TFS (or TFVC really) […]

, , ,

6 Comments

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

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

Tip of the day: How can we discover extension methods more easily

Extension methods is a powerful feature that should be used when it´s really an extension on a type (like a string) that you would use over and over again. In contrast, a utility method is something you need once and performs something that is very specific to the problem you´re trying to solve, thus not […]

,

1 Comment

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

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

A Project Item with the following item ID could not be found

I got this error message from Visual Studio 2010 today when I was building a SharePoint package: “A Project Item with the following item ID could not be found: 3725bd89-3a48-4333-84dd-c99d25cc1904” Say what? I searched through my solution for that ID and came up with nothing. So what now then? I started to retrace my steps […]

, , , ,

5 Comments