Skip to content

Commit 1622ccb

Browse files
committed
Fix test parallelization configuration
- Removed invalid AssemblyAttribute from csproj - Created AssemblyInfo.cs with proper Parallelize attribute - This fixes MSB3715 error where ExecutionScope type was not found MSTest 4.0 requires assembly-level parallelization to be configured via code, not project file attributes.
1 parent 2d2a310 commit 1622ccb

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
3+
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

test/NosCore.Networking.Tests/NosCore.Networking.Tests.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
<IsPackable>false</IsPackable>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
88
</PropertyGroup>
9-
10-
<ItemGroup>
11-
<AssemblyAttribute Include="Microsoft.VisualStudio.TestTools.UnitTesting.ParallelizeAttribute">
12-
<_Parameter1>Microsoft.VisualStudio.TestTools.UnitTesting.ExecutionScope.MethodLevel</_Parameter1>
13-
<_Parameter1_TypeName>Microsoft.VisualStudio.TestTools.UnitTesting.ExecutionScope</_Parameter1_TypeName>
14-
</AssemblyAttribute>
15-
</ItemGroup>
169

1710
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
1811
<OutputPath>..\..\build\</OutputPath>

0 commit comments

Comments
 (0)