Azure DevOps is unable to convert OriginalUrl
See original GitHub issueI 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:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
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 isMicrosoft.SourceLink.Vsts.Git
. See https://github.com/dotnet/sourcelink#visual-studio-team-services@tmat @ppumkin @ctaggart help