Aggiunta gestione delel configurazioni multiple

inserito nuovo pacchetto configuration transform x gestione modifica file .config in building
This commit is contained in:
Samuele E. Locatelli
2016-06-03 12:08:37 +02:00
parent 96649b7a5e
commit e9d3347ba5
5 changed files with 54 additions and 22 deletions
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="autoLoadConf" value="true" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="defaultConfFile" value="CMS_FANUC.xml" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="autoLoadConf" value="false" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="defaultConfFile" value="DEMO.xml" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="autoLoadConf" value="true" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="defaultConfFile" value="DEMO.xml" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="autoLoadConf" value="true" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
<add key="defaultConfFile" value="SCM_ESA.xml" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>
+22 -22
View File
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<appSettings>
<!--gestione TIMERS e periodi multipli x thread lenti-->
<add key="timerIntMs" value="5"/> <!--invio da adapter ad agent: 10ms-->
<add key="timerIntMs" value="5" /> <!--invio da adapter ad agent: 10ms-->
<add key="fastCount" value="20" /> <!--100ms-->
<add key="normCount" value="50" /> <!--250ms-->
<add key="slowCount" value="1000" /> <!--5 sec-->
@@ -15,42 +15,42 @@
<!--SIMULATORE LOCALE
IP LOOPBACK: 192.168.211.5/255.255.255.0
ipFanuc = "192.168.211.5"-->
<!--<add key ="ipFanuc" value="192.168.211.5"/>-->
<!--<add key ="ipFanuc" value="192.168.211.5" />-->
<!--SIM PC
IP ETH: 192.168.139.201/255.255.255.0
ipFanuc = "192.168.139.100"-->
<add key ="ipFanuc" value="192.168.139.100"/>
<add key="ipFanuc" value="192.168.139.100" />
<!--PRODUZIONE
IP ETH: 192.168.139.201/255.255.255.0
ipFanuc = "192.168.139.1"-->
<!--<add key ="ipFanuc" value="192.168.139.1"/>-->
<!--<add key ="ipFanuc" value="192.168.139.1" />-->
<add key="recTime" value="true"/>
<add key="verbose" value="true"/>
<add key="recTime" value="true" />
<add key="verbose" value="true" />
<add key="autoLoadConf" value="false"/>
<add key="defaultConfFile" value="CMS_FANUC.xml"/>
<add key="defaultEsaFile" value="EsaKvara.ini"/>
<add key="autoStartOnLoad" value="true"/>
<add key="openDumpOnStart" value="true"/>
<add key="autoLoadConf" value="false" />
<add key="defaultConfFile" value="CMS_FANUC.xml" />
<add key="defaultEsaFile" value="EsaKvara.ini" />
<add key="autoStartOnLoad" value="true" />
<add key="openDumpOnStart" value="true" />
<add key ="testCharSep" value="|"/>
<add key="testCharSep" value="|" />
<add key ="fattdecimale" value="1000"/>
<add key="fattdecimale" value="1000" />
<add key="D1_NAME" value="CMS-ARES-SIM"/>
<add key="D1_ID" value="demo_123456"/>
<add key="D1_UUID" value="000123456"/>
<add key="D1_PROGRAM" value="PROG_DEMO_01"/>
<add key="PartID" value="Prod_0001"/>
<add key="D1_NAME" value="CMS-ARES-SIM" />
<add key="D1_ID" value="demo_123456" />
<add key="D1_UUID" value="000123456" />
<add key="D1_PROGRAM" value="PROG_DEMO_01" />
<add key="PartID" value="Prod_0001" />
<!--conf file-->
<add key="adapterConfPath" value="AdapterConf"/>
<add key="AlarmList" value="AlarmList.txt"/>
<add key="SubMode" value="SubMode.txt"/>
<add key="adapterConfPath" value="AdapterConf" />
<add key="AlarmList" value="AlarmList.txt" />
<add key="SubMode" value="SubMode.txt" />
</appSettings>
</configuration>