*.dll.licenses file in obj directory not created with msbuild in TeamCity
After a bit more googling, I stumbled upon this thread on MSDN.
The solution suggested here is to install the Windows 10 SDK. We did this on our TeamCity build server running Windows Server 2012 R2 using the default installation options, and after a reboot, our build was working again.
Hope this helps :)
The answer "Install the Windows 10 SDK" is correct - basically. But there is an additional pitfall: There is more then one version existing of this SDKs: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive
By the writing of this comment:
- July 2015 (Version 10.0.26624.0) contains .NET Framework 4.6 SDK
- Nov. 2015 (Version 10.0.10586.212) contains .NET Framework 4.6.1 SDK
- Aug. 2016 (Version 10.0.14393.0) contains .NET Framework 4.6.2 SDK
Check your VS 2015 output and what version of LC.exe is called. Then install the appropriate SDK on the build server. Don't forget to install Microsoft Build Tools 2015 too.
Note: My build is targeting .net 4.5, but above is needed to build on TeamCity with 2015 tools.