-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDataReader.CommandLine.csproj
More file actions
49 lines (43 loc) · 2.26 KB
/
Copy pathDataReader.CommandLine.csproj
File metadata and controls
49 lines (43 loc) · 2.26 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>DataReader.CommandLine</RootNamespace>
<AssemblyName>DataReader</AssemblyName>
<PlatformTarget>x64</PlatformTarget>
<!-- Keep the hand-written Properties\AssemblyInfo.cs (holds the log4net XmlConfigurator
attribute and the AssemblyVersion("1.0.*") wildcard) instead of an SDK-generated one -->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<!-- The AssemblyVersion("1.0.*") wildcard requires a non-deterministic build -->
<Deterministic>false</Deterministic>
<!-- Output to bin\Debug\ (no net10.0 sub-folder) to match the original layout -->
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<!-- Was gcServer enabled="true" in the old app.config -->
<ServerGarbageCollection>true</ServerGarbageCollection>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aveva.AFSDK" Version="3.2.0.52" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="NLog" Version="6.1.3" />
<!-- Pinned to a patched version: on net10 the AF SDK pulls a vulnerable 9.0.0
transitively, flagged NU1903. Direct reference overrides the transitive one. -->
<PackageReference Include="System.Security.Cryptography.Xml" Version="10.0.9" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DataReader.Core\DataReader.Core.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="NLog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<!-- Copy the full build output into the repository Build folder. .NET 10 needs the exe,
its dependency dlls, and the *.json runtime config side-by-side (the old
"exe in root / dlls in bin" split relied on app.config privatePath probing,
which .NET 10 does not support). -->
<Target Name="CopyToBuildFolder" AfterTargets="Build">
<Exec Command="robocopy "$(TargetDir)." "$(ProjectDir)..\Build" /E /XO /NJH /NJS /NP & if %25errorlevel%25 GEQ 8 (exit 1) else (exit 0)" />
</Target>
</Project>