-
Notifications
You must be signed in to change notification settings - Fork 216
Update C# build & build instructions #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.github/workflows/ci.yml
Outdated
| build_flags: ${{ runner.os == 'Windows' && '/t:BuildDist' || 'srcs' }} | ||
|
|
||
| - name: Publish C# NuGet Packages on ${{ matrix.os }} | ||
| timeout-minutes: 30 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
.github/workflows/ci.yml
Outdated
| run: dotnet msbuild ice.proj /t:Publish | ||
| if: runner.os != 'Windows' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
This PR upgrades C# build & build instructions. It depends on zeroc-ice/ice#3451