Sharpmake icon indicating copy to clipboard operation
Sharpmake copied to clipboard

KitsRoot/Interop issues

Open Teknogrebo opened this issue 5 years ago • 5 comments

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?

Teknogrebo avatar Apr 12 '19 10:04 Teknogrebo

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 /bin/Release contains two Microsoft assemblies that need to be in the same folder as sharpmake if you're copying the binaries to a different location. That one specifically is pulled down from a nuget reference in the root Sharpmake project.

kudaba avatar Apr 12 '19 16:04 kudaba

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.

Teknogrebo avatar Apr 15 '19 13:04 Teknogrebo

hello, I have same problem. Did you find a way solve that?

juteman avatar Dec 23 '20 14:12 juteman

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.

belkiss avatar Dec 23 '20 17:12 belkiss

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!

juteman avatar Dec 24 '20 01:12 juteman