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;
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
add a comment |
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
add a comment |
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
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
.net .net-core azure-devops
asked Mar 21 at 22:53
Victor PVictor P
7301021
7301021
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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:
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.
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
add a comment |
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.
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%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
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:
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.
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
add a comment |
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:
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.
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
add a comment |
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:
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.
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:
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.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 26 at 1:47
Victor PVictor P
7301021
7301021
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%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
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