Wednesday, January 4, 2017

Sitecore Team Development Server - We can only call this method once error when building

I was editing my .user for my TDS.Master project when I started getting this error when building:


Error 16 The build was aborted because of an internal failure. Microsoft.Build.BuildEngine.Shared.InternalErrorException: Internal MSBuild Error: We can only call this method once at Microsoft.Build.BuildEngine.Engine.EngineBuildLoop(BuildRequest terminatingBuildRequest) at Microsoft.Build.BuildEngine.Engine.PostProjectEvaluationRequests(Project project, String[] projectFiles, String[][] targetNames, BuildPropertyGroup[] globalPropertiesPerProject, IDictionary[] targetOutputsPerProject, BuildSettings buildFlags, String[] toolVersions) 0 1 TDS.Master


The error occurred for each TDS project, not just the master one.

It occurred when adding a new Replacement node under a fairly new Build Configuration named DevCD. I undid my change, but the error remained. I switched my active Configuration to one named Debug and it compiled correctly. I added the new line to Debug, and the error showed up when building under that configuration. I removed the line from Debug and the error stayed!

<ItemGroup Condition=" '$(Configuration)' == 'DevCD' ">
  <Replacement Include="..\PATH\">
     <TargetPath>e:\PATH\</TargetPath>
     <IsFolder>True</IsFolder>
    <IsRelative>True</IsRelative>
  </Replacement>

I tried re-running the installer for TDS with the repair option, opening and closing Visual Studio, but nothing seemed to help.

What finally fixed it was to go into the TDS project settings and checked the "Edit user specific configuration (.user file) under Build. It re-wrote the .user file and everything worked again. I did a compare and the only thing that changed were line breaks and spacing - but the error went away. It doesn’t matter which Configuration is selected, since the .user file contains the settings from all.


FYI - when going back into settings, the check box will always be unchecked by default and checking it will re-create your file.

13 comments:

  1. Great net web site you have got got here..info It’s hard to locate great writing like yours these days. I certainly admire people such as you! Take care!!

    ReplyDelete
  2. Really wonderful blog! Thanks for taking your valuable time to share this with us. Keep us updated with more such blogs.
    AWS Course in Chennai
    AWS Online Course
    AWS Course in Coimbatore

    ReplyDelete
  3. MGM Grand Hotel and Casino - Mapyro
    Casino Hotel. Mapyro Las Vegas provides a map showing 성남 출장샵 MGM Grand 강릉 출장마사지 Hotel 남양주 출장안마 and Casino 김포 출장마사지 located in Las Vegas. 김해 출장샵 Use the map to get directions, reviews and information for

    ReplyDelete
  4. To get a Rekordbox license go to Rekordbox.com, create an account and go to “My page”. Under “My profile” click on “Licenses”. The subscription that you take . RekordBox Licen

    ReplyDelete
  5. Life Happy 49th Birthday Notebook: 49th Birthday Gifts For Wife Spouse Partner Soulmate: Happy Birthday Journal Notebook Gift For Wife And Better Half . ‎In stocHappy Birthday Gorgeous

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Just how did we start making wishes on birthday candles, shooting stars, and eyelashes, though? These are just a few of the superstitions that exist related to Wish-Come-True-In-30-Seconds

    ReplyDelete
  9. thanks for this great post. I really like this data because it is helpful for me.
    You want to remove all your full-day tension and want relaxation and you must play a train station game. This game will give pleasure.

    ReplyDelete