-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assembly from dependencies manifest - different file extension - error when publishing nuget #538
Comments
Can you add the force flag to ensure you are using 1.3.0 isntead of 1.3.0-alpha if you haven't already ? If you are using dotnet do you need the netfx version? ex: Additionally, can you provide what versions of dotnet are available on your machine and any redacted logs from nuget/cred provider with the |
I've run the provided command but nothing has changed. Still same error like at the beginning. .NET SDKs8.0.303 [C:\Program Files\dotnet\sdk] .NET runtimesMicrosoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] I believe that EditI've updated VS22 and sdk, so currently the version is: 9.0.101 [C:\Program Files\dotnet\sdk] Additionally, in order to make sure that I'm using the latest version I've installed Still same result An assembly specified in the application dependencies manifest (CredentialProvider.Microsoft.deps.json) has already been found but with a different file extension:
package: 'CredentialProvider.Microsoft', version: '1.3.0-alpha'
path: 'CredentialProvider.Microsoft.dll'
... Edit2Works out of the box on similar dev env on my colleagues pc - so probably the issue persist only on my machine. Any thoughts how to diagnose it? |
@PATO-SOFT I had this issue after following the manual setup instructions in this repo's README. I am using the environment variable to specify the plugins location, but while the README mentions the environment variable 'NUGET_PLUGIN_PATHS', it omits the 'NUGET_NETFX_PLUGIN_PATHS' and 'NUGET_DOTNET_PLUGIN_PATHS'. Updating my config to point 'NUGET_DOTNET_PLUGIN_PATHS' to the CredentialProvider.Microsoft.dll file resolved the 'assembly already found' issue. See NuGet #8151 for some relevant details about the change. Maybe that information can help you to find the source of your problem. |
Hi,
I'm trying to publish the nuget to the internal company feed in ADO, but following error occurres
Issue
Env and details
Following cmd is being used to publish nuget.
I'm trying to publish .netstandard2.0 library developed on Windows 11.
The azure credentials provider has been installed using command
iex "& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) } -AddNetfx"
so I believe the 1.3.0 versions has been installed.
ProductVersion extracted from
./plugins/netcore/CredentialProvier.Microsoft/CredentialProvider.Microsoft.dll
:1.3.0-alpha+b66855cc5cb87b5a1c6e925ab84a532ec9c72e8b
What I've tried
Changing deps.json
To change entries in
CredentialProvider.Microsoft.deps.json
fromTo
But in this case i get following error
Unhandled exception. System.BadImageFormatException: Bad IL format. The format of the file 'C:\Users\user\.nuget\plugins\netcore\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe' is invalid.
Use older versions
I've tried to install older versions like
1.3.0-alpha
and1.2.3
. But still i'm getting same error (as at the beginning) only version changes in error message.I would appreciate any suggestions 😄
The text was updated successfully, but these errors were encountered: