Posts

Showing posts with the label visual studio 2010

The Project X is under source control

Problem: A project says it is under source control when trying to be opened by Visual Studio, ending up in opening failure: "The project 'OpenXML Power Tools' is under source control. An error occurred registering this project with source control. It is recommended that you do not make any changes to this project." If this error is not fixed, another error appears and opening the project is not possible: "One or more projects in the solution could not be loaded for the folloging reason(s): The application for the project is not allowed. These projects will be labeled as unavailable in Solution Explorer. Expand the project node to show the reason the project could not be loaded." Solution: Edit .csproj/.vbproj file end remove all <scc> occurrences. http://social.msdn.microsoft.com/Forums/en/tfsversioncontrol/thread/01e89840-1e9d-4c5a-8049-e4949c04c609

Reuse a Feature Solution

Either upgrading a wsp from 2007 or just simply copy-paste the folder to create a new feature from a starting point of another, will end up in solution and feature id errors such as: (using my2010thingy as the name of the wsp as example) A solution with the same name "my2010thingy.wsp" or id "xxx-x-x-x-xxx" already exists in the solution store. my2010thingy.wsp: The Solution installation failed. If the time lost creating everthing from scratch is unberable, try this: 1) open "my2010thingy.csproj" on the root folder 2) search for feature and package ids at the bottom and change them using the Visual Studio guid tool to trow registry-type guids (keep the old guids somewhere!) 3) go throw the folders in the solution, changing the old feature and solution(now package) ids for the new ones: - Features\[Feature_Name]\Feature.feature - Package\Package.package Now you may try repackaging, but I normally change the ids also in the existing package folders just to m...