Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2017-08-04 23:11:27 +0300
committerWes Haggard <Wes.Haggard@microsoft.com>2017-08-04 23:11:27 +0300
commit4e8bba2b812351154826a0f0a68970043f5ee159 (patch)
tree9dcf0b2cf3a339fe0e028523e884fd68a8cf61ed /src
parent46987853ffb4419c754316dfd7d20311385918ef (diff)
Make System.ServiceProcess.ServiceController netcoreapp specific
We have always had a "not supported" netstandard fallback but we put the real implementation in a netstandard windows build but that is also a little bit of a lie because we don't support it on things like UWP. So instead the real implementation should be under netcoreapp windows which is the only one we really support.
Diffstat (limited to 'src')
-rw-r--r--src/System.ServiceProcess.ServiceController/ref/Configurations.props3
-rw-r--r--src/System.ServiceProcess.ServiceController/ref/System.ServiceProcess.ServiceController.csproj13
-rw-r--r--src/System.ServiceProcess.ServiceController/src/Configurations.props2
-rw-r--r--src/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj10
4 files changed, 23 insertions, 5 deletions
diff --git a/src/System.ServiceProcess.ServiceController/ref/Configurations.props b/src/System.ServiceProcess.ServiceController/ref/Configurations.props
index d9777d8275..d85862f3fd 100644
--- a/src/System.ServiceProcess.ServiceController/ref/Configurations.props
+++ b/src/System.ServiceProcess.ServiceController/ref/Configurations.props
@@ -2,8 +2,9 @@
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
- netstandard;
+ netcoreapp;
netfx;
+ netstandard;
</BuildConfigurations>
</PropertyGroup>
</Project> \ No newline at end of file
diff --git a/src/System.ServiceProcess.ServiceController/ref/System.ServiceProcess.ServiceController.csproj b/src/System.ServiceProcess.ServiceController/ref/System.ServiceProcess.ServiceController.csproj
index 1f18158350..dc2cae1910 100644
--- a/src/System.ServiceProcess.ServiceController/ref/System.ServiceProcess.ServiceController.csproj
+++ b/src/System.ServiceProcess.ServiceController/ref/System.ServiceProcess.ServiceController.csproj
@@ -17,5 +17,18 @@
<Reference Include="System" />
<Reference Include="System.ServiceProcess" />
</ItemGroup>
+ <ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp'">
+ <Reference Include="Microsoft.Win32.Primitives" />
+ <Reference Include="System.Collections" />
+ <Reference Include="System.Console" />
+ <Reference Include="System.ComponentModel.Primitives" />
+ <Reference Include="System.Diagnostics.Debug" />
+ <Reference Include="System.Diagnostics.Tools" />
+ <Reference Include="System.Resources.ResourceManager" />
+ <Reference Include="System.Runtime" />
+ <Reference Include="System.Runtime.InteropServices" />
+ <Reference Include="System.Threading" />
+ <Reference Include="System.Threading.ThreadPool" />
+ </ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project> \ No newline at end of file
diff --git a/src/System.ServiceProcess.ServiceController/src/Configurations.props b/src/System.ServiceProcess.ServiceController/src/Configurations.props
index 4e5de27086..ae3efb2d39 100644
--- a/src/System.ServiceProcess.ServiceController/src/Configurations.props
+++ b/src/System.ServiceProcess.ServiceController/src/Configurations.props
@@ -2,7 +2,7 @@
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
- netstandard-Windows_NT;
+ netcoreapp-Windows_NT;
netstandard;
netfx-Windows_NT;
</BuildConfigurations>
diff --git a/src/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj b/src/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj
index ea8cbbf8b7..13348c1079 100644
--- a/src/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj
+++ b/src/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj
@@ -8,7 +8,7 @@
<ProjectGuid>{F4821CB6-91A3-4546-BC4F-E00DBFBDAA05}</ProjectGuid>
<IsPartialFacadeAssembly Condition="'$(TargetGroup)' == 'netfx'">true</IsPartialFacadeAssembly>
<ResourcesSourceOutputDirectory Condition="'$(TargetGroup)' == 'netfx'">None</ResourcesSourceOutputDirectory>
- <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetGroup)' == 'netstandard' AND '$(TargetsWindows)' != 'true'">SR.PlatformNotSupported_ServiceController</GeneratePlatformNotSupportedAssemblyMessage>
+ <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetGroup)' == 'netstandard'">SR.PlatformNotSupported_ServiceController</GeneratePlatformNotSupportedAssemblyMessage>
<!-- Although we have a netstandard configuration, we know we are not currently UAP compatible-->
<UWPCompatible>false</UWPCompatible>
</PropertyGroup>
@@ -18,7 +18,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Windows_NT-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Windows_NT-Release|AnyCPU'" />
- <ItemGroup Condition="'$(TargetGroup)' == 'netstandard' AND '$(TargetsWindows)' == 'true'">
+ <ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp' AND '$(TargetsWindows)' == 'true'">
<Compile Include="$(CommonPath)\Interop\Windows\Interop.Libraries.cs">
<Link>Common\Interop\Windows\Interop.Libraries.cs</Link>
</Compile>
@@ -103,14 +103,18 @@
<Reference Include="mscorlib" />
<Reference Include="System.ServiceProcess" />
</ItemGroup>
- <ItemGroup Condition="'$(TargetGroup)' != 'netfx'">
+ <ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp'">
<Reference Include="Microsoft.Win32.Primitives" />
<Reference Include="System.Collections" />
+ <Reference Include="System.Console" />
+ <Reference Include="System.ComponentModel.Primitives" />
+ <Reference Include="System.Diagnostics.Debug" />
<Reference Include="System.Diagnostics.Tools" />
<Reference Include="System.Resources.ResourceManager" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.InteropServices" />
<Reference Include="System.Threading" />
+ <Reference Include="System.Threading.ThreadPool" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project> \ No newline at end of file