浏览代码

Merge pull request #414 from NextTurn/mmi

Disable MMI
Oleg Nenashev 5 年之前
父节点
当前提交
24d7ef1d0e
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 2 1
      Directory.Build.targets
  2. 3 1
      src/Core/WinSWCore/WinSWCore.csproj

+ 2 - 1
Directory.Build.targets

@@ -6,7 +6,8 @@
 
   <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
     <!-- https://docs.microsoft.com/windows/win32/wmisdk/common-information-model -->
-    <DefineConstants>$(DefineConstants);FEATURE_CIM</DefineConstants>
+    <!-- https://github.com/kohsuke/winsw/issues/411 -->
+    <!-- <DefineConstants>$(DefineConstants);FEATURE_CIM</DefineConstants> -->
   </PropertyGroup>
 
 </Project>

+ 3 - 1
src/Core/WinSWCore/WinSWCore.csproj

@@ -14,8 +14,10 @@
   </ItemGroup>
 
   <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
-    <PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" />
+    <!-- https://github.com/kohsuke/winsw/issues/411 -->
+    <!-- <PackageReference Include="Microsoft.Management.Infrastructure" Version="2.0.0" /> -->
     <PackageReference Include="System.Diagnostics.EventLog" Version="4.7.0" />
+    <PackageReference Include="System.Management" Version="4.7.0" />
   </ItemGroup>
 
   <!-- error NU1605: Detected package downgrade: log4net 2.0.8 -->