Announcement

Collapse
No announcement yet.

Newtonsoft.Json.dll bin location

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Newtonsoft.Json.dll bin location

    How and where do I set Newtonsoft.Json.dll reference to load from hs.GetAppPath / bin / mypluginname ?
    Please excuse any spelling and grammatical errors I may make.
    --
    Tasker Plugin / Speech Droid
    Tonlof | Sweden

    #2
    add the probing privatepath to your app.config file, this is what I do;

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <system.net>
        <settings>
          <httpWebRequest useUnsafeHeaderParsing="true" />
        </settings>
      </system.net>
        <runtime>
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <probing privatePath="Bin/LAMetric;bin/LAMetric"/>
          </assemblyBinding>
        </runtime>
    </configuration>

    Comment


      #3
      [QUOTE=mrhappy;1286309]add the probing privatepath to your app.config file, this is what I do;
      That make sense. Thank you.
      Please excuse any spelling and grammatical errors I may make.
      --
      Tasker Plugin / Speech Droid
      Tonlof | Sweden

      Comment


        #4
        [QUOTE=tonlof;1286318]
        Originally posted by mrhappy View Post
        add the probing privatepath to your app.config file, this is what I do;
        That make sense. Thank you.
        Is there anything else that need to be set, it only load the dlls if they are placed in hs3 root foler or directly under bin.
        PHP Code:
        <configuration>
        <
        startup>
          <
        runtime>
            <
        assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
              <
        probing privatePath="bin\tasker;bin/tasker;Bin\tasker;Bin/tasker;tasker"/>
            </
        assemblyBinding>
          </
        runtime>
          <
        supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
          </
        startup>
        </
        configuration
        Please excuse any spelling and grammatical errors I may make.
        --
        Tasker Plugin / Speech Droid
        Tonlof | Sweden

        Comment


          #5
          This is the config file content I use for one of my plug-ins which works just fine:

          PHP Code:
          <configuration>
            <
          runtime>
              <
          assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                <
          probing privatePath="bin/YourPlugIn"/>
              </
          assemblyBinding>
            </
          runtime>
            <
          startup>
              <
          supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
            </
          startup>
          </
          configuration
          Make sure that you put your dll's in /HS3/Bin/YourPlugIn and that your config file is in the root HS3 folder along with it's exe.

          Paul..

          Comment


            #6
            Originally posted by sooty View Post
            This is the config file content I use for one of my plug-ins which works just fine:

            PHP Code:
            <configuration>
              <
            runtime>
                <
            assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                  <
            probing privatePath="bin/YourPlugIn"/>
                </
            assemblyBinding>
              </
            runtime>
              <
            startup>
                <
            supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
              </
            startup>
            </
            configuration
            Make sure that you put your dll's in /HS3/Bin/YourPlugIn and that your config file is in the root HS3 folder along with it's exe.

            Paul..
            Thanks a million, it working fine.
            I had a mixup with missplaced <startup> tag
            Please excuse any spelling and grammatical errors I may make.
            --
            Tasker Plugin / Speech Droid
            Tonlof | Sweden

            Comment

            Working...
            X