DamianEdwards / RazorSlices

Lightweight Razor-based templates for ASP.NET Core without MVC, Razor Pages, or Blazor.
MIT License
297 stars 12 forks source link

NuGet config package patterns #50

Closed Arnab-Developer closed 4 weeks ago

Arnab-Developer commented 4 weeks ago

Are System.*, runtime.* and Microsoft.* really needed where there is already a * has been used in NuGet config packageSourceMapping?

<packageSourceMapping>
  <packageSource key="nuget">
    <package pattern="System.*" />
    <package pattern="runtime.*" />
    <package pattern="Microsoft.*" />
    <package pattern="*" />
  </packageSource>
</packageSourceMapping>

You can use only the * in this case because you only have one package source.

<packageSources>
  <clear />
  <add key="nuget" value="https://api.nuget.org/v3/index.json" />
</packageSources>

<packageSourceMapping>
  <packageSource key="nuget">
    <package pattern="*" />
  </packageSource>
</packageSourceMapping>
DamianEdwards commented 4 weeks ago

Yeah it's not needed but makes it easier when I want to add the feed containing nightly .NET builds.

Arnab-Developer commented 4 weeks ago

Ok thanks