Skip to content

Commit 288e1fe

Browse files
Copilotstephentoub
andcommitted
Fix CI build failures by disabling parallel builds for Core project to avoid analyzer locking issues
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent efc0626 commit 288e1fe

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/ModelContextProtocol.Core/ModelContextProtocol.Core.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<Description>Core .NET SDK for the Model Context Protocol (MCP)</Description>
99
<PackageReadmeFile>README.md</PackageReadmeFile>
1010
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
11+
<!-- Disable parallel builds to avoid analyzer locking issues during multi-targeted builds -->
12+
<BuildInParallel>false</BuildInParallel>
1113
</PropertyGroup>
1214

1315
<PropertyGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
@@ -51,13 +53,12 @@
5153
<ItemGroup>
5254
<ProjectReference Include="..\ModelContextProtocol.SourceGenerators\ModelContextProtocol.SourceGenerators.csproj"
5355
OutputItemType="Analyzer"
54-
ReferenceOutputAssembly="false"
55-
SetTargetFramework="TargetFramework=netstandard2.0" />
56+
ReferenceOutputAssembly="false" />
5657
</ItemGroup>
5758

5859
<!-- Package the analyzer DLL into the NuGet package -->
5960
<ItemGroup>
60-
<None Include="$(ArtifactsDir)bin\ModelContextProtocol.SourceGenerators\netstandard2.0\ModelContextProtocol.SourceGenerators.dll"
61+
<None Include="$(ArtifactsDir)bin\ModelContextProtocol.SourceGenerators\$(Configuration)\netstandard2.0\ModelContextProtocol.SourceGenerators.dll"
6162
Pack="true"
6263
PackagePath="analyzers/dotnet/cs"
6364
Visible="false" />

0 commit comments

Comments
 (0)