question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

donet/roslyn-debug is not able to publish to darc

See original GitHub issue

Build

Pipelines - Run 20220308.1 logs (azure.com)

Build leg reported

Publish using darc

Error message

The engineering services team will fill in the error message using known issues guidance.

{
   "ErrorMessage" : ""
}

D:\a\1\s.dotnet\sdk\6.0.100-rc.1.21430.12\NuGet.targets(130,5): error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/internal/_packaging/roslyn-debug/nuget/v3/index.json. [C:\Users\VssAdministrator\AppData\Local\Temp\152bc0x1.cho\restore.csproj] D:\a\1\s.dotnet\sdk\6.0.100-rc.1.21430.12\NuGet.targets(130,5): error : Response status code does not indicate success: 401 (Unauthorized). [C:\Users\VssAdministrator\AppData\Local\Temp\152bc0x1.cho\restore.csproj] The tool package could not be restored. Tool ‘microsoft.dotnet.darc’ failed to install. This failure may have been caused by:

  • You are attempting to install a preview release and did not use the --version option to specify the version.
  • A package by this name was found, but it was not a .NET tool.
  • The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
  • You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool The term ‘D:\a\1\s\artifacts\tmp\Debug\darc\a02ea5b4-1333-47e0-8cc2-aef9a4ac1ab2\darc.exe’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. ##error There was an error while trying to publish build ‘128970’ to default channels. ##[error]PowerShell exited with code ‘1’.

Additional information about the issue reported

https://dev.azure.com/dnceng/internal/_build/results?buildId=1652629&view=logs&j=226748d0-f812-5437-d3f0-2dd291f5666e&t=bad11196-972e-5d03-45a8-9db526506073&l=42 No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
riarenascommented, Mar 9, 2022

I didn’t see you had assigned yourself to this @epananth. I’ll let you investigate. I think it’s related to the fact that this repo is only using a single private feed in their nuget.config: https://dev.azure.com/dnceng/internal/_git/dotnet-roslyn-debug?version=GBmain&path=/NuGet.Config which is not being authenticated against during the publishing, but darc doesn’t need that feed at all.

0reactions
epananthcommented, Mar 10, 2022

Spoke to @tmat

  1. Need to remove the invalid feed and use the correct ones.
  2. All the packages mentioned are really old, need to update the package version.

So he is working on fixing the repo. Closing this issue for now…

Read more comments on GitHub >

github_iconTop Results From Across the Web

asp.net mvc - Roslyn Doesn't Publish to Website
I recently updated the Nuget package Microsoft.CodeDom.Providers.DotNetCompilerPlatform to 1.0.7. After that it stopped publishing Roslyn to the ...
Read more >
Go To Definition improvements for external source in Roslyn
An in depth look at improvements to Go To Definition, allowing you to navigate to source code that isn't in your current solution....
Read more >
Cant debug (properly) a roslyn compiled app
You can see in the screen my app is at a breakpoint in global.asax. However no local variables are showing in the debuig...
Read more >
Cannot load debug symbols for Roslyn DLLs · Issue #15571
Start another Visual Studio, Attach to previous devenv.exe; Open Modules window, try load symbols for Microsoft.CodeAnalysis.*.dll by selecting ...
Read more >
Why isn't my ASP.NET Core app in Docker working?
In this post I describe a problem where my ASP.NET Core app in Docker wasn't responding to requests. This post debugs and diagnoses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found