When you build your application in Microsoft Visual Studio 2017, you receive the following error message:
Licenses.licx: Could not transform licenses file into a binary resource. Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\lc.exe' or one of its dependencies. The specified file could not be found.
Visual Studio 2017 runs the .NET Framework License Compiler (lc.exe) to build license files (.licx files). The License Compiler refers to a particular registry for the installation path of the Software Development Kit (SDK) that's installed in the environment. Visual Studio 2017 cannot find this registry because the location of the registry key and the folder structure of SDK are changed from the .NET Framework 4.6.1.
To work around this issue, install the Windows SDK for the .NET Framework 3.5 SP1 so that Visual Studio can load the lc.exe file that's located in the Windows SDK installation path.
To download the Microsoft Windows SDK for Windows 7 and the .NET Framework 3.5 SP1, go to https://www.microsoft.com/en-us/download/details.aspx?id=3138.
This workaround applies to Visual Studio 2017 version 15.2 or an earlier version installed on Windows 7 or later Windows versions.
This problem is scheduled to be fixed in Visual Studio 2017 version 15.3.