/usr/share/qbs/modules/cli/windows-dotnet.qbs is in qbs-common 1.10.1+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | import qbs
import qbs.Utilities
CLIModule {
condition: qbs.toolchain && qbs.toolchain.contains("dotnet")
debugInfoSuffix: ".pdb"
csharpCompilerName: "csc"
vbCompilerName: "vbc"
fsharpCompilerName: "fsc"
Probe {
id: dotnetProbe
property string toolchainInstallPath // Output
configure: {
// https://msdn.microsoft.com/en-us/library/hh925568.aspx
var keys = [
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP",
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\NET Framework Setup\\NDP"
];
for (var i in keys) {
var key = keys[i] + "\\v4\\Full";
var value = Utilities.getNativeSetting(key, "InstallPath");
if (value) {
toolchainInstallPath = value;
found = true;
break;
}
}
}
}
toolchainInstallPath: dotnetProbe.toolchainInstallPath
}
|