-
Notifications
You must be signed in to change notification settings - Fork 6
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
TempProject breaks when custom NuGet source used #358
Comments
Hello, thank you for reaching out. Could you please provide more details on how your environment is configured regarding the NuGet feed setup so we can reproduce the issue? |
It's a very simple setup, just contains two packages that we've added some extra functionality into specific to our project. It contains |
And how is this custom NuGet feed configured in your projects? I'm trying to figure out how it can affect the build of the AssemblyLocator's TempProject. |
Could you pls attach or send is privately the |
This is a rough depiction of our project structure:
I've sent you an email with the binlog attached |
Thank you. I'm puzzled that access to The first Metalama compiles any project for a platform, we create an empty project under Do you see a reason why it would not be authorized? |
Is your authentication configured in nuget.config using an API key or username/password? That would explain the failure. |
The feed is published on our Azure Dev Ops tenant and access is handled by Visual Studio's logged in account. The feed is locked down to people that have access to our tenant's Dev Ops. There's no username/password used anywhere. The dev on our team said that to fix the "unauthenticated" error, he removed the Microsoft.CodeAnalysis.CSharp package from the WorkHub_Nuget source (no clue why it's in there...) and re-added it with the normal nuget.org one. |
We've analyzed your scenario and planned an improvement to avoid this issue. This improvement is planned for the next version of Metalama, which will be released along with .NET 9. Did the issue disappear after removing the Microsoft.CodeAnalysis.CSharp package from the WorkHub_Nuget source? Isn't the reason it was there that you have nuget.org enabled as an upstream source for this feed? |
Appreciate the quick response! The issue did disappear after removing the Microsoft.CodeAnalysis.CSharp package, and no there's no upstream sources in our Nuget feed, it's just the two packages previously mentioned. |
Hi guys,
We have a custom NuGet source for our company sitting in a WorkHub_NuGet location on our tenant. The problem is that when building our solution that uses Metalama, we suddenly get errors with the TempProject.cs project saying it is unable to load service index. This has now happened to multiple devs in our team, with another issue being that

Microsoft.CodeAnalysis.CSharp
Nuget could not be found. My hunch is that this "service index" issue is actually hiding the real issue, which is thatMicrosoft.CodeAnalysis.CSharp
is taken from our custom feed (where it doesn't exist) for some reason rather than nuget.org.Both of these issues are fixed by the following:
Obviously this setup is unique to our own project, and we do have a workaround for now, however it would be good to get some clarification from the Metalama team on whether this is something going wrong on your side.
The text was updated successfully, but these errors were encountered: