forked from menees/Libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenees.Windows.csproj
More file actions
48 lines (41 loc) · 1.77 KB
/
Menees.Windows.csproj
File metadata and controls
48 lines (41 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- https://docs.microsoft.com/en-us/dotnet/standard/frameworks -->
<TargetFrameworks>netcoreapp3.1;net45</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Windows-specific helpers for WMI, shell dialogs, and Visual Studio invocation</Description>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="2.3.2262-g94fae01e">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Menees.Common\Menees.Common.csproj" />
</ItemGroup>
<Choose>
<When Condition=" '$(TargetFramework)' == 'net45' ">
<ItemGroup>
<Compile Remove="NativeMethods.Core.cs" />
<None Include="NativeMethods.Core.cs" />
<Compile Remove="ComObject.Core.cs" />
<None Include="ComObject.Core.cs" />
<Compile Remove="ComUtility.Core.cs" />
<None Include="ComUtility.Core.cs" />
<Reference Include="System.Management" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<Compile Remove="ComUtility.Framework.cs" />
<None Include="ComUtility.Framework.cs" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="3.1.0" />
</ItemGroup>
</Otherwise>
</Choose>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="REM The interop types are embedded, so the DLL doesn't need to be deployed.
if exist "$(OutDir)Microsoft.VisualStudio.Setup.Configuration.Interop.dll" del "$(OutDir)Microsoft.VisualStudio.Setup.Configuration.Interop.dll"" />
</Target>
</Project>