You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<addkey="nuget"value="https://api.nuget.org/v3/index.json" />
<addkey="privateFeed"value="https://pkgs.dev.azure.com/myfunnycompany/_packaging/myfunnycompany/nuget/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSourcekey="privateFeed">
<packagepattern="privatepackage.*" />
</packageSource>
<packageSourcekey="nuget">
<packagepattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>
Local with a for expample dotnet restore it works. If I run it in azure devops I get the following error:
path/project.jscproj : error NU1100: Unable to resolve 'privatepackage.numberone (>= 0.1.1-15)' for 'net8.0'. PackageSourceMapping is enabled, the following source(s) were not considered: , feed-privateFeed, nuget. [/path/solution.sln]
In my nuget config the feed is called privateFeed but in the error message feed-privateFeed. That will mean that the source mapping get's invalid.
on the current implementation are some nuget issues linked that are maybe important to solve that
make a string replace in the whole config that adds everywhere the prefix
this can be quite complecated because you want only replace sourcekey strings and not other substrings that have maybe the name letters but different meaning
The text was updated successfully, but these errors were encountered:
I have the following nuget config in my project:
Local with a for expample
dotnet restore
it works. If I run it in azure devops I get the following error:path/project.jscproj : error NU1100: Unable to resolve 'privatepackage.numberone (>= 0.1.1-15)' for 'net8.0'. PackageSourceMapping is enabled, the following source(s) were not considered: , feed-privateFeed, nuget. [/path/solution.sln]
In my nuget config the feed is called
privateFeed
but in the error messagefeed-privateFeed
. That will mean that the source mapping get's invalid.The issue is produced in the following line:
azure-pipelines-tasks-common-packages/common-npm-packages/packaging-common/nuget/NuGetConfigHelper2.ts
Line 102 in 142a943
For me their a two ways to fix the issue:
The text was updated successfully, but these errors were encountered: