We are facing an issue with <projectname>.wpp.targets file. Here is our .wpp.target file:

 <!-- Exclude Sitecore assemblies -->
   <SitecoreAssemblyListsToExclude Include="Assembly Lists\Sitecore.Platform.Assemblies 9.1.0 rev. 001564.csv" />
   <AutoPublish Condition="'$(AutoPublish)' == '' and '$(Configuration)' == 'Debug' and '$(BuildingInsideVisualStudio)' == 'true' and '$(PublishProfile)' != ''">true</AutoPublish>
   <AutoPublishDependsOn Condition="'$(AutoPublish)' == 'true'">

When we build the project it creates the folder structure like <project>/obj/Debug/Package/PackageTmp/ and adds the project files in that folder.

This works fine, but we want a similar folder for the same project for Release build as well. So when we build the same project under Release configuration it should generate a folder like <project>/obj/Release/Package/PackageTmp/

We tried to change the $(Configuration) to Release but it did not work. Please help us what am I missing here. Please excuse my little knowledge on MSBuild.

  • Looks like you're using Helix Publishing Pipeline github.com/richardszalay/helix-publishing-pipeline ? Nov 14 '19 at 5:26
  • How do you execute your build? If from command line please specify full command you use. Nov 14 '19 at 7:10
  • @BartłomiejMucha I am executing build from Visual Studio Build option only. I intend to use it for Azure DevOps CI in coming weeks.
    – NewbieHere
    Nov 14 '19 at 7:26
  • Are you using Helix Publishing Pipeline?
    – Richard Seal
    Nov 14 '19 at 13:02
  • @RichardSeal We are using Visual Studio Web Publish Pipeline, not helix publish pipeline.
    – NewbieHere
    Nov 20 '19 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.