How do you properly set up a dotnet core class libray to publish to NuGet feed in Azure DevOps?dotnet restore failing when mixing private nuget feed and NESTHow to pack/publish a .NET Standard Library to a private VSTS Nuget feed?Dotnet Core MVC Angular Issue Publishing to Azureadd private Nuget feed to Jenkins in .net corePublish Nuget Package using Azure Devopspushing public package to azure devops feedNo artifact feeds found in Azure DevOpsAzure Devops - Accessing artifact feed in release pipeline taskEntity Framework Core not compatible DotNet Core class libraryAzure DevOps NuGet Feed consumer step into source code

DC-DC converter from low voltage at high current, to high voltage at low current

What would happen to a modern skyscraper if it rains micro blackholes?

Was any UN Security Council vote triple-vetoed?

Java Casting: Java 11 throws LambdaConversionException while 1.8 does not

Replacing matching entries in one column of a file by another column from a different file

Why can't I see bouncing of switch on oscilloscope screen?

What does the "remote control" for a QF-4 look like?

Arrow those variables!

What is a clear way to write a bar that has an extra beat?

Could an aircraft fly or hover using only jets of compressed air?

LaTeX: Why are digits allowed in environments, but forbidden in commands?

dbcc cleantable batch size explanation

How is it possible to have an ability score that is less than 3?

Is it possible to do 50 km distance without any previous training?

How does quantile regression compare to logistic regression with the variable split at the quantile?

Why is consensus so controversial in Britain?

Rock identification in KY

Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

NMaximize is not converging to a solution

How does one intimidate enemies without having the capacity for violence?

Roll the carpet

What does "Puller Prush Person" mean?

How do I deal with an unproductive colleague in a small company?



How do you properly set up a dotnet core class libray to publish to NuGet feed in Azure DevOps?


dotnet restore failing when mixing private nuget feed and NESTHow to pack/publish a .NET Standard Library to a private VSTS Nuget feed?Dotnet Core MVC Angular Issue Publishing to Azureadd private Nuget feed to Jenkins in .net corePublish Nuget Package using Azure Devopspushing public package to azure devops feedNo artifact feeds found in Azure DevOpsAzure Devops - Accessing artifact feed in release pipeline taskEntity Framework Core not compatible DotNet Core class libraryAzure DevOps NuGet Feed consumer step into source code






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I created a test project to publish to my NuGet feed (in Artifacts), but I get an error in the dotnet push step. I used the classid editor and the default steps in the dotnet core template and added a new dotnet core step with the nuget push command. I get this error message:



No packages matched the search pattern.










share|improve this question




























    0















    I created a test project to publish to my NuGet feed (in Artifacts), but I get an error in the dotnet push step. I used the classid editor and the default steps in the dotnet core template and added a new dotnet core step with the nuget push command. I get this error message:



    No packages matched the search pattern.










    share|improve this question
























      0












      0








      0








      I created a test project to publish to my NuGet feed (in Artifacts), but I get an error in the dotnet push step. I used the classid editor and the default steps in the dotnet core template and added a new dotnet core step with the nuget push command. I get this error message:



      No packages matched the search pattern.










      share|improve this question














      I created a test project to publish to my NuGet feed (in Artifacts), but I get an error in the dotnet push step. I used the classid editor and the default steps in the dotnet core template and added a new dotnet core step with the nuget push command. I get this error message:



      No packages matched the search pattern.







      .net .net-core azure-devops






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 21 at 22:53









      Victor PVictor P

      7301021




      7301021






















          2 Answers
          2






          active

          oldest

          votes


















          0















          How do you properly set up a dotnet core class libray to publish to NuGet feed in Azure DevOps?




          When you got this error "No packages matched the search pattern", that means the nuget push task not got the nuget package file. May be that the package is not generated or the path to NuGet package(s) to publish is not correct.



          So, to resolve this issue, first, we need make sure we have generate that nuget package. To generate the package, we need add a nuget pack task in the pipeline or add following property in the project file .csproj:



           <PropertyGroup>
          <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
          </PropertyGroup


          We could check if that package is generated from the build log or using copy and publish build artifacts task.



          If the packages is generated, we need to check if the path to NuGet package(s) to publish is correct, I set it as $(System.DefaultWorkingDirectory)/**/*.nupkg, and it works fine:



          enter image description here



          enter image description here



          Note: If you are using nuget pack task to generate the package, the the path to NuGet package(s) to publish should be the path for Package folder in the nuget pack task.



          Hope this helps.






          share|improve this answer























          • I have a dotnet pack step before this one. I've determined that it has something to do with the target framework being netstandard2.0. I was able to get it to work correctly with a netcoreapp2.1 project. When I pack the netstandard2.0 project it puts the assembly in a bin folder along with all the dependencies and I get this error: C:Program Filesdotnetsdk2.2.104SdksNuGet.Build.Tasks.PackbuildNuGet.Build.Tasks.Pack.targets(202,5): error NU5026: The file 'D:a1sSharedbinDebugnetstandard2.0Shared.dll' to be packed was not found on disk. [D:a1sSharedShared.csproj]

            – Victor P
            Mar 22 at 15:26


















          0














          The problem seemed to be the versions of the .netstandard SDK the project was referencing. I updated everything from 2.0 to 2.2 and the dotnet pack command works now.






          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%2f55290421%2fhow-do-you-properly-set-up-a-dotnet-core-class-libray-to-publish-to-nuget-feed-i%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            How do you properly set up a dotnet core class libray to publish to NuGet feed in Azure DevOps?




            When you got this error "No packages matched the search pattern", that means the nuget push task not got the nuget package file. May be that the package is not generated or the path to NuGet package(s) to publish is not correct.



            So, to resolve this issue, first, we need make sure we have generate that nuget package. To generate the package, we need add a nuget pack task in the pipeline or add following property in the project file .csproj:



             <PropertyGroup>
            <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
            </PropertyGroup


            We could check if that package is generated from the build log or using copy and publish build artifacts task.



            If the packages is generated, we need to check if the path to NuGet package(s) to publish is correct, I set it as $(System.DefaultWorkingDirectory)/**/*.nupkg, and it works fine:



            enter image description here



            enter image description here



            Note: If you are using nuget pack task to generate the package, the the path to NuGet package(s) to publish should be the path for Package folder in the nuget pack task.



            Hope this helps.






            share|improve this answer























            • I have a dotnet pack step before this one. I've determined that it has something to do with the target framework being netstandard2.0. I was able to get it to work correctly with a netcoreapp2.1 project. When I pack the netstandard2.0 project it puts the assembly in a bin folder along with all the dependencies and I get this error: C:Program Filesdotnetsdk2.2.104SdksNuGet.Build.Tasks.PackbuildNuGet.Build.Tasks.Pack.targets(202,5): error NU5026: The file 'D:a1sSharedbinDebugnetstandard2.0Shared.dll' to be packed was not found on disk. [D:a1sSharedShared.csproj]

              – Victor P
              Mar 22 at 15:26















            0















            How do you properly set up a dotnet core class libray to publish to NuGet feed in Azure DevOps?




            When you got this error "No packages matched the search pattern", that means the nuget push task not got the nuget package file. May be that the package is not generated or the path to NuGet package(s) to publish is not correct.



            So, to resolve this issue, first, we need make sure we have generate that nuget package. To generate the package, we need add a nuget pack task in the pipeline or add following property in the project file .csproj:



             <PropertyGroup>
            <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
            </PropertyGroup


            We could check if that package is generated from the build log or using copy and publish build artifacts task.



            If the packages is generated, we need to check if the path to NuGet package(s) to publish is correct, I set it as $(System.DefaultWorkingDirectory)/**/*.nupkg, and it works fine:



            enter image description here



            enter image description here



            Note: If you are using nuget pack task to generate the package, the the path to NuGet package(s) to publish should be the path for Package folder in the nuget pack task.



            Hope this helps.






            share|improve this answer























            • I have a dotnet pack step before this one. I've determined that it has something to do with the target framework being netstandard2.0. I was able to get it to work correctly with a netcoreapp2.1 project. When I pack the netstandard2.0 project it puts the assembly in a bin folder along with all the dependencies and I get this error: C:Program Filesdotnetsdk2.2.104SdksNuGet.Build.Tasks.PackbuildNuGet.Build.Tasks.Pack.targets(202,5): error NU5026: The file 'D:a1sSharedbinDebugnetstandard2.0Shared.dll' to be packed was not found on disk. [D:a1sSharedShared.csproj]

              – Victor P
              Mar 22 at 15:26













            0












            0








            0








            How do you properly set up a dotnet core class libray to publish to NuGet feed in Azure DevOps?




            When you got this error "No packages matched the search pattern", that means the nuget push task not got the nuget package file. May be that the package is not generated or the path to NuGet package(s) to publish is not correct.



            So, to resolve this issue, first, we need make sure we have generate that nuget package. To generate the package, we need add a nuget pack task in the pipeline or add following property in the project file .csproj:



             <PropertyGroup>
            <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
            </PropertyGroup


            We could check if that package is generated from the build log or using copy and publish build artifacts task.



            If the packages is generated, we need to check if the path to NuGet package(s) to publish is correct, I set it as $(System.DefaultWorkingDirectory)/**/*.nupkg, and it works fine:



            enter image description here



            enter image description here



            Note: If you are using nuget pack task to generate the package, the the path to NuGet package(s) to publish should be the path for Package folder in the nuget pack task.



            Hope this helps.






            share|improve this answer














            How do you properly set up a dotnet core class libray to publish to NuGet feed in Azure DevOps?




            When you got this error "No packages matched the search pattern", that means the nuget push task not got the nuget package file. May be that the package is not generated or the path to NuGet package(s) to publish is not correct.



            So, to resolve this issue, first, we need make sure we have generate that nuget package. To generate the package, we need add a nuget pack task in the pipeline or add following property in the project file .csproj:



             <PropertyGroup>
            <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
            </PropertyGroup


            We could check if that package is generated from the build log or using copy and publish build artifacts task.



            If the packages is generated, we need to check if the path to NuGet package(s) to publish is correct, I set it as $(System.DefaultWorkingDirectory)/**/*.nupkg, and it works fine:



            enter image description here



            enter image description here



            Note: If you are using nuget pack task to generate the package, the the path to NuGet package(s) to publish should be the path for Package folder in the nuget pack task.



            Hope this helps.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 22 at 6:37









            Leo Liu-MSFTLeo Liu-MSFT

            21.5k22635




            21.5k22635












            • I have a dotnet pack step before this one. I've determined that it has something to do with the target framework being netstandard2.0. I was able to get it to work correctly with a netcoreapp2.1 project. When I pack the netstandard2.0 project it puts the assembly in a bin folder along with all the dependencies and I get this error: C:Program Filesdotnetsdk2.2.104SdksNuGet.Build.Tasks.PackbuildNuGet.Build.Tasks.Pack.targets(202,5): error NU5026: The file 'D:a1sSharedbinDebugnetstandard2.0Shared.dll' to be packed was not found on disk. [D:a1sSharedShared.csproj]

              – Victor P
              Mar 22 at 15:26

















            • I have a dotnet pack step before this one. I've determined that it has something to do with the target framework being netstandard2.0. I was able to get it to work correctly with a netcoreapp2.1 project. When I pack the netstandard2.0 project it puts the assembly in a bin folder along with all the dependencies and I get this error: C:Program Filesdotnetsdk2.2.104SdksNuGet.Build.Tasks.PackbuildNuGet.Build.Tasks.Pack.targets(202,5): error NU5026: The file 'D:a1sSharedbinDebugnetstandard2.0Shared.dll' to be packed was not found on disk. [D:a1sSharedShared.csproj]

              – Victor P
              Mar 22 at 15:26
















            I have a dotnet pack step before this one. I've determined that it has something to do with the target framework being netstandard2.0. I was able to get it to work correctly with a netcoreapp2.1 project. When I pack the netstandard2.0 project it puts the assembly in a bin folder along with all the dependencies and I get this error: C:Program Filesdotnetsdk2.2.104SdksNuGet.Build.Tasks.PackbuildNuGet.Build.Tasks.Pack.targets(202,5): error NU5026: The file 'D:a1sSharedbinDebugnetstandard2.0Shared.dll' to be packed was not found on disk. [D:a1sSharedShared.csproj]

            – Victor P
            Mar 22 at 15:26





            I have a dotnet pack step before this one. I've determined that it has something to do with the target framework being netstandard2.0. I was able to get it to work correctly with a netcoreapp2.1 project. When I pack the netstandard2.0 project it puts the assembly in a bin folder along with all the dependencies and I get this error: C:Program Filesdotnetsdk2.2.104SdksNuGet.Build.Tasks.PackbuildNuGet.Build.Tasks.Pack.targets(202,5): error NU5026: The file 'D:a1sSharedbinDebugnetstandard2.0Shared.dll' to be packed was not found on disk. [D:a1sSharedShared.csproj]

            – Victor P
            Mar 22 at 15:26













            0














            The problem seemed to be the versions of the .netstandard SDK the project was referencing. I updated everything from 2.0 to 2.2 and the dotnet pack command works now.






            share|improve this answer



























              0














              The problem seemed to be the versions of the .netstandard SDK the project was referencing. I updated everything from 2.0 to 2.2 and the dotnet pack command works now.






              share|improve this answer

























                0












                0








                0







                The problem seemed to be the versions of the .netstandard SDK the project was referencing. I updated everything from 2.0 to 2.2 and the dotnet pack command works now.






                share|improve this answer













                The problem seemed to be the versions of the .netstandard SDK the project was referencing. I updated everything from 2.0 to 2.2 and the dotnet pack command works now.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 26 at 1:47









                Victor PVictor P

                7301021




                7301021



























                    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%2f55290421%2fhow-do-you-properly-set-up-a-dotnet-core-class-libray-to-publish-to-nuget-feed-i%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

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현