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.

Azure DevOps is unable to convert OriginalUrl

See original GitHub issue

I have (Dotnet Standard 2.0) project with

  • SourceLink.Create.CommandLine 2.8.3
  • Microsoft.SourceLink.Vsts.Git beta-63127-02

When I build in VS or run the command

dotnet build (with out /p:SourceLinkCreate=true) it builds and generates the *.sourcelink.json in the correct obj directory

If I do however run locally dotnet build /p:SourceLinkCreate=true it throws the error as below

When I do the same on Azure DevOps pipeline. The same dotnet build version.

2018-09-14T11:15:31.5783772Z ============================================================================== 2018-09-14T11:15:31.5783772Z Task : .NET Core 2018-09-14T11:15:31.5783772Z Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet. 2018-09-14T11:15:31.5783772Z Version : 2.139.8 2018-09-14T11:15:31.5783772Z Author : Microsoft Corporation 2018-09-14T11:15:31.5783772Z Help : More Information 2018-09-14T11:15:31.5783772Z ============================================================================== 2018-09-14T11:15:35.2190721Z [command]C:\Windows\system32\chcp.com 65001 2018-09-14T11:15:35.2190721Z Active code page: 65001 2018-09-14T11:15:35.2190721Z [command]C:\agent_work_tool\dncs\2.1.300\x64\dotnet.exe build 2018-09-14T11:15:35.2190721Z Microsoft ® Build Engine version 15.7.179.6572 for .NET Core 2018-09-14T11:15:35.2190721Z Copyright © Microsoft Corporation. All rights reserved.

The exact same version on my local machine

I get the error on Azure

C:\Windows\ServiceProfiles\NetworkService\.nuget\packages\sourcelink.create.commandline\2.8.3\build\SourceLink.Create.CommandLine.targets(30,5): error : unable to convert OriginUrl: https://{private}.visualstudio.com/dotNET%20Project/_git/company.cqrslite [C:\agent\_work\34\s\company.CQRSlite\company.CQRSlite.csproj]

Also when I try to disable source linking in Azure

dotnet test /p:SourceLinkCreate=false (OK- Builds without source linking on Test projects) dotnet pack /p:SourceLinkCreate=false (FAIL - I need to specify SourceLinkCreate=false in additional build properties) pulbish symbol path - Doesnt need adjustment

-EDIT After using the /p:SourceLinkCreate=false on my build server… I now am getting the screen in Visual Studio to download source files when I hit a handled exception… What is going on???

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
tmatcommented, Sep 14, 2018

Could you try to remove SourceLink.Create.CommandLine 2.8.3? The only package reference you need to get SoruceLink working for Azure DevOps hosted repo is Microsoft.SourceLink.Vsts.Git. See https://github.com/dotnet/sourcelink#visual-studio-team-services

0reactions
leqii-comcommented, Mar 10, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Devops Build Pipeline SourceLink.Create ...
Hi I am getting the following error in my Azure Devops build pipeline on ... CommandLine.targets(30,5): Error : unable to convert OriginUrl: ...
Read more >
WordPress Troubleshooting Techniques on Azure Websites
You get this error when WordPress is unable to establish a database connection. The following reasons could be the reason why the issue...
Read more >
SourceLink in VSTS
1 Answer 1 ... Configure your Build Pipeline to generate your Nuget package using the dotnet pack command. SourceLink doesn't work yet with...
Read more >
Pipeline Template: echo array parameter fails with ...
However, when I try to use this pipeline template, it fails to run with the following error message: Unable to convert from Array...
Read more >
In Azure function with proxy, get original URL
In Azure function with proxy, get original URL ... Turns out, the original intent of originalUrl was exactly this, to preserve the original...
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