Sharpmake
Sharpmake copied to clipboard
KitsRoot/Interop issues
I am trying to evaluate Sharpmake and have to confess it's been a painful process so far. I have the application built and written the demo script as per the example in the documentation but when I try and generate my own project using the exe I get issues. Firstly, I got the error:
Value 'KitsRoot' under registry subKey 'SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots' is not set, fallback to default: 'C:\Program Files (x86)\Windows Kits\8.0'
I had Windows Kits 8.1 and 10 so yeah, that would be an issue. I tried setting a registry entry for KitsRoot to point to 8.1 but that didn't work, so I installed the windows8 sdk, only to get:
Could not load file or assembly 'Microsoft.VisualStudio.Setup.Configuration.Interop, Version=1.0.0.0
I have VS2015, VS2017 and VS2019 community editions installed with "normal" options installed, but nothing seems to work. What do I need to have installed for Sharpmake to actually work?
Hi,
Glad to see more people looking into Sharpmake.
I still get the warning about the installed roots, but it should be benign if you're using the default visual studio install paths.
For the missing assembly, the sharpmake build output folder
I don't think the nuget reference is working properly. At least, it wasn't for me as I had to manually install the package. Once I had done that, then doing a build gave me all the dlls required.
hello, I have same problem. Did you find a way solve that?
Heya!
Which problem is that?
The "Value 'KitsRoot' under registry subKey..." is really just an indication, sharpmake will try and find all windows sdk version, 8.0, 8.1 and 10, and warn if one is missing, even if you're not using it... I'll remove it soon.
If it's about "Could not load file or assembly 'Microsoft.VisualStudio.Setup.Configuration.Interop, Version=1.0.0.0", the DLL should be placed next to the Sharpmake.Application.exe in order for it to be found.
Heya!
Which problem is that?
The "Value 'KitsRoot' under registry subKey..." is really just an indication, sharpmake will try and find all windows sdk version, 8.0, 8.1 and 10, and warn if one is missing, even if you're not using it... I'll remove it soon.
If it's about "Could not load file or assembly 'Microsoft.VisualStudio.Setup.Configuration.Interop, Version=1.0.0.0", the DLL should be placed next to the Sharpmake.Application.exe in order for it to be found.
Hello, I have solved this problem by setting the Options.Vc.General.WindowsTargetPlatformVersion
. And after I set the variable , I find "Value 'KitsRoot' under registry subKey..." does not affect anything.
thanks for your help!