Skip to content
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

'NuGetizer.SponsorLinker' exception happening randomly #370

Closed
Aleksanderis opened this issue Mar 30, 2023 · 4 comments
Closed

'NuGetizer.SponsorLinker' exception happening randomly #370

Aleksanderis opened this issue Mar 30, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Aleksanderis
Copy link

Describe the Bug

With latest version (1.0.1) there is an exception happening during dotnet pack:

CSC : error AD0001: Analyzer 'NuGetizer.SponsorLinker' threw an exception of type 'System.ArgumentNullException' with message 'Value cannot be null. (Parameter 'path2')'. [C:\Projects\ProjectX\ProjectX.csproj]

It happens not always, but quite often. I have 5 packable projects in the solution and some of them are randomly not packaged. I need to repeat dotnet pack several times until everything passed correctly.

Version Info

Currently latest version - 1.0.1

@Aleksanderis Aleksanderis added the bug Something isn't working label Mar 30, 2023
@kzu
Copy link
Member

kzu commented Apr 18, 2023

Hm... that should not be happening at all, ever. That said, I've updated the SponsorLink dependency a bit and nugetizer is a bit lagging. I'll ship an update with an updated dependency.

Could perhaps mention what IDE/editor you're using when this happens?

(I think from another report of yours, that you might be using Rider...)

Thanks!

@Aleksanderis
Copy link
Author

I'm using Rider, but it happens outside IDE. I'm just running dotnet pack on solution level. It then packs all projects in solution which are packable (<IsPackable>true</IsPackable>).

@kzu
Copy link
Member

kzu commented Apr 19, 2023

Gotcha. Outside an IDE, nothing should be running. Will double check!

kzu added a commit that referenced this issue Apr 19, 2023
kzu added a commit that referenced this issue Apr 19, 2023
@kzu
Copy link
Member

kzu commented Apr 19, 2023

v1.0.2 shoud have the fix. Thanks for reporting!

@kzu kzu closed this as completed Apr 19, 2023
@devlooped devlooped locked and limited conversation to collaborators Nov 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants