C# Azure Functions code generator using autorest
Перейти к файлу
microsoft-github-policy-service[bot] ebd0536d54
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-03-28 16:43:40 +00:00
.github Update main.yml 2020-07-29 14:42:57 -05:00
.vscode CSProj creation now optional; other nits. 2020-10-21 16:05:39 -07:00
eng Rename to azure-functions-csharp (#5) 2020-07-29 13:29:13 -05:00
samples Generating .autorest_generated.json for telemetry 2020-09-30 01:29:07 -07:00
src Moving the logic of c# project generation 2020-10-21 18:12:19 -07:00
test Add schema usage tracker (#844) 2020-07-27 12:27:39 -07:00
.editorconfig Add .editorconfig and StyleCop rules, cleanup project files (#250) 2019-11-22 12:50:02 -08:00
.gitattributes Add public management ctor generation (#644) 2020-04-10 14:36:56 -07:00
.gitignore Removed func dependency, and other nit fixes. 2020-09-18 22:36:33 -07:00
AutoRest.CSharp.V3.sln Removed func dependency, and other nit fixes. 2020-09-18 22:36:33 -07:00
Autorest.AzureFunctionsCSharp.code-workspace CSProj creation now optional; other nits. 2020-10-21 16:05:39 -07:00
Directory.Build.props Add NuGet config and update autorest.testserver version (#823) 2020-06-17 13:13:20 -07:00
Directory.Build.targets Made test projects directly reference assets instead of using the generated ones. Disabled the style cop analyzers for the test server projects since they would fail when analyzing the shared assets. 2019-12-05 21:54:10 -08:00
NuGet.Config Update NuGet.Config 2020-06-19 10:23:31 -07:00
SECURITY.md Microsoft mandatory file 2023-01-24 15:57:59 +00:00
global.json Add the client model step and implement it for models and serializers (#265) 2019-12-02 12:33:30 -08:00
package-lock.json Merge pull request #9 from Azure/dependabot/npm_and_yarn/pug-code-gen-2.0.3 2021-03-04 11:31:04 -08:00
package.json Generating .autorest_generated.json for telemetry 2020-09-30 01:29:07 -07:00
readme.md Removed func dependency, and other nit fixes. 2020-09-18 22:36:33 -07:00

readme.md

Azure Functions C# code generator

Setup

Build

  • dotnet build (at root)

Usage

Prerequisites: To run Stencil on your box today, you need to have NodeJS and NPM installed. We rely on autorest (Microsoft's OpenAPI specification generator) and you need to install it on your box.

npm install -g autorest

To use C# generator, you use the --azure-functions-csharp generator plugin. The --input-file parameter can also take in a URL as well.

autorest --azure-functions-csharp \
         --input-file:/path/to/spec.json \
         --output-folder:./generated-azfunctions \
         --version:3.0.6314 \
         --namespace:Namespace

Configuration

# autorest-core version
version: 3.0.6289
shared-source-folder: $(this-folder)/src/assets
save-inputs: true
use: $(this-folder)/artifacts/bin/AutoRest.CSharp.V3/Debug/netcoreapp3.0/
clear-output-folder: false
public-clients: true
pipeline:
  azure-functions-csharpproj:
    input: modelerfour/identity
  azure-functions-csharpproj/emitter:
    input: azure-functions-csharpproj
    scope: output-scope

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.