Repository navigation
Expand file tree
/
Copy pathshared.props
More file actions
76 lines (66 loc) · 3.22 KB
/
Copy pathshared.props
File metadata and controls
76 lines (66 loc) · 3.22 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<Project>
<Import Project="localsettings.props" />
<PropertyGroup>
<Configurations>OneIM900;OneIM910;OneIM911;OneIM912;OneIM913;OneIM920;OneIM921;OneIM930;OneIM931;OneIM922;OneIM1000</Configurations>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputPath>..\build\$(Configuration)\</OutputPath>
<PreprocessorVersion>$(Configuration.ToUpper())</PreprocessorVersion>
<VersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(Configuration), '\d+').Value)</VersionNumber>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<DefineConstants>$(DefineConstants);NETFRAMEWORK</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(VersionNumber) < 930">
<TargetFramework>net481</TargetFramework>
<LangVersion>10.0</LangVersion>
<NLogFilename>globallog.config</NLogFilename>
</PropertyGroup>
<PropertyGroup Condition="$(VersionNumber) >= 1000">
<DotNetVersion>10.0</DotNetVersion>
</PropertyGroup>
<PropertyGroup Condition="$(VersionNumber) >= 930 And $(VersionNumber) < 1000">
<DotNetVersion>8.0</DotNetVersion>
</PropertyGroup>
<PropertyGroup Condition="$(VersionNumber) >= 930">
<TargetFramework Condition="'$(GuiTarget)'=='true'">net$(DotNetVersion)-windows</TargetFramework>
<TargetFramework Condition="'$(GuiTarget)'!='true'">net$(DotNetVersion)</TargetFramework>
<NLogFilename>nlog.config</NLogFilename>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
<ItemGroup Condition="$(VersionNumber) >= 930">
<PackageReference Include="VI.Base" Version="$(VIBaseVersion)" />
<PackageReference Include="VI.DB" Version="$(VIDBVersion)" />
<!-- specific version is not ideal, but this needs to match what OI has to avoid warnings. Move to user settings later. -->
<PackageReference Condition="'$(GuiTarget)'=='true'" Include="System.Drawing.Common" Version="9.0.0.0" />
</ItemGroup>
<ItemGroup Condition="$(VersionNumber) < 930">
<Reference Include="Newtonsoft.Json">
<HintPath>$(OneIMBaseDir)\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="VI.Base">
<HintPath>$(OneIMBaseDir)\VI.Base.dll</HintPath>
</Reference>
<Reference Include="VI.DB">
<HintPath>$(OneIMBaseDir)\VI.DB.dll</HintPath>
</Reference>
<Reference Include="NLog">
<HintPath>$(OneIMBaseDir)\NLog.dll</HintPath>
</Reference>
</ItemGroup>
<Target Name="PackNupkg" AfterTargets="Pack">
<PropertyGroup>
<NugetPackage>$(OutputPath)\..\$(AssemblyName).$(PackageVersion).nupkg</NugetPackage>
<NugetPackageTarget>$(OutputPath)\..\$(AssemblyName).nupkg.zip</NugetPackageTarget>
</PropertyGroup>
<Exec Command="powershell -NoProfile -Command "Compress-Archive -Path '$(NugetPackage)' -DestinationPath '$(NugetPackageTarget)' -Force"" />
</Target>
</Project>