File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 6
6
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
7
7
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
8
8
</PropertyGroup >
9
+ <PropertyGroup Condition =" '$(OS)' == 'Windows_NT'" >
10
+ <DefineConstants >$(DefineConstants);WINDOWS</DefineConstants >
11
+ </PropertyGroup >
9
12
<ItemGroup >
10
13
<ProjectReference Include =" ..\ArchUnitNET.xUnit\ArchUnitNET.xUnit.csproj" />
11
14
<ProjectReference Include =" ..\TestAssemblies\InterfaceAssembly\InterfaceAssembly.csproj" />
37
40
<PackageReference Include =" xunit.runner.visualstudio" Version =" 3.1.4" />
38
41
</ItemGroup >
39
42
<ItemGroup >
40
- <None Update =" Dependencies\cpplib\CppDllTest.dll" >
41
- <CopyToOutputDirectory >Never</CopyToOutputDirectory >
42
- </None >
43
43
<None Update =" Domain\PlantUml\zzz_test_version_with_errors.puml" >
44
44
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
45
45
</None >
46
46
</ItemGroup >
47
47
<ItemGroup >
48
- <Folder Include =" Dependencies\cpplib\" />
49
48
<Folder Include =" Fluent\Syntax\Elements\Snapshots\" />
50
49
</ItemGroup >
51
- <ItemGroup >
50
+ <!-- Windows-only C++/CLI dependency -->
51
+ <ItemGroup Condition =" '$(OS)' == 'Windows_NT'" >
52
+ <None Update =" Dependencies\cpplib\CppDllTest.dll" >
53
+ <CopyToOutputDirectory >Never</CopyToOutputDirectory >
54
+ </None >
55
+ <Folder Include =" Dependencies\cpplib\" />
52
56
<Reference Include =" CppDllTest" >
53
57
<HintPath >Dependencies\cpplib\CppDllTest.dll</HintPath >
54
58
</Reference >
Original file line number Diff line number Diff line change 5
5
6
6
namespace ArchUnitNETTests . Dependencies
7
7
{
8
+ #if WINDOWS
8
9
public class CppDependenciesTests
9
10
{
10
11
private static readonly Architecture Architecture = new ArchLoader ( )
@@ -26,6 +27,7 @@ internal class CppExampleClassUser
26
27
{
27
28
CppExampleClass _cppExampleClass = new CppExampleClass ( ) ;
28
29
}
30
+ #endif
29
31
30
32
/*
31
33
* C++/CLI code contains the next .h .cpp content
You can’t perform that action at this time.
0 commit comments