App.config 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
  5. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  6. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  7. </configSections>
  8. <startup>
  9. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
  10. </startup>
  11. <connectionStrings>
  12. <!--<add name="XMLFilePath" connectionString="TestData.XML"/>-->
  13. <add name="XMLFilePath" connectionString="Resources/XMLData/SystemData.XML"/>
  14. </connectionStrings>
  15. <nlog>
  16. <!-- optional, add some variables
  17. https://github.com/nlog/NLog/wiki/Configuration-file#variables
  18. -->
  19. <variable name="myvar" value="myvalue"/>
  20. <!--
  21. See https://github.com/nlog/nlog/wiki/Configuration-file
  22. for information on customizing logging rules and outputs.
  23. -->
  24. <targets async="true">
  25. <target type="File" name="file" fileName="${basedir}/Log/Nlogs/OTSReport ${shortdate}.log" layout="${longdate} ${message}"/>
  26. <target name="control" type="RichTextBox" controlName="richTextBox_Nlog" formName="OutputNlog" maxLines="10000" autoScroll="true" useDefaultRowColoringRules="true" layout="${longdate} ${message}"/>
  27. </targets>
  28. <rules>
  29. <!-- add your logging rules here -->
  30. <logger name="*" minlevel="Trace" writeTo="control"/>
  31. <logger name="*" minlevel="Trace" writeTo="File"/>
  32. </rules>
  33. </nlog>
  34. <runtime>
  35. <gcConcurrent enabled="true"/>
  36. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  37. <publisherPolicy apply="yes"/>
  38. <probing privatePath="ReportClrDll\"/>
  39. <dependentAssembly>
  40. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
  41. <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
  42. </dependentAssembly>
  43. <dependentAssembly>
  44. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
  45. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
  46. <assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
  47. <bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
  48. </dependentAssembly>
  49. <dependentAssembly>
  50. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  51. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  52. </dependentAssembly>
  53. </assemblyBinding>
  54. </runtime>
  55. <entityFramework>
  56. <providers>
  57. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
  58. <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
  59. </providers>
  60. </entityFramework>
  61. <system.data>
  62. <DbProviderFactories>
  63. <remove invariant="System.Data.SQLite.EF6"/>
  64. <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6"/>
  65. <remove invariant="System.Data.SQLite"/><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/></DbProviderFactories>
  66. </system.data>
  67. </configuration>