Windows Service problem ze zbudowaniem

0

Witam,

stworzyłem projekt z wykorzystaniem templatki Windows Service.
Dodałem dwa projekty do tej solucji:
Core - modele, interfejsy
Infrastructure - implementacje, dapper ( templatki Empty project ), referencja do Core
SmsService( templatka Windows Service )

gdy próbuje zbudować SmsService dodaję

Program does not contain a static 'Main' method suitable for an entry point
metadata \Core\bin\Debug\Core.exe could not be found
metadata \infrastructure\bin\Debug\Infrastructure.exe could not be found

Co ja tutaj pokopałem? Rozumiem, że tego typu projekt ( service ) może zostać w ten sposób stworzony?

0

zobacz w properties Core i Infrastructure jaki masz output type.
Chyba winien byc class library

0

Polecam użyć Topshelf: http://topshelf-project.com. Pozwala na banalne budowanie serwisów które mogą być z łatwością instalowane lub uruchamiane jako aplikacja konsolowa.

1 użytkowników online, w tym zalogowanych: 0, gości: 1