incubator-npanday-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Kolotyluk <eric.koloty...@gmail.com>
Subject Building a Windows Service
Date Fri, 16 Sep 2011 23:21:47 GMT
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>

Mime
View raw message