Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Microsoft.AspNetCore.Hosting.WindowsServices .NET Core Support #904

Closed
duthiega opened this issue Dec 23, 2016 · 11 comments
Closed

Microsoft.AspNetCore.Hosting.WindowsServices .NET Core Support #904

duthiega opened this issue Dec 23, 2016 · 11 comments

Comments

@duthiega
Copy link

Is there any plan to upgrade the above assembly to support .NET Core ?

When trying to build a .NET Core Windows service I'm experiencing problems when inheriting from WebHostService which in turn Inherits from ServiceBase and receive the following error:

The type 'ServiceBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. ConsoleApp1..NETCoreApp,Version=v1.1

@davidfowl
Copy link
Member

ServiceBase isn't ported to .NET Core. Would be good to file that on github.com/dotnet/corefx

@guardrex
Copy link
Contributor

@muratg muratg added this to the Backlog milestone Jan 10, 2017
@muratg
Copy link

muratg commented Jan 10, 2017

Backlogging until the required API is added

@Tratcher
Copy link
Member

Tratcher commented Aug 5, 2017

The API has been added: dotnet/corefx#22920
Bumping from backlog for re-triage.

@Tratcher Tratcher removed this from the Backlog milestone Aug 5, 2017
@davidfowl
Copy link
Member

We should look at this for 2.1 now that the work is done.

/cc @DamianEdwards

@andymac4182
Copy link

Any chance of this making 2.0 @davidfowl as this is a major part of us not being able to easily move to dotnet core? We have moved to ASPNET Core 1.1 was just waiting for a good way to move the services to running against dotnet core without major changes.

@davidfowl
Copy link
Member

davidfowl commented Aug 5, 2017

2.0 is done.

@andymac4182
Copy link

No worries. :)

@muratg muratg added this to the 2.1.0 milestone Aug 8, 2017
@muratg
Copy link

muratg commented Aug 8, 2017

@JunTaoLuo this should be pretty straightforward (i.e. ~1hr job) to cross compile. If it takes more, let me know and we'll punt/close.

@lavinianastase
Copy link

Hi! Does the development team have an estimated date when Hosting.WindowsServices will be available on .NET Core 2.0?
Thank you!

@JunTaoLuo
Copy link
Contributor

It will be added in the 2.1 release. We are discussing plans on bringing it back to 2.0 as well see #1229.

@muratg muratg modified the milestones: 2.1.0, 2.1.0-preview1 Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants