File tree Expand file tree Collapse file tree 4 files changed +14
-32
lines changed
Expand file tree Collapse file tree 4 files changed +14
-32
lines changed Original file line number Diff line number Diff line change 1515 </PropertyGroup >
1616
1717 <ItemGroup >
18- <ProjectReference Include =" ../../ RocketWelder.SDK/RocketWelder.SDK.csproj " />
18+ <PackageReference Include =" RocketWelder.SDK" Version = " 1.1.34-preview.616c539 " />
1919 <PackageReference Include =" Microsoft.Extensions.Hosting" Version =" 10.0.0" />
2020 <PackageReference Include =" Emgu.CV" Version =" 4.11.0.5746" />
2121 <PackageReference Include =" Emgu.CV.runtime.ubuntu-x64" Version =" 4.11.0.5746" />
Original file line number Diff line number Diff line change 11# Multi-stage build for C# BallDetection example
22# Sink-only example - detects ball and outputs via NNG (no frame modification)
3+ # Build context: csharp/ directory (run via build_docker_samples.sh)
34FROM mcr.microsoft.com/dotnet/sdk:10.0-noble AS build
45WORKDIR /src
56
6- # Copy the SDK project files first
7- COPY RocketWelder.SDK/RocketWelder.SDK.csproj RocketWelder.SDK/
7+ # Copy the project file and restore dependencies (SDK from NuGet)
8+ COPY examples/BallDetection/BallDetection.csproj .
9+ RUN dotnet restore
810
9- # Copy the BallDetection project file
10- COPY examples/BallDetection/BallDetection.csproj examples/BallDetection/
11-
12- # Restore dependencies
13- WORKDIR /src
14- RUN dotnet restore examples/BallDetection/BallDetection.csproj
15-
16- # Copy the source code
17- COPY RocketWelder.SDK/ RocketWelder.SDK/
18- COPY examples/BallDetection/ examples/BallDetection/
19-
20- # Build and publish
21- WORKDIR /src/examples/BallDetection
11+ # Copy the source code and build
12+ COPY examples/BallDetection/ .
2213RUN dotnet publish -c Release -o /app/publish
2314
2415# Runtime stage - Using Ubuntu 24.04 (Noble) for GLIBC 2.38+ compatibility
Original file line number Diff line number Diff line change 11# Multi-stage build for C# SimpleClient
22# Using .NET 10.0 Preview - required for SDK compatibility
3+ # Build context: csharp/ directory (run via build_docker_samples.sh)
34FROM mcr.microsoft.com/dotnet/sdk:10.0-noble AS build
45WORKDIR /src
56
6- # Copy the SDK project files first
7- COPY RocketWelder.SDK/RocketWelder.SDK.csproj RocketWelder.SDK/
7+ # Copy the project file and restore dependencies (SDK from NuGet)
8+ COPY examples/SimpleClient/SimpleClient.csproj .
9+ RUN dotnet restore
810
9- # Copy the SimpleClient project file
10- COPY examples/SimpleClient/SimpleClient.csproj examples/SimpleClient/
11-
12- # Restore dependencies
13- WORKDIR /src
14- RUN dotnet restore examples/SimpleClient/SimpleClient.csproj
15-
16- # Copy the source code
17- COPY RocketWelder.SDK/ RocketWelder.SDK/
18- COPY examples/SimpleClient/ examples/SimpleClient/
19-
20- # Build and publish
21- WORKDIR /src/examples/SimpleClient
11+ # Copy the source code and build
12+ COPY examples/SimpleClient/ .
2213RUN dotnet publish -c Release -o /app/publish
2314
2415# Runtime stage - Using Ubuntu 24.04 (Noble) for GLIBC 2.38+ compatibility
Original file line number Diff line number Diff line change 1414 </PropertyGroup >
1515
1616 <ItemGroup >
17- <ProjectReference Include =" ../../ RocketWelder.SDK/RocketWelder.SDK.csproj " />
17+ <PackageReference Include =" RocketWelder.SDK" Version = " 1.1.34-preview.616c539 " />
1818 <PackageReference Include =" Microsoft.Extensions.Hosting" Version =" 10.0.0" />
1919 <PackageReference Include =" Emgu.CV" Version =" 4.11.0.5746" />
2020 <PackageReference Include =" Emgu.CV.runtime.ubuntu-x64" Version =" 4.11.0.5746" />
You can’t perform that action at this time.
0 commit comments