How to “add REST API Reference” in a VB.net class library in VS2017? the right-click option doesn't...












1















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.










share|improve this question























  • 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
















1















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.










share|improve this question























  • 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














1












1








1








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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












1 Answer
1






active

oldest

votes


















0














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).






share|improve this answer
























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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).






    share|improve this answer




























      0














      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).






      share|improve this answer


























        0












        0








        0







        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).






        share|improve this answer













        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).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 9 at 17:01









        user6435554user6435554

        244




        244
































            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            Npm cannot find a required file even through it is in the searched directory

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith