AutoRest bootstrapper fails to retrieve NetCore & AutoRest Core.
See original GitHub issueWhen running the following command: autorest --list-installed
AutoRest Code Generator
(c) 2017 Microsoft Corporation. https://aka.ms/autorest
Build Information
Autorest Bootstrapper : 0.13.2
NetCore framework : <none>
Latest Core Installed : <none>
Requested Core Version : <none>
and if I try to generate a client library with the following command: autorest -Input "petstore.json" -Namespace "petstore" -CodeGenerator "CSharp" --debug
There are no failures indicated and the logs are filled with a bunch of github metadata (below). It doesn’t appear to retrieve the frameworks. Any insight into why this would be happening? Is there any more in depth logging that could help me discover why this would be happening. Is there a way to include a particular version of AutoRest core and bypass the bootstrapper?
[6:35:7] Network Enabled: true
AutoRest Code Generator
(c) 2017 Microsoft Corporation. https://aka.ms/autorest
[6:35:8] [ { url: 'https://api.github.com/repos/Azure/autorest/releases/6424998',
assets_url: 'https://api.github.com/repos/Azure/autorest/releases/6424998/assets',
upload_url: 'https://uploads.github.com/repos/Azure/autorest/releases/6424998/assets{?name,label}',
html_url: 'https://github.com/Azure/autorest/releases/tag/v1.0.1-20170517-2300-nightly',
id: 6424998,
tag_name: 'v1.0.1-20170517-2300-nightly',
target_commitish: 'master',
name: '1.0.1-20170517-2300-nightly',
draft: false,
author:
{ login: 'azuresdkci',
id: 1087595,
avatar_url: 'https://avatars2.githubusercontent.com/u/1087595?v=3',
gravatar_id: '',
url: 'https://api.github.com/users/azuresdkci',
html_url: 'https://github.com/azuresdkci',
followers_url: 'https://api.github.com/users/azuresdkci/followers',
following_url: 'https://api.github.com/users/azuresdkci/following{/other_user}',
gists_url: 'https://api.github.com/users/azuresdkci/gists{/gist_id}',
starred_url: 'https://api.github.com/users/azuresdkci/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/azuresdkci/subscriptions',
organizations_url: 'https://api.github.com/users/azuresdkci/orgs',
repos_url: 'https://api.github.com/users/azuresdkci/repos',
events_url: 'https://api.github.com/users/azuresdkci/events{/privacy}',
received_events_url: 'https://api.github.com/users/azuresdkci/received_events',
type: 'User',
site_admin: false },
prerelease: true,
created_at: '2017-05-17T16:54: 50Z',
published_at: '2017-05-18T06:06: 39Z',
assets: [ [Object] ],
tarball_url: 'https://api.github.com/repos/Azure/autorest/tarball/v1.0.1-20170517-2300-nightly',
zipball_url: 'https://api.github.com/repos/Azure/autorest/zipball/v1.0.1-20170517-2300-nightly',
body: 'This release just contains the binary runtimes for the 1.0.1-20170517-2300-nightly release of AutoRest.\n\nTo Install AutoRest, install nodej.js 6.9.5 or later, and run\n\n> npm install -g autorest\n\n(You don\'t want to download these files directly, there\'s no point.)' },
{ url: 'https://api.github.com/repos/Azure/autorest/releases/6410853',
assets_url: 'https://api.github.com/repos/Azure/autorest/releases/6410853/assets',
upload_url: 'https://uploads.github.com/repos/Azure/autorest/releases/6410853/assets{?name,label}',
html_url: 'https://github.com/Azure/autorest/releases/tag/v1.0.1-20170516-2300-nightly',
id: 6410853,
tag_name: 'v1.0.1-20170516-2300-nightly',
target_commitish: 'master',
name: '1.0.1-20170516-2300-nightly',
draft: false,
author:
{ login: 'azuresdkci',
id: 1087595,
avatar_url: 'https://avatars2.githubusercontent.com/u/1087595?v=3',
gravatar_id: '',
url: 'https://api.github.com/users/azuresdkci',
html_url: 'https://github.com/azuresdkci',
followers_url: 'https://api.github.com/users/azuresdkci/followers',
following_url: 'https://api.github.com/users/azuresdkci/following{/other_user}',
gists_url: 'https://api.github.com/users/azuresdkci/gists{/gist_id}',
starred_url: 'https://api.github.com/users/azuresdkci/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/azuresdkci/subscriptions',
organizations_url: 'https://api.github.com/users/azuresdkci/orgs',
repos_url: 'https://api.github.com/users/azuresdkci/repos',
events_url: 'https://api.github.com/users/azuresdkci/events{/privacy}',
received_events_url: 'https://api.github.com/users/azuresdkci/received_events',
type: 'User',
site_admin: false },
prerelease: true,
created_at: '2017-05-16T23:33: 04Z',
published_at: '2017-05-17T06:08: 06Z',
assets: [ [Object] ],
tarball_url: 'https://api.github.com/repos/Azure/autorest/tarball/v1.0.1-20170516-2300-nightly',
zipball_url: 'https://api.github.com/repos/Azure/autorest/zipball/v1.0.1-20170516-2300-nightly',
body: 'This release just contains the binary runtimes for the 1.0.1-20170516-2300-nightly release of AutoRest.\n\nTo Install AutoRest, install nodej.js 6.9.5 or later, and run\n\n> npm install -g autorest\n\n(You don\'t want to download these files directly, there\'s no point.)' },
{ ... (and so on)
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
AutoRest - npm.io
AutoRest. The AutoRest tool generates client libraries for accessing RESTful web services. Input to AutoRest is a spec that describes the REST API...
Read more >Swashbuckle.AspNetCore - Discover .NET
Swagger tooling for APIs built with ASP.NET Core. Generate beautiful API documentation, including a UI to explore and test operations, directly from your...
Read more >Java Integration | Swagger Open Source
NET Core. AutoRest, The AutoRest tool generates client libraries for accessing RESTful web services from a Swagger specification.
Read more >AutoRest–OperationId is required for all operations
This command failed with the following exception message: FATAL: OperationId is required for all operations. Here was the API controller I was ...
Read more >Error compiling Autorest Generated Client - Stack Overflow
I'm getting "Unable to find package Microsoft.Azure.AutoRest.CSharp. No packages exist with this id in source(s): DevExpress nuget.org" Is it no ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That doesn’t quite look good.
What happens if you try
autorest --reset
that should ensure that you have the right bits installed.
That did the trick! Thanks.