Skip to content

Commit 86ae2ff

Browse files
committed
tools/Sentry.Bindings.Cocoa.PostProcessor ?
1 parent 7ae4218 commit 86ae2ff

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ docs/docfx.zip
2424
mono_crash.*.json
2525
test_output/
2626
test/**/*.apk
27-
/tools/
27+
/tools/sentry-cli/
2828
*.log
2929
.sentry-native
3030
**/EnvironmentVariables.g.cs

scripts/generate-cocoa-bindings.ps1

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,5 @@ $Text | Out-File "$BindingsPath/$File"
321321
################################################################################
322322
# Post-process ApiDefinitions.cs
323323
################################################################################
324-
try
325-
{
326-
Write-Output "Post-processing $BindingsPath/$File"
327-
Push-Location $PSScriptRoot
328-
& dotnet run "post-process-cocoa-bindings.cs" "$BindingsPath/$File" | ForEach-Object { Write-Host $_ }
329-
}
330-
finally
331-
{
332-
Pop-Location
333-
}
324+
Write-Output "Post-processing $BindingsPath/$File"
325+
& dotnet run --project "$RootPath/tools/Sentry.Bindings.Cocoa.PostProcessor/Sentry.Bindings.Cocoa.PostProcessor.csproj" -- "$BindingsPath/$File" | ForEach-Object { Write-Host $_ }

scripts/global.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@
127127
<MSBuild Projects="$(MSBuildProjectFile)" Targets="_InnerGenerateSentryCocoaBindings" Properties="TargetFramework=once" />
128128
</Target>
129129
<Target Name="_InnerGenerateSentryCocoaBindings">
130-
<!-- TODO: error NETSDK1045: The current .NET SDK does not support targeting .NET 10.0. Either target .NET 9.0 or lower, or use a version of the .NET SDK that supports .NET 10.0. Download the .NET SDK from https://aka.ms/dotnet/download-->
131-
<!-- <Exec Command="pwsh ../../scripts/generate-cocoa-bindings.ps1" /> -->
130+
<Exec Command="pwsh ../../scripts/generate-cocoa-bindings.ps1" />
132131
<!-- See https://github.com/getsentry/sentry-dotnet/pull/2558 -->
133132
<Exec Condition="'$(GITHUB_ACTIONS)' == 'true'" Command="pwsh ../../scripts/dirty-check.ps1 -PathToCheck $(MSBuildThisFileDirectory)" />
134133
</Target>

scripts/post-process-cocoa-bindings.cs renamed to tools/Sentry.Bindings.Cocoa.PostProcessor/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
#:package Microsoft.CodeAnalysis.CSharp@4.14.0
21
using Microsoft.CodeAnalysis;
32
using Microsoft.CodeAnalysis.CSharp;
43
using Microsoft.CodeAnalysis.CSharp.Syntax;
54

65
if (args.Length != 1)
76
{
8-
Console.Error.WriteLine("Usage: dotnet run post-process-cocoa-bindings.cs <path/to/ApiDefinitions.cs>");
7+
Console.Error.WriteLine("Usage: Sentry.Bindings.Cocoa.PostProcessor <path/to/ApiDefinitions.cs>");
98
return;
109
}
1110

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
12+
</ItemGroup>
13+
14+
</Project>

0 commit comments

Comments
 (0)