Skip to content

Conversation

@pepone
Copy link
Member

@pepone pepone commented Jan 30, 2025

This PR upgrades C# build & build instructions. It depends on zeroc-ice/ice#3451

build_flags: ${{ runner.os == 'Windows' && '/t:BuildDist' || 'srcs' }}

- name: Publish C# NuGet Packages on ${{ matrix.os }}
timeout-minutes: 30
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make this more like 5 mins?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

Comment on lines 74 to 75
run: dotnet msbuild ice.proj /t:Publish
if: runner.os != 'Windows'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
run: dotnet msbuild ice.proj /t:Publish
if: runner.os != 'Windows'
run: ${{ runner.os == 'Windows' && 'msbuild' || 'dotnet msbuild' }} ice.proj /t:Publish

You can build from the command-line or with Visual Studio 2022 for Windows.

### Building the demos using NuGet packages
### Building the demos
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we mention that a local source build is currently required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we can do that.

csharp/README.md Outdated

The demos are configured to use the Ice NuGet packages. These packages are automatically
downloaded from nuget.org during the build.
For building the demos from the `main` branch you need to first install the .NET Ice NuGet packages, see the next
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove the entire sentence.

csharp/README.md Outdated
```shell
dotnet restore "C# NET demos.sln"
dotnet msbuild "C# NET demos.sln"
dotnet build "C# NET demos.sln"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dotnet build is not sufficient?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is.

csharp/README.md Outdated
```shell
dotnet msbuild /p:IceHome=<Ice dist path> /t:NetInstallLocalPackages msbuild/ice.proj
```
Refer to the C# build instructions for creating and publishing the NuGet packages from a source build:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove this section and take inspiration from https://github.com/icerpc/icerpc-csharp/blob/main/examples/README.md

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed, would improve the README in a follow up PR.

@pepone pepone merged commit 35ddb9f into zeroc-ice:main Jan 31, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants