-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMenees.Windows.csproj
More file actions
41 lines (36 loc) · 1.54 KB
/
Menees.Windows.csproj
File metadata and controls
41 lines (36 loc) · 1.54 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(MeneesTargetNetCoreWindows);$(MeneesTargetNetFramework)</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="3.14.2075">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Menees.Common\Menees.Common.csproj" />
</ItemGroup>
<Choose>
<When Condition=" '$(TargetFramework)' == '$(MeneesTargetNetFramework)' ">
<ItemGroup>
<Compile Remove="NativeMethods.Core.cs" />
<None Include="NativeMethods.Core.cs" />
<Compile Remove="ComUtility.Core.cs" />
<None Include="ComUtility.Core.cs" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<Compile Remove="ComUtility.Framework.cs" />
<None Include="ComUtility.Framework.cs" />
</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>