anonymous Log in
Search
Recents:
v3.0
gxenglish-l
How to preserve custom web.config settings in GeneXus 16
30/01/20 12:39

usr193227

Replies: 1

<div class="post-text">
<p>When you build a GeneXus app, the .Net Generator produces the web.config file which gets deployed. I want to add some custom settings to the web.config file, for example <strong>URL rewrite rules</strong>, in such a way that they are not lost when the build process happens.</p>

<p>How or where would I do this in GeneXus?</p>
</div>

<p>If there isn&#39;t a built-in capability for this, maybe there&#39;s a workaround I can use in the build process?</p>

<p>Thanks so much.</p>
Replies

jpgonzab

12/03/20 11:36

Hello,

Have you already taken a look at Build Events?

https://wiki.genexus.com/commwiki/servlet/wiki?39474,Build%20Events

You can program something that adds the URL rewrite rules to a web.config file maybe using XMLWriter and then add this program to the Post-build Events so it is executed after every GeneXus Build and the file is kept up to date.

Regards,



Back to gxenglish-l