<.../>

Convert web.config and location element

I can not understand how you change the following

<configuration> <location path="hello123"> <.../> </location> </configuration> 

to

 <configuration> <location path="world321"> <.../> </location> </configuration> 

without removing the first and adding the second. Any help with this would be great.

thanks

+4
source share
1 answer

You can use SetAttributes , for example:

 <?xml version="1.0"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <location path="world321" xdt:Transform="SetAttributes(path)" > </location> </configuration> 

You can check this and other conversions on the web.config AppHarbor conversion test .

+6
source

Source: https://habr.com/ru/post/1347483/


All Articles