-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMigrateData3to4.csproj
28 lines (28 loc) · 2.15 KB
/
MigrateData3to4.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Authors>Mark Crossley</Authors>
<Company>Cumulus MX</Company>
<Product>Cumulus MX Data Migration Utility</Product>
<AssemblyVersion>$(PackageVersion)</AssemblyVersion>
<FileVersion>$(PackageVersion)</FileVersion>
<Version>1.0.4.0011</Version>
<StartupObject>MigrateData3to4.Program</StartupObject>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
<Copyright>Copyright © 2023-$([System.DateTime]::Now.ToString('yyyy')) Cumulus MX</Copyright>
<PlatformTarget>AnyCPU</PlatformTarget>
<Platforms>AnyCPU;x86</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="echo.
echo Starting post-build tasks
echo Update Distribution folder
if $(Platform)==x86 (
 echo copy exe - x86
 xcopy "$(OutputPath)\MigrateData3to4.exe" "$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX\MigrateData3to4-32.exe" /D /-I /Y
)
if $(Platform)==AnyCPU (
 echo copy MX exe - AnyCPU
 xcopy "$(TargetPath)" "$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX" /D /-I /Q /Y
 xcopy "$(OutputPath)\MigrateData3to4.exe" "$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX" /D /-I /Q /Y
 echo - copy config
 xcopy "$(OutputPath)\MigrateData3to4.runtimeconfig.json" "$(SolutionDir)..\CumulusMX-Dist.Net\CumulusMX" /D /-I /Q /Y
)
echo ###############################################
echo Build complete - MigrateData3to4: $(PackageVersion)
echo ###############################################" />
</Target>
</Project>