App.config 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.6.2" />
  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. </assemblyBinding>
  44. </runtime>
  45. <entityFramework>
  46. <providers>
  47. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  48. <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
  49. </providers>
  50. </entityFramework>
  51. <system.data>
  52. <DbProviderFactories>
  53. <remove invariant="System.Data.SQLite.EF6" />
  54. <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" />
  55. <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>
  56. </system.data>
  57. </configuration>