App.config 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  36. <dependentAssembly>
  37. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
  38. <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
  39. </dependentAssembly>
  40. <dependentAssembly>
  41. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
  42. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
  43. <assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
  44. <bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
  45. </dependentAssembly>
  46. <dependentAssembly>
  47. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  48. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  49. </dependentAssembly>
  50. </assemblyBinding>
  51. </runtime>
  52. <entityFramework>
  53. <providers>
  54. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
  55. <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
  56. </providers>
  57. </entityFramework>
  58. <system.data>
  59. <DbProviderFactories>
  60. <remove invariant="System.Data.SQLite.EF6"/>
  61. <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"/>
  62. <remove invariant="System.Data.SQLite"/>
  63. <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
  64. </DbProviderFactories>
  65. </system.data>
  66. </configuration>