TeamCity not discovering build steps fo an sln visual studion project
Hi, I have a visual studio 2022 project in a git repo (Azure devops server on prem), I created a project in Teamcity which access the repo correctly and what I understood from different articles here and on the web that TeamCity will automatically try to determine which build steps I need one of them is
Visual studio (sln)
which is not the case in my environment I only get 2 suggestions for .Net as follows (am i missing something?)

whereas in other tutorials or posts I see

Please sign in to leave a comment.
https://www.jetbrains.com/help/teamcity/net.html
If the .NET runner with the build command doesn't work for you for whatever reason, you can change the command in the step settings, or select the Visual Studio (sln) runner manually (configure build steps manually > select the required runner).
So many thanks Anatoly, yes I read and tried to add a step where I call devenv as follows but now I have a different error because teamcity agent chooses VS porofessional 2022 edition (expired on my box as I will renew it in January) so I have at the same time VS community edition 2022 which works fine but teamcity goes to the expired one
the error giving is
So as you can see it goes to VS 2022 professional and not community
So the question now is how I can tell the agent to use the community edition and not the professional?
Thanks again
Hi. Here are the options.
Option 1: Add a build configuration parameter with the name
VS2022_Pathand valueC:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE(or whatever the actual path is).Option 2: Add the same parameter to the
<build_agent_home>\conf\buildAgent.propertiesfile.Option 3: Uninstall the Professional edition and restart the agent.
Cheers,
Anatoly