Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to ensure two .NET versions are shown on top of my NuGet page?

$
0
0

I have a question about this NuGet page. Right, now .NET 6 is shown on top. But, as you can see in the Frameworks tab, .NET 6 and .NET 7 are both supported. How should I change my csproj (or do something else) to ensure both versions are shown on top?

Here is my csproj:

<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><TargetFrameworks>net7.0;net6.0</TargetFrameworks><ImplicitUsings>enable</ImplicitUsings><Nullable>enable</Nullable><Title>Xunit.TestLogger</Title><Company>Connecting Apps</Company><Description>See the output of your logging in your xUnit integration tests</Description><Copyright>© 2023 Connecting Apps. All rights BLAH BLAH </Copyright> <PackageProjectUrl>https://github.com/ConnectingApps/Xunit.TestLogger</PackageProjectUrl><RepositoryUrl>https://github.com/ConnectingApps/Xunit.TestLogger</RepositoryUrl><RepositoryType>git</RepositoryType><PackageReleaseNotes>Initial version</PackageReleaseNotes><PackageReadmeFile>README.md</PackageReadmeFile><PackageIcon>Icon.png</PackageIcon><Version>1.0.1-preview</Version></PropertyGroup><!-- Package Icon --><ItemGroup><None Include="Icon.png" Pack="True" PackagePath="" /></ItemGroup><!-- ScreenForLogging (screenshot for README) --><ItemGroup><None Include="..\ScreenForLogging.png" Pack="True" PackagePath="" /></ItemGroup><!-- Readme File --><ItemGroup><None Include="..\README.md"><Pack>True</Pack><PackagePath>\</PackagePath></None></ItemGroup><!-- NuGet packages for net6.0 --><ItemGroup Condition="'$(TargetFramework)' == 'net6.0'"><PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="[6.0.0, 6.0.99]" /><PackageReference Include="xunit.abstractions" Version="[2.0.3, 3.2.0]" /></ItemGroup><!-- NuGet packages for net7.0 --><ItemGroup Condition="'$(TargetFramework)' == 'net7.0'"><PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="[7.0.0, 7.0.99]" /><PackageReference Include="xunit.abstractions" Version="[2.0.3, 3.2.0]" /></ItemGroup></Project>

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>