OK, a little more progress. Now I am getting

[INFO] --- NPanday.Plugin.Msbuild.JavaBinding:1.4.0-incubating:compile (default) @ Intersystem-Setup --- [INFO] NPANDAY-068-005: Choose executable path's parent as execution path: P:\Intersystem\main\platform.NET\intersystem-setup\target
NPanday: Start Process = 2011-09-18 12:59:15 PM
"parameterFile=C:\Users\10069959\AppData\Local\Temp\Plugin3947637033073244373.xml" "assemblyFile=P:\Intersystem\main\platform.NET\intersystem-setup\target\NPanday.Plugin.Msbuild.dll" "mojoName=NPanday.Plugin.Msbuild.MsbuildMojo" "startProcessAssembly=P:\Intersystem\main\platform.NET\intersystem-setup\target\NPanday.Plugin.Loader.exe"
[INFO]
[INFO] Unhandled Exception: System.TypeLoadException: The domain manager specified by the host could not be instantiated. [INFO] at System.AppDomain.CreateDomainManager(String domainManagerAssemblyName, String domainManagerTypeName) [INFO] at System.AppDomain.SetDomainManager(Evidence providedSecurityInfo, Evidence creatorsSecurityInfo, IntPtr parentSecurityDescriptor, Boolean publishAppDomain) [INFO] at System.AppDomain.SetDefaultDomainManager(String fullName, String[] manifestPaths, String[] activationData)
NPanday: End Process = 2011-09-18 12:59:20 PM; exit code = -532459699

Does this indicate a bug in the mojo, or some other problem like configuration?

Cheers, Eric

On 2011-09-16 4:21 PM, Eric Kolotyluk wrote:
Has anyone ever built a Windows Service with NPanday?

I am having trouble: I get

error CS5001: Program 'p:\Intersystem\main\platform.NET\intersystem-service\target\intersystem-service.exe' does not contain a static 'Main' method suitable for an entry point

but I cannot understand why as the there is clearly a static Main in my Program.cs file.

Cheers, Eric

<?xml version="1.0" encoding="utf-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns="http://maven.apache.org/POM/4.0.0";>
<parent>
<artifactId>dotnet</artifactId>
<groupId>com.kodak.intersystem</groupId>
<version>0.0.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.kodak.intersystem.dotnet</groupId>
<artifactId>intersystem-service</artifactId>
<packaging>dotnet-executable</packaging>
<name>com.kodak.intersystem : intersystem-service</name>
<build>
<sourceDirectory>./</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-compile-plugin</artifactId>
<version>1.4.0-incubating</version>
<extensions>true</extensions>
<configuration>
<frameworkVersion>4.0</frameworkVersion>
<includeSources>
<includeSource>Properties\AssemblyInfo.cs</includeSource>
<includeSource>src\main\csharp\com\kodak\intersystem\setup\IntersystemService.cs</includeSource> <includeSource>src\main\csharp\com\kodak\intersystem\setup\IntersystemServiceInstaller.cs</includeSource> <includeSource>src\main\csharp\com\kodak\intersystem\setup\IntersystemService.designer.cs</includeSource> <includeSource>src\main\csharp\com\kodak\intersystem\setup\IntersystemServiceInstaller.designer.cs</includeSource> <includeSource>src\main\csharp\com\kodak\intersystem\setup\Program.cs</includeSource>
</includeSources>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.kodak.intersystem.dotnet</groupId>
<artifactId>intersystem-jni4net</artifactId>
<version>0.0.2-SNAPSHOT</version>
<type>dotnet-library</type>
</dependency>
<dependency>
<groupId>net.sf.jni4net</groupId>
<artifactId>jni4net.n</artifactId>
<version>0.8.5.1</version>
<type>dotnet-library</type>
</dependency>
</dependencies>
</project>

Reply via email to