Warn in build step on non-LTS .NET version usage

Hello, I am looking for guidance on how to warn developers where their projects are referencing non LTS .NET versions. We would like to use a build warning to nudge developers toward upgrading their projects to latest LTS releases.

Thanks for any ideas!

0
3 comments
Hi,

Could you give me an example of when you want a build warning to be shown so that we're on the same page?

Best regards,
Anton
0

We would like to output a build warning at some point during the build process just to make a note to developer that they are using an unsupported version.

0
Could you point out where you want to get this version from? Is it some reference inside the project?
On the TeamCity's side, the required SDK, target runtime, and frameworks can be set up in the build step's properties: https://www.jetbrains.com/help/teamcity/2024.12/net.html

Best regards,
Anton
0

Please sign in to leave a comment.