Skip to content

Commit 2cd9bdc

Browse files
committed
Define constant TEST in test projects
E2E is defined separately because it is standalone.
1 parent 0e2f0a1 commit 2cd9bdc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/PowerShellEditorServices.Test.E2E/PowerShellEditorServices.Test.E2E.csproj

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

9+
<PropertyGroup>
10+
<DefineConstants>$(DefineConstants);TEST</DefineConstants>
11+
</PropertyGroup>
12+
913
<ItemGroup>
1014
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
1115
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />

test/PowerShellEditorServices.Test.Shared/PowerShellEditorServices.Test.Shared.csproj

+8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), PowerShellEditorServices.Common.props))\PowerShellEditorServices.Common.props" />
3+
34
<PropertyGroup>
45
<VersionPrefix>0.9.0-beta</VersionPrefix>
56
<TargetFrameworks>netstandard2.0</TargetFrameworks>
67
<AssemblyName>Microsoft.PowerShell.EditorServices.Test.Shared</AssemblyName>
78
</PropertyGroup>
9+
10+
<PropertyGroup>
11+
<DefineConstants>$(DefineConstants);TEST</DefineConstants>
12+
</PropertyGroup>
13+
814
<ItemGroup>
915
<ProjectReference Include="..\..\src\PowerShellEditorServices\PowerShellEditorServices.csproj" />
1016
</ItemGroup>
17+
1118
<PropertyGroup>
1219
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1320
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
1421
</PropertyGroup>
22+
1523
<ItemGroup>
1624
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
1725
<_Parameter1>Microsoft.PowerShell.EditorServices.Test</_Parameter1>

0 commit comments

Comments
 (0)