-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[net]build(nuget): add NuGet package readme and other info for Sails.…
…ClientGenerator (#733)
- Loading branch information
1 parent
737f3c8
commit 3bcf4f1
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Sails.ClientGenerator | ||
===================== | ||
|
||
A library generating .NET code for communicating with programs written using | ||
[Sails](https://github.com/gear-tech/sails?tab=readme-ov-file#sails-) framework | ||
based on their IDL files. The generated code relies on abstractions provided by | ||
[Sails.Net](https://www.nuget.org/packages/Sails.Net). | ||
|
||
### Usage | ||
|
||
In the `csproj` file of the project willing to use generated client code, add: | ||
```xml | ||
<ItemGroup> | ||
<!-- IDL file obtained from Sails program --> | ||
<AdditionalFile Include="demo.idl" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Sails.ClientGenerator"> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="Sails.Net" /> | ||
</ItemGroup> | ||
``` | ||
This will generate .NET code for the client which will be found under | ||
`Dependencies -> Analyzers -> Sails.ClientGenerator -> Sails.ClientGenerator.SailsClientGenerator`. | ||
Discover how the generated code can be used via exploring | ||
[tests](https://github.com/gear-tech/sails/tree/master/net/tests/Sails.DemoClient.Tests). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters