Hello all,

 

I’m trying to use the script task.

 

I use put all the references right, I checked the main dll that I’m referencing and I have all the necessary dependencies.

Any ideas?

 

I get the error:

File or assembly name Inosat.Net.VehicleCommunication, or one of its dependencies, was not found.

 

Here’s the scritpt;

 

 

<target name="SaveSettings" verbose="true">

            <script language="C#">

                  <imports>

                        <import name="Inosat.Net.VehicleCommunication.LocationServer"/>

                        <import name="Inosat.Net.VehicleCommunication.LocationServer.Protocol"/>

                        <import name="DotNetX.RemotablePlugin"/>                   

                  </imports>

                  <references>

                        <includes name="${DotNetX.dll}"/>

                        <includes name="${Inosat.Net.VehicleCommunication.dll}"/>

                        <includes name="${log4net.dll}"/>

                        <includes name="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"/>

                        <includes name="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Xml.dll"/>

                        <includes name="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"/>

                  </references>    

                  <code><![CDATA[

                  public static void ScriptMain(Project project) {

                        LocationServerSettings settings = LocationServerSettings.GetSettings();

                        settings.ProcessModel = ProcessModel.OutProc;

                        settings.RemotingUrl = "tcp://wkdev001:9999/locationserver";

                        settings.Provider = typeof(ILocationServer).ToString();

                        settings.Save();                   

                        }

                  ]]></code>

            </script>

    </target>

 

 

 

NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 26-12-2003

 

Thanks,

 

Joaquim Cardeira.

 

Reply via email to