How to pin Microsoft.NETCore.App.Ref version
How can I pin the version of Microsoft.NETCore.App.Ref that is used when I build a project that references the ASP.NET framework? At my company we don't use nuget.org and I don't want to add a new version of this nuget package every time a new version of .NET is released.
5 Replies
you should never be referencing that package in the first place
if you want to use ASP.NET from a class library, you should use the way described here https://learn.microsoft.com/en-us/aspnet/core/fundamentals/target-aspnetcore?view=aspnetcore-8.0&tabs=visual-studio
Use ASP.NET Core APIs in a class library
Learn how to use ASP.NET Core APIs in a class library.
I'm already referencing that package like that in the first place. When I build the class library I get this error. I have nuget.org disabled and version 6.0.32 in my nuget repositories. How can I pin that package to version 6.0.31?
Unable to find package Microsoft.NETCore.App.Ref with version (= 6.0.32)
Mixing and matching those versions sounds like a bad time.
Just figure out a way to pull in the new versions.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View