-
Notifications
You must be signed in to change notification settings - Fork 593
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
Add Publish target for C# builds and upgrade NuGet packages #3451
Conversation
|
||
```shell | ||
msbuild msbuild\ice.proj /t:BuildDist | ||
``` |
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.
BuildDist was used before when we have separate targets for sources and tests. Now is just an alias for 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'd rather remove BuildDist and not keep it as an alias for 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.
Ok, I would in a follow up PR, need to fix CI builds that relay in all languages to provide a BuildDist target.
</PropertyGroup> | ||
|
||
<Choose> |
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.
The properties below were used to find slice2cs in different platforms. With the new package we will always use the Slice compiler included in the NuGet package.
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.
In the future when we publish to NuGet Gallery, will be include binaries for Linux, macOS, and 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.
Need to add a platform subdir like we do in IceRPC.
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.
Looks good. How will this work for as a multi platform package?
I would deal with this in a follow up PR. |
|
||
```shell | ||
msbuild msbuild\ice.proj /t:BuildDist | ||
``` |
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'd rather remove BuildDist and not keep it as an alias for Build.
You can publish the package to your local `global-packages` source with the following command: | ||
|
||
```shell | ||
dotnet msbuild msbuild\ice.proj /t:Publish |
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.
For a follow-up PR: is there anyway we can switch to "dotnet build" and not need the msbuild/ice.proj
argument?
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.
We need MSBuild for the C++ dependencies. If we build then separately it would be fine to use dotnet.
This PR upgrades C# NuGet packages to include slice2cs compiler in all builds. The PR also adds a new MSBuild target
Publish
to publish the NuGet package to the localglobal-packages
source.The BUILDING.md has been updated to reflect this changes.