Skip to content

Commit

Permalink
Remove windows desktop SDK dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Petar Petrov committed Oct 14, 2021
1 parent 2ccf1cb commit 4b2fd27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFrameworks>net5.0;net5.0-windows</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
13 changes: 8 additions & 5 deletions System.ServiceProcess.Core/System.ServiceProcess.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<AssemblyName>System.ServiceProcess.Core</AssemblyName>
<AssemblyTitle>System.ServiceProcess</AssemblyTitle>
<TargetFrameworks>netstandard2.0;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net5.0-windows</TargetFrameworks>
<RootNamespace>System.ServiceProcess</RootNamespace>
<UseWindowsForms>true</UseWindowsForms>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1589</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework.StartsWith('net5.0'))">
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>

<PropertyGroup>
<PackageId>Core.System.ServiceProcess</PackageId>
<Version>1.0.2</Version>
<Version>2.0.0</Version>
<Description>Porting of System.ServiceProcess for .NET Standard 2.0 and .NET Core 3.0 from the Microsoft .NET Reference Source.</Description>
<Product>Core.System.ServiceProcess</Product>
<Copyright>Copyright (C) Microsoft Corporation (Modifications by Chris Benard)</Copyright>
Expand All @@ -29,7 +32,7 @@
<ItemGroup>
<None Include="..\LICENSE.txt" Pack="true" PackagePath="$(PackageLicenseFile)"/>
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('netstandard'))">
<Compile Remove="Design\ServiceInstallerDialog.cs" />
<Compile Remove="Design\ServiceNameConverter.cs" />
Expand Down

0 comments on commit 4b2fd27

Please sign in to comment.