dotnet / dotnet/sourcelink

How to set Repository in custom nuspec

Open
#1,392 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

I'm using a custom NuSpec file with an SDK project like this, and can't get sourcelink to work correctly.

.csproj snippet:
```xml


true
Pack.nuspec
$(NuspecProperties);Repository=$(RepositoryUrl)

```

Pack.nuspec snippet:
```xml


$Repository$

```

But the `repository` isn't set in the resulting .nupkg's .nuspec file. Any tips? Is this possible?

My other projects in the same solution (which don't need a custom Nuspec) have it set just fine.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.