-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathUnattendGen.csproj
More file actions
37 lines (37 loc) · 2.09 KB
/
UnattendGen.csproj
File metadata and controls
37 lines (37 loc) · 2.09 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AssemblyVersion>0.8.0.26051</AssemblyVersion>
<FileVersion>0.8.0.26051</FileVersion>
<Copyright>(c) 2024-2026. CodingWonders Software, Christoph Schneegans</Copyright>
<PublishAot>False</PublishAot>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Library\**" />
<EmbeddedResource Remove="Library\**" />
<None Remove="Library\**" />
</ItemGroup>
<ItemGroup>
<_GlobalJsonStartingDir Remove="Library\**" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="Library\UnattendGenerator.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Tests\Scripts\" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="SET TestSettings=0

COPY /Y "$(SolutionDir)LICENSE.txt" "$(TargetDir)LICENSE.txt"
COPY /Y "$(SolutionDir)Library\LICENSE.txt" "$(TargetDir)Library-License.txt"

IF %25TestSettings%25 equ 1 (XCOPY "$(SolutionDir)Tests\*" "$(TargetDir)" /CEHYI)" Condition=" '$(OS)' == 'Windows_NT' " />
<Exec Command="export TestSettings=0

cp -f "$(SolutionDir)LICENSE.txt" "$(TargetDir)LICENSE.txt"

cp -f "$(SolutionDir)Library/LICENSE.txt" "$(TargetDir)Library-License.txt"

if [ $TestSettings -eq 1 ]; then

cp -rf "$(SolutionDir)Tests/"* "$(TargetDir)/"

fi" Condition=" '$(OS)' != 'Windows_NT' " />
</Target>
</Project>