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

SourceLink generated for Bitbucket Enterprise is wrong #268

Closed
kvskranthikumar opened this issue Apr 25, 2019 · 3 comments
Closed

SourceLink generated for Bitbucket Enterprise is wrong #268

kvskranthikumar opened this issue Apr 25, 2019 · 3 comments

Comments

@kvskranthikumar
Copy link

SourceLink generated in the PDB for Bitbucket is wrong.

Genarated Link -
https://company.com/scm/catman/dataaccesstest/raw/e979641cb570abd2f17d04683ba6a4add014a2dc/SqlDbParameters.cs

Expected Link -
https://company.com/projects/catman/repos/dataaccesstest/raw/SqlDbParameters.cs?at=e979641cb570abd2f17d04683ba6a4add014a2dc

Template -
http://yourserver.com/projects/{projectKey}/repos/{repositoryKey}/raw/{pathToFile}.extension?at={commitHash}

Environment details -
Visual Studio 2019
Bitbucket Enterprise v5.12.1 (Company Private Repo)

csproject -

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>netstandard2.0</TargetFramework>
        <RepositoryUrl>https://company.com/scm/catman/dataaccesstest.git</RepositoryUrl>
        <RepositoryType>git</RepositoryType>
        <PublishRepositoryUrl>true</PublishRepositoryUrl>
        <EmbedUntrackedSources>true</EmbedUntrackedSources>
        <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.SourceLink.Bitbucket.Git" Version="1.0.0-beta2-18618-05">
            <PrivateAssets>all</PrivateAssets>
        </PackageReference>
    </ItemGroup>
</Project>

I am currently stuck, please help, how can I get the expected link as mentioned above.

@ctaggart
Copy link
Contributor

Do you think #246 may fix this?

@kvskranthikumar
Copy link
Author

I think so but can't confirm till I test the fix.

@tmat tmat changed the title SourceLink generated for Bitbucket is wrong SourceLink generated for Bitbucket Enterprise is wrong Apr 29, 2019
@kvskranthikumar
Copy link
Author

The issue is fixed - #246 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants