App.config 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
  5. </configSections>
  6. <startup>
  7. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
  8. </startup>
  9. <connectionStrings>
  10. <add name="XMLFilePath" connectionString="Resources/XMLData/SystemData.XML" />
  11. <add name="LogAppPath" connectionString="OTSSysMgrApp" />
  12. <add name="LogPath" connectionString="OTSSysMgrApp_OTSControl" />
  13. <add name="XMLFileName" connectionString="Config/ProData/HardwareConfig.xml" />
  14. <add name="DLLXMLFileName" connectionString="Config/ProData/BrukerDllVersion.xml" />
  15. </connectionStrings>
  16. <nlog>
  17. <!-- optional, add some variables
  18. https://github.com/nlog/NLog/wiki/Configuration-file#variables
  19. -->
  20. <variable name="myvar" value="myvalue" />
  21. <!--
  22. See https://github.com/nlog/nlog/wiki/Configuration-file
  23. for information on customizing logging rules and outputs.
  24. -->
  25. <targets async="true">
  26. <target type="File" name="file" fileName="${basedir}/Log/Nlogs/OTS ${shortdate}.log" layout="${longdate} ${message}" />
  27. <target name="control" type="RichTextBox" controlName="richTextBox_Nlog" formName="OutputNlog" maxLines="10000" autoScroll="true" useDefaultRowColoringRules="true" layout="${longdate} ${message}" />
  28. </targets>
  29. <rules>
  30. <!-- add your logging rules here -->
  31. <logger name="*" minlevel="Trace" writeTo="control" />
  32. <logger name="*" minlevel="Trace" writeTo="File" />
  33. </rules>
  34. </nlog>
  35. <runtime>
  36. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  37. <probing privatePath="System;Common;OTSCPPDll;OxfordExtender1;Bruker;FEIAutoScript;DevExpress"/>
  38. <dependentAssembly>
  39. <assemblyIdentity name="SQLitePCLRaw.core" publicKeyToken="1488e028ca7ab535" culture="neutral" />
  40. <bindingRedirect oldVersion="0.0.0.0-2.0.7.1395" newVersion="2.0.7.1395" />
  41. </dependentAssembly>
  42. <dependentAssembly>
  43. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  44. <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
  45. </dependentAssembly>
  46. <dependentAssembly>
  47. <assemblyIdentity name="SQLitePCLRaw.provider.e_sqlite3" publicKeyToken="9c301db686d0bd12" culture="neutral" />
  48. <bindingRedirect oldVersion="0.0.0.0-2.0.7.1395" newVersion="2.0.7.1395" />
  49. </dependentAssembly>
  50. <dependentAssembly>
  51. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  52. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  53. </dependentAssembly>
  54. </assemblyBinding>
  55. </runtime>
  56. <system.windows.forms jitDebugging="true" />
  57. </configuration>