Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm getting that old familiar error when trying to deploy my SharePoint solution via Visual Studio:

Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been installed in this farm. Use the force attribute to explicitly re-install the feature.

I know I've run into this before, and previously I found somewhere in Visual Studio (in the properties tab possibly) where it let you check a box to enable the "force" flag when it deploys.

I just installed the latest SharePoint and Office Developer Tools for Visual Studio. I now can't seem to find that option.

Am I just missing it somewhere or has it disappeared?

Thanks.

share|improve this question
add comment

3 Answers

up vote 12 down vote accepted

If you double-click on the feature (NameofFeature.feature), in your solution. You'll see a properties window come up - as a window that details the title, description, scope, items in solutions, and items in the feature. In the properties window, you'll see an option titled 'Always Force Install'. By default, it is set to False. You can configure that to be set to True.

share|improve this answer
    
Thanks. I think my upgrade screwed up VS in some way. I had to reinstall to get this to appear again. –  MgSam Mar 6 '13 at 18:56
add comment

You can do it via the XML editor as well!

Steps:

  1. Go to your Features in your project.

  2. Open the feature.template.xml file

add AlwaysForceInstall="TRUE" to the below tag

<Feature xmlns="http://schemas.microsoft.com/sharepoint/" AlwaysForceInstall="TRUE">

Now try to deploy the code.

share|improve this answer
add comment
  1. Double click on the feature....

  2. then in the properties window make

  3. ALWAYS FORCE INSTALL = true...

    and there u go.....

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.