How to “add REST API Reference” in a VB.net class library in VS2017? the right-click option doesn't...
I'm trying to add a REST API reference to a vb.net class library application. The option that I'm used to do ("right-click--> Add--> Rest API Client") simply doesn't appear on vb.net class libraries.
How can I do that?
I expect to be able to consume a REST API from my vb.net code without having to write all the references by hand.
.net vb.net asp.net-web-api visual-studio-2017 client
add a comment |
I'm trying to add a REST API reference to a vb.net class library application. The option that I'm used to do ("right-click--> Add--> Rest API Client") simply doesn't appear on vb.net class libraries.
How can I do that?
I expect to be able to consume a REST API from my vb.net code without having to write all the references by hand.
.net vb.net asp.net-web-api visual-studio-2017 client
Possible duplicate of "REST API Client" option in Visual Studio for ASP.NET Core projects?
– matt_lethargic
Jan 3 at 16:24
I took a look at the "possible duplicate" question and it's not the same issue I ran into. thanks for the suggestion.
– user6435554
Jan 9 at 16:53
add a comment |
I'm trying to add a REST API reference to a vb.net class library application. The option that I'm used to do ("right-click--> Add--> Rest API Client") simply doesn't appear on vb.net class libraries.
How can I do that?
I expect to be able to consume a REST API from my vb.net code without having to write all the references by hand.
.net vb.net asp.net-web-api visual-studio-2017 client
I'm trying to add a REST API reference to a vb.net class library application. The option that I'm used to do ("right-click--> Add--> Rest API Client") simply doesn't appear on vb.net class libraries.
How can I do that?
I expect to be able to consume a REST API from my vb.net code without having to write all the references by hand.
.net vb.net asp.net-web-api visual-studio-2017 client
.net vb.net asp.net-web-api visual-studio-2017 client
asked Jan 2 at 19:59


user6435554user6435554
244
244
Possible duplicate of "REST API Client" option in Visual Studio for ASP.NET Core projects?
– matt_lethargic
Jan 3 at 16:24
I took a look at the "possible duplicate" question and it's not the same issue I ran into. thanks for the suggestion.
– user6435554
Jan 9 at 16:53
add a comment |
Possible duplicate of "REST API Client" option in Visual Studio for ASP.NET Core projects?
– matt_lethargic
Jan 3 at 16:24
I took a look at the "possible duplicate" question and it's not the same issue I ran into. thanks for the suggestion.
– user6435554
Jan 9 at 16:53
Possible duplicate of "REST API Client" option in Visual Studio for ASP.NET Core projects?
– matt_lethargic
Jan 3 at 16:24
Possible duplicate of "REST API Client" option in Visual Studio for ASP.NET Core projects?
– matt_lethargic
Jan 3 at 16:24
I took a look at the "possible duplicate" question and it's not the same issue I ran into. thanks for the suggestion.
– user6435554
Jan 9 at 16:53
I took a look at the "possible duplicate" question and it's not the same issue I ran into. thanks for the suggestion.
– user6435554
Jan 9 at 16:53
add a comment |
1 Answer
1
active
oldest
votes
I Didn't find a way to use the shortcut "right-click--> Add--> Rest API Client" in VS2017 when dealing w/ VB.Net class library/ Windows Form projects types.
The solution was to add a C# class library project, to be able to add the Rest API reference via Project's context menu. Then it was just to reference the new created C# project (containing the API ref) in the main Project (VB.Net).
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012413%2fhow-to-add-rest-api-reference-in-a-vb-net-class-library-in-vs2017-the-right-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I Didn't find a way to use the shortcut "right-click--> Add--> Rest API Client" in VS2017 when dealing w/ VB.Net class library/ Windows Form projects types.
The solution was to add a C# class library project, to be able to add the Rest API reference via Project's context menu. Then it was just to reference the new created C# project (containing the API ref) in the main Project (VB.Net).
add a comment |
I Didn't find a way to use the shortcut "right-click--> Add--> Rest API Client" in VS2017 when dealing w/ VB.Net class library/ Windows Form projects types.
The solution was to add a C# class library project, to be able to add the Rest API reference via Project's context menu. Then it was just to reference the new created C# project (containing the API ref) in the main Project (VB.Net).
add a comment |
I Didn't find a way to use the shortcut "right-click--> Add--> Rest API Client" in VS2017 when dealing w/ VB.Net class library/ Windows Form projects types.
The solution was to add a C# class library project, to be able to add the Rest API reference via Project's context menu. Then it was just to reference the new created C# project (containing the API ref) in the main Project (VB.Net).
I Didn't find a way to use the shortcut "right-click--> Add--> Rest API Client" in VS2017 when dealing w/ VB.Net class library/ Windows Form projects types.
The solution was to add a C# class library project, to be able to add the Rest API reference via Project's context menu. Then it was just to reference the new created C# project (containing the API ref) in the main Project (VB.Net).
answered Jan 9 at 17:01


user6435554user6435554
244
244
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54012413%2fhow-to-add-rest-api-reference-in-a-vb-net-class-library-in-vs2017-the-right-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of "REST API Client" option in Visual Studio for ASP.NET Core projects?
– matt_lethargic
Jan 3 at 16:24
I took a look at the "possible duplicate" question and it's not the same issue I ran into. thanks for the suggestion.
– user6435554
Jan 9 at 16:53