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
reflectronic
reflectronic4mo ago
you should never be referencing that package in the first place
reflectronic
reflectronic4mo ago
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.
acarrazzoni-qontigo
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)
jcotton42
jcotton424mo ago
Mixing and matching those versions sounds like a bad time. Just figure out a way to pull in the new versions.
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server