London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Forms.config replaced on publish

Vote:
 

I have injectFormOwnJQuery="false" set in my Forms.config and noticed the published version built with Azure DevOps replaced this with the orginal file.

Can these settings be altered in appsettings.json instead?

#292752
Edited, Dec 06, 2022 17:56
Vote:
 

It seems my fix may be to set CopyToPublishDirectory to true in my project file.

  <ItemGroup>
    <Content Update="modules\_protected\EPiServer.Forms\Forms.config">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
      <CopyToPublishDirectory>Always</CopyToPublishDirectory>
    </Content>
  </ItemGroup>

This is still less than ideal since it is masking a bug in the package - I think the correct move is for the package to be updated to set copyToOuput to false in the nuspec

    <contentFiles>
      <files include="any/any/modules/_protected/EPiServer.Forms/Forms.config" buildAction="None" copyToOutput="false" />
      <files include="any/any/modules/_protected/EPiServer.Forms/EPiServer.Forms.zip" buildAction="None" copyToOutput="true" />
    </contentFiles>
#292802
Dec 07, 2022 15:46
Vote:
 

Thanks let us try this.

#292841
Dec 08, 2022 2:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.