chr
2026-04-05 fe750b791d5b517cc4e9bc8e99a9a75139a0cfba
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
<Project>
    <PropertyGroup Condition="'$(OS)'=='Windows_NT' AND '$(Configuration)'==''">
        <Configuration>Debug</Configuration>
    </PropertyGroup>
    <PropertyGroup Condition="'$(OS)'=='Unix' AND '$(Configuration)'==''">
        <Configuration>LinuxDebug</Configuration>
    </PropertyGroup>
    
    <PropertyGroup>
        <!-- This variable is only defined so we can compile locally without replacing GitVersion. 
             It will be removed in the build script. -->
        <GitVersion>9.26.1</GitVersion>
    </PropertyGroup>    
    <PropertyGroup>
        <!-- Ensure that all projects in this solution use the same version of OpenTAP -->        
        <OpenTapVersion>$(GitVersion)</OpenTapVersion>
        <TargetFramework>net9</TargetFramework>
        <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
        <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
        <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
        <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
        <OutputPath>$(MSBuildThisFileDirectory)bin\$(Configuration)\</OutputPath>
        <PlatformTarget>x64</PlatformTarget>
    </PropertyGroup>
    
    <!-- To support building on linux, it is needed to disable some things, like installing Developers System. -->
    <PropertyGroup Condition="'$(OS)'=='Unix'">
        <IsLinux>True</IsLinux>
        <IsWindows>False</IsWindows>
    </PropertyGroup>
    <PropertyGroup Condition="'$(OS)'=='Windows_NT'">
        <IsLinux>False</IsLinux>
        <IsWindows>True</IsWindows>
    </PropertyGroup>
    
    <PropertyGroup>
        <DevelopersSystem Condition="'$(Configuration)' == 'Debug CE'">Editor X</DevelopersSystem>
        <DevelopersSystem Condition="'$(Configuration)' != 'Debug CE'">Developer's System</DevelopersSystem>
    </PropertyGroup>
 
  <!-- We need to override the default runtimeconfig used by OpenTAP because it cannot otherwise resolve some Windows Desktop references -->
  <ItemGroup Condition="'$(IsWindows)'=='True'">
    <Content Include="$(MSBuildThisFileDirectory)Custom.runtimeconfig.json">
      <Link>tap.runtimeconfig.json</Link>
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
</Project>