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

How to solve the problem of ProjectURL not displaying? #763

Open
future0w opened this issue Mar 15, 2023 · 1 comment
Open

How to solve the problem of ProjectURL not displaying? #763

future0w opened this issue Mar 15, 2023 · 1 comment

Comments

@future0w
Copy link

As stated in the title.

To Reproduce

Steps to reproduce the behavior:

  1. Here is my .csporj file.
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
  <PropertyGroup>
  <PackageId>SysTools</PackageId>
  <Version>1.1.1</Version>
  <Company>OmniCode</Company>
  <RepositoryUrl>http://gitlab.omnicode.cn:30999/xxx.git</RepositoryUrl>
  <projectUrl>http://gitlab.omnicode.cn:30999/xxx.git</projectUrl>
  <Authors>SomebodyThatiUsedToKnow</Authors>
  <Description>Something</Description>
</PropertyGroup>
</Project>
  1. I first executed the command dotnet pack, and then executed dotnet nuget push -s http://Mysever/v3/index.json ./bin/Debug/MyPkg1.0.0.nupkg.

Expected behavior

I hope to be able to click on the Project URL on the webpage and be redirected to the corresponding project address, but that is not the case in reality.

@cathalnoonan
Copy link

Can you try using <PackageProjectUrl>...</PackageProjectUrl> instead of <projectUrl>...</projectUrl>.

PackageProjectUrl is the name of the property to use inside the .csproj file.
https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-target

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