Teamcity and .Net 5


I'm trying to build a solution built with .Net 5. I have installed .Net 5 dotnet-sdk-5.0.100-rc.2.20479.15-win-x64 on Teamcity server. 


I'm getting an error 

Project "C:\BuildAgents\BuildAgent3\work\98ac3f609e1cae62\xyz\xyz.sln" (1) is building "C:\BuildAgents\BuildAgent3\work\98ac3f609e1cae62\xyz\xyz\xyz.csproj" (2) on node 1 (default targets).
        C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3644: The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at
Any thoughts?
1 comment
Comment actions Permalink

The builds run on the build agent, not the server. It looks like the build agent is not detecting the .NET 5 Framework in your error message. Have you installed the Developer Pack for .NET 5 on the build agent?

For additional information on the .NET runner requirements, please refer to our documentation available here:


Please sign in to leave a comment.