Skip to content

Commit 0854883

Browse files
Move AllowUnsafeBlocks to specific project csproj files
Co-authored-by: eiriktsarpalis <[email protected]>
1 parent 446477d commit 0854883

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1818
<AssemblyOriginatorKeyFile>$(RepoRoot)\Open.snk</AssemblyOriginatorKeyFile>
1919
<SignAssembly>true</SignAssembly>
20-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2120
</PropertyGroup>
2221

2322
<ItemGroup>

src/ModelContextProtocol.AspNetCore/ModelContextProtocol.AspNetCore.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<Description>ASP.NET Core extensions for the C# Model Context Protocol (MCP) SDK.</Description>
1111
<PackageReadmeFile>README.md</PackageReadmeFile>
1212
<IsAotCompatible>true</IsAotCompatible>
13+
<!-- Required by GuidHelpers.cs -->
14+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1315
</PropertyGroup>
1416

1517
<ItemGroup>

src/ModelContextProtocol.Core/ModelContextProtocol.Core.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<PackageReadmeFile>README.md</PackageReadmeFile>
1010
<!-- Suppress the experimental tasks warning -->
1111
<NoWarn>$(NoWarn);MCPEXP001</NoWarn>
12+
<!-- Required by GuidHelpers.cs -->
13+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1214
</PropertyGroup>
1315

1416
<PropertyGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">

src/ModelContextProtocol/ModelContextProtocol.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<PackageReadmeFile>README.md</PackageReadmeFile>
1010
<!-- Suppress the experimental tasks warning -->
1111
<NoWarn>$(NoWarn);MCPEXP001</NoWarn>
12+
<!-- Required by GuidHelpers.cs -->
13+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1214
</PropertyGroup>
1315

1416
<PropertyGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">

0 commit comments

Comments
 (0)