Can you specify that a project works with .NET 5 and newer? #95677
-
Assume you want to write a C# example project that is shipped to a diverse set of customers and we don't know what .NET version is installed on the user systems. I'd like to specify the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Just specifying Which sdk your consumers are using is not really your concern as it's up to them to choose whichever they wamt. For example I can build your project with any sdk I want, be it .Net 5, 6, 7 or 8 you name it. Note that .Net 5 is outdated and shouldn't really be considered a good target anymore. Net 6 is a better choice as it is still a supported LTS version. Or maybe I've misunderstood and you need your customers to run the exe with a latest runtime awailable and not just build it? |
Beta Was this translation helpful? Give feedback.
-
Consider to add |
Beta Was this translation helpful? Give feedback.
Consider to add
<RollForward>Major</RollForward>
to your csproj.