Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/publish-csharp-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,26 @@ jobs:

- name: Restore
if: startsWith(github.ref, format('refs/tags/csharp/{0}/v', matrix.sdk.tagPrefix))
run: dotnet restore "${{ matrix.sdk.csprojPath }}"
run: |
EXTRA_RESTORE_ARGS=""
if [ "${{ matrix.sdk.name }}" = "code-interpreter" ]; then
EXTRA_RESTORE_ARGS="-p:UseLocalOpenSandboxProjectReference=false"
fi
dotnet restore "${{ matrix.sdk.csprojPath }}" ${EXTRA_RESTORE_ARGS}

- name: Pack
if: startsWith(github.ref, format('refs/tags/csharp/{0}/v', matrix.sdk.tagPrefix))
run: |
EXTRA_PACK_ARGS=""
Comment thread
hittyt marked this conversation as resolved.
if [ "${{ matrix.sdk.name }}" = "code-interpreter" ]; then
EXTRA_PACK_ARGS="-p:UseLocalOpenSandboxProjectReference=false"
fi
dotnet pack "${{ matrix.sdk.csprojPath }}" \
--configuration Release \
--no-restore \
-p:PackageVersion="${PACKAGE_VERSION}" \
-p:ContinuousIntegrationBuild=true \
${EXTRA_PACK_ARGS} \
--output ./artifacts/${{ matrix.sdk.name }}

- name: Publish to NuGet
Expand Down
8 changes: 8 additions & 0 deletions sdks/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<!-- Shared C# SDK packaging metadata -->
<OpenSandboxPackageVersion>0.1.0</OpenSandboxPackageVersion>
<OpenSandboxCodeInterpreterPackageVersion>0.1.0</OpenSandboxCodeInterpreterPackageVersion>
<OpenSandboxDependencyVersionRange>[$(OpenSandboxPackageVersion),0.2.0)</OpenSandboxDependencyVersionRange>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

<!-- Package Information -->
<PackageId>Alibaba.OpenSandbox.CodeInterpreter</PackageId>
<Version>0.1.0</Version>
<Version>$(OpenSandboxCodeInterpreterPackageVersion)</Version>
<Authors>Alibaba Group</Authors>
<Company>Alibaba Group Holding Ltd.</Company>
<Product>OpenSandbox Code Interpreter SDK</Product>
<Description>A C# SDK for code interpretation with OpenSandbox. Provides high-level APIs for executing code in multiple languages (Python, JavaScript, TypeScript, Go, Java, Bash) within secure sandbox environments.</Description>
<Copyright>Copyright 2026 Alibaba Group Holding Ltd.</Copyright>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/alibaba/OpenSandbox</PackageProjectUrl>
<PackageProjectUrl>https://open-sandbox.ai</PackageProjectUrl>
<RepositoryUrl>https://github.com/alibaba/OpenSandbox.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>sandbox;code-interpreter;execution;opensandbox;alibaba;python;javascript</PackageTags>
Expand All @@ -27,18 +27,30 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>

<!--
Default to local source reference for development.
For release packing with NuGet version range, run:
dotnet pack -c Release -p:UseLocalOpenSandboxProjectReference=false
-->
Comment thread
hittyt marked this conversation as resolved.
<UseLocalOpenSandboxProjectReference Condition="'$(UseLocalOpenSandboxProjectReference)' == ''">true</UseLocalOpenSandboxProjectReference>
</PropertyGroup>

<!-- Expose internals to test project -->
<ItemGroup>
<InternalsVisibleTo Include="OpenSandbox.CodeInterpreter.Tests" />
</ItemGroup>

<!-- Project References -->
<ItemGroup>
<!-- Use local project reference for day-to-day development -->
<ItemGroup Condition="'$(UseLocalOpenSandboxProjectReference)' == 'true'">
<ProjectReference Include="..\..\..\..\sandbox\csharp\src\OpenSandbox\OpenSandbox.csproj" />
</ItemGroup>

<!-- Use NuGet dependency range for release packaging -->
<ItemGroup Condition="'$(UseLocalOpenSandboxProjectReference)' != 'true'">
<PackageReference Include="Alibaba.OpenSandbox" Version="$(OpenSandboxDependencyVersionRange)" />
</ItemGroup>

<!-- Common Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
Expand Down
2 changes: 1 addition & 1 deletion sdks/code-interpreter/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"bugs": {
"url": "https://github.com/alibaba/OpenSandbox/issues"
},
"homepage": "https://github.com/alibaba/OpenSandbox",
"homepage": "https://open-sandbox.ai",
"files": [
"dist",
"src"
Expand Down
4 changes: 2 additions & 2 deletions sdks/code-interpreter/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ dependencies = [
]

[project.urls]
Homepage = "https://github.com/alibaba/OpenSandbox"
Homepage = "https://open-sandbox.ai"
Repository = "https://github.com/alibaba/OpenSandbox"
Documentation = "https://docs.opensandbox.io"
Documentation = "https://open-sandbox.ai"
Issues = "https://github.com/alibaba/OpenSandbox/issues"

[tool.hatch.version]
Expand Down
4 changes: 2 additions & 2 deletions sdks/mcp/sandbox/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ dependencies = [
]

[project.urls]
Homepage = "https://github.com/alibaba/OpenSandbox"
Homepage = "https://open-sandbox.ai"
Repository = "https://github.com/alibaba/OpenSandbox"
Documentation = "https://docs.opensandbox.io"
Documentation = "https://open-sandbox.ai"
Issues = "https://github.com/alibaba/OpenSandbox/issues"

[project.scripts]
Expand Down
2 changes: 2 additions & 0 deletions sdks/sandbox/csharp/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<Project>
<Import Project="$(MSBuildThisFileDirectory)..\..\Directory.Build.props" Condition="Exists('$(MSBuildThisFileDirectory)..\..\Directory.Build.props')" />

<PropertyGroup>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
Expand Down
4 changes: 2 additions & 2 deletions sdks/sandbox/csharp/src/OpenSandbox/OpenSandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

<!-- Package Information -->
<PackageId>Alibaba.OpenSandbox</PackageId>
<Version>0.1.0</Version>
<Version>$(OpenSandboxPackageVersion)</Version>
<Authors>Alibaba Group</Authors>
<Company>Alibaba Group Holding Ltd.</Company>
<Product>OpenSandbox SDK</Product>
<Description>A C# SDK for low-level interaction with OpenSandbox. It provides the ability to create, manage, and interact with secure sandbox environments, including executing shell commands, managing files, and reading resource metrics.</Description>
<Copyright>Copyright 2026 Alibaba Group Holding Ltd.</Copyright>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/alibaba/OpenSandbox</PackageProjectUrl>
<PackageProjectUrl>https://open-sandbox.ai</PackageProjectUrl>
<RepositoryUrl>https://github.com/alibaba/OpenSandbox.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>sandbox;container;docker;execution;opensandbox;alibaba</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion sdks/sandbox/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"bugs": {
"url": "https://github.com/alibaba/OpenSandbox/issues"
},
"homepage": "https://github.com/alibaba/OpenSandbox",
"homepage": "https://open-sandbox.ai",
"files": [
"dist",
"src"
Expand Down
4 changes: 2 additions & 2 deletions sdks/sandbox/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ dependencies = [
]

[project.urls]
Homepage = "https://github.com/alibaba/OpenSandbox"
Homepage = "https://open-sandbox.ai"
Repository = "https://github.com/alibaba/OpenSandbox"
Documentation = "https://docs.opensandbox.io"
Documentation = "https://open-sandbox.ai"
Issues = "https://github.com/alibaba/OpenSandbox/issues"

[tool.hatch.version]
Expand Down