@react-native-windows/cli 0.73.2 → 0.74.0-preview.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/lib-commonjs/commands/autolinkWindows/autolinkWindows.d.ts +87 -87
  2. package/lib-commonjs/commands/autolinkWindows/autolinkWindows.js +654 -654
  3. package/lib-commonjs/commands/autolinkWindows/autolinkWindowsOptions.d.ts +14 -14
  4. package/lib-commonjs/commands/autolinkWindows/autolinkWindowsOptions.js +32 -32
  5. package/lib-commonjs/commands/codegenWindows/codegenWindows.d.ts +27 -27
  6. package/lib-commonjs/commands/codegenWindows/codegenWindows.js +205 -205
  7. package/lib-commonjs/commands/codegenWindows/codegenWindowsOptions.d.ts +12 -12
  8. package/lib-commonjs/commands/codegenWindows/codegenWindowsOptions.js +22 -22
  9. package/lib-commonjs/commands/config/configUtils.d.ts +123 -123
  10. package/lib-commonjs/commands/config/configUtils.js +380 -380
  11. package/lib-commonjs/commands/config/dependencyConfig.d.ts +37 -37
  12. package/lib-commonjs/commands/config/dependencyConfig.js +227 -227
  13. package/lib-commonjs/commands/config/projectConfig.d.ts +27 -27
  14. package/lib-commonjs/commands/config/projectConfig.js +180 -180
  15. package/lib-commonjs/commands/healthCheck/healthCheckList.d.ts +6 -6
  16. package/lib-commonjs/commands/healthCheck/healthCheckList.js +20 -20
  17. package/lib-commonjs/commands/healthCheck/healthCheckList.js.map +1 -1
  18. package/lib-commonjs/commands/healthCheck/healthChecks.d.ts +7 -7
  19. package/lib-commonjs/commands/healthCheck/healthChecks.js +123 -123
  20. package/lib-commonjs/commands/initWindows/initWindows.d.ts +46 -46
  21. package/lib-commonjs/commands/initWindows/initWindows.js +243 -243
  22. package/lib-commonjs/commands/initWindows/initWindowsOptions.d.ts +15 -15
  23. package/lib-commonjs/commands/initWindows/initWindowsOptions.js +37 -37
  24. package/lib-commonjs/commands/runWindows/runWindows.d.ts +10 -10
  25. package/lib-commonjs/commands/runWindows/runWindows.js +321 -321
  26. package/lib-commonjs/commands/runWindows/runWindowsOptions.d.ts +56 -56
  27. package/lib-commonjs/commands/runWindows/runWindowsOptions.js +132 -132
  28. package/lib-commonjs/e2etest/autolink.test.d.ts +6 -6
  29. package/lib-commonjs/e2etest/autolink.test.js +366 -366
  30. package/lib-commonjs/e2etest/dependencyConfig.test.d.ts +6 -6
  31. package/lib-commonjs/e2etest/dependencyConfig.test.js +129 -129
  32. package/lib-commonjs/e2etest/healthChecks.test.d.ts +6 -6
  33. package/lib-commonjs/e2etest/healthChecks.test.js +30 -30
  34. package/lib-commonjs/e2etest/initWindows.test.d.ts +6 -6
  35. package/lib-commonjs/e2etest/initWindows.test.js +42 -42
  36. package/lib-commonjs/e2etest/projectConfig.test.d.ts +6 -6
  37. package/lib-commonjs/e2etest/projectConfig.test.js +110 -110
  38. package/lib-commonjs/e2etest/projectConfig.utils.d.ts +8 -8
  39. package/lib-commonjs/e2etest/projectConfig.utils.js +76 -76
  40. package/lib-commonjs/e2etest/runWindows.test.d.ts +6 -6
  41. package/lib-commonjs/e2etest/runWindows.test.js +60 -60
  42. package/lib-commonjs/e2etest/typesUpToDate.test.d.ts +6 -0
  43. package/lib-commonjs/e2etest/typesUpToDate.test.js +21 -0
  44. package/lib-commonjs/e2etest/typesUpToDate.test.js.map +1 -0
  45. package/lib-commonjs/generator-common/index.d.ts +39 -39
  46. package/lib-commonjs/generator-common/index.js +242 -242
  47. package/lib-commonjs/generator-windows/index.d.ts +10 -10
  48. package/lib-commonjs/generator-windows/index.js +316 -316
  49. package/lib-commonjs/index.d.ts +50 -50
  50. package/lib-commonjs/index.js +77 -77
  51. package/lib-commonjs/utils/build.d.ts +12 -12
  52. package/lib-commonjs/utils/build.js +84 -84
  53. package/lib-commonjs/utils/checkRequirements.d.ts +6 -6
  54. package/lib-commonjs/utils/checkRequirements.js +69 -69
  55. package/lib-commonjs/utils/commandWithProgress.d.ts +21 -21
  56. package/lib-commonjs/utils/commandWithProgress.js +149 -149
  57. package/lib-commonjs/utils/deploy.d.ts +12 -12
  58. package/lib-commonjs/utils/deploy.js +353 -353
  59. package/lib-commonjs/utils/info.d.ts +6 -6
  60. package/lib-commonjs/utils/info.js +28 -28
  61. package/lib-commonjs/utils/msbuildtools.d.ts +28 -28
  62. package/lib-commonjs/utils/msbuildtools.js +273 -273
  63. package/lib-commonjs/utils/msbuildtools.js.map +1 -1
  64. package/lib-commonjs/utils/pathHelpers.d.ts +9 -9
  65. package/lib-commonjs/utils/pathHelpers.js +36 -36
  66. package/lib-commonjs/utils/telemetryHelpers.d.ts +29 -29
  67. package/lib-commonjs/utils/telemetryHelpers.js +120 -120
  68. package/lib-commonjs/utils/version.d.ts +19 -19
  69. package/lib-commonjs/utils/version.js +109 -109
  70. package/lib-commonjs/utils/vsInstalls.d.ts +34 -34
  71. package/lib-commonjs/utils/vsInstalls.js +99 -99
  72. package/lib-commonjs/utils/vstools.d.ts +16 -16
  73. package/lib-commonjs/utils/vstools.js +189 -189
  74. package/lib-commonjs/utils/winappdeploytool.d.ts +24 -24
  75. package/lib-commonjs/utils/winappdeploytool.js +108 -108
  76. package/package.json +16 -16
@@ -1,110 +1,110 @@
1
- "use strict";
2
- /**
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- * @format
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- const VERSION_EXPRESSION = /^\d{1,8}(\.\d{1,8}){0,3}$/;
9
- class Version {
10
- constructor(major, minor = 0, build = 0, qfe = 0) {
11
- this.major = major;
12
- this.minor = minor;
13
- this.build = build;
14
- this.qfe = qfe;
15
- }
16
- eq(other) {
17
- if (other.constructor !== Version) {
18
- throw new TypeError('other must be a Version instance');
19
- }
20
- return (this.major === other.major &&
21
- this.minor === other.minor &&
22
- this.build === other.build &&
23
- this.qfe === other.qfe);
24
- }
25
- gt(other) {
26
- if (other.constructor !== Version) {
27
- throw new TypeError('other must be a Version instance');
28
- }
29
- if (this.major > other.major) {
30
- return true;
31
- }
32
- if (this.major < other.major) {
33
- return false;
34
- }
35
- if (this.minor > other.minor) {
36
- return true;
37
- }
38
- if (this.minor < other.minor) {
39
- return false;
40
- }
41
- if (this.build > other.build) {
42
- return true;
43
- }
44
- if (this.build < other.build) {
45
- return false;
46
- }
47
- if (this.qfe > other.qfe) {
48
- return true;
49
- }
50
- if (this.qfe < other.qfe) {
51
- return false;
52
- }
53
- return false;
54
- }
55
- gte(other) {
56
- if (other.constructor !== Version) {
57
- throw new TypeError('other must be a Version instance');
58
- }
59
- if (this.major > other.major) {
60
- return true;
61
- }
62
- if (this.major < other.major) {
63
- return false;
64
- }
65
- if (this.minor > other.minor) {
66
- return true;
67
- }
68
- if (this.minor < other.minor) {
69
- return false;
70
- }
71
- if (this.build > other.build) {
72
- return true;
73
- }
74
- if (this.build < other.build) {
75
- return false;
76
- }
77
- if (this.qfe > other.qfe) {
78
- return true;
79
- }
80
- if (this.qfe < other.qfe) {
81
- return false;
82
- }
83
- return true;
84
- }
85
- toString() {
86
- return `${this.major}.${this.minor}.${this.build}.${this.qfe}`;
87
- }
88
- static compare(x, y) {
89
- if (x.constructor !== Version || y.constructor !== Version) {
90
- throw new TypeError('Only can compare Version objects');
91
- }
92
- return x.gt(y) ? 1 : x.eq(y) ? 0 : -1;
93
- }
94
- static fromString(str) {
95
- const version = Version.tryParse(str);
96
- if (!version) {
97
- throw new TypeError('Cannot construct a version from "' + str + '".');
98
- }
99
- return version;
100
- }
101
- static tryParse(str) {
102
- if (VERSION_EXPRESSION.test(str)) {
103
- const versionArray = str.split('.').map(x => parseInt(x, 10));
104
- return new Version(versionArray[0], versionArray[1], versionArray[2], versionArray[3]);
105
- }
106
- return null;
107
- }
108
- }
109
- exports.default = Version;
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ * @format
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ const VERSION_EXPRESSION = /^\d{1,8}(\.\d{1,8}){0,3}$/;
9
+ class Version {
10
+ constructor(major, minor = 0, build = 0, qfe = 0) {
11
+ this.major = major;
12
+ this.minor = minor;
13
+ this.build = build;
14
+ this.qfe = qfe;
15
+ }
16
+ eq(other) {
17
+ if (other.constructor !== Version) {
18
+ throw new TypeError('other must be a Version instance');
19
+ }
20
+ return (this.major === other.major &&
21
+ this.minor === other.minor &&
22
+ this.build === other.build &&
23
+ this.qfe === other.qfe);
24
+ }
25
+ gt(other) {
26
+ if (other.constructor !== Version) {
27
+ throw new TypeError('other must be a Version instance');
28
+ }
29
+ if (this.major > other.major) {
30
+ return true;
31
+ }
32
+ if (this.major < other.major) {
33
+ return false;
34
+ }
35
+ if (this.minor > other.minor) {
36
+ return true;
37
+ }
38
+ if (this.minor < other.minor) {
39
+ return false;
40
+ }
41
+ if (this.build > other.build) {
42
+ return true;
43
+ }
44
+ if (this.build < other.build) {
45
+ return false;
46
+ }
47
+ if (this.qfe > other.qfe) {
48
+ return true;
49
+ }
50
+ if (this.qfe < other.qfe) {
51
+ return false;
52
+ }
53
+ return false;
54
+ }
55
+ gte(other) {
56
+ if (other.constructor !== Version) {
57
+ throw new TypeError('other must be a Version instance');
58
+ }
59
+ if (this.major > other.major) {
60
+ return true;
61
+ }
62
+ if (this.major < other.major) {
63
+ return false;
64
+ }
65
+ if (this.minor > other.minor) {
66
+ return true;
67
+ }
68
+ if (this.minor < other.minor) {
69
+ return false;
70
+ }
71
+ if (this.build > other.build) {
72
+ return true;
73
+ }
74
+ if (this.build < other.build) {
75
+ return false;
76
+ }
77
+ if (this.qfe > other.qfe) {
78
+ return true;
79
+ }
80
+ if (this.qfe < other.qfe) {
81
+ return false;
82
+ }
83
+ return true;
84
+ }
85
+ toString() {
86
+ return `${this.major}.${this.minor}.${this.build}.${this.qfe}`;
87
+ }
88
+ static compare(x, y) {
89
+ if (x.constructor !== Version || y.constructor !== Version) {
90
+ throw new TypeError('Only can compare Version objects');
91
+ }
92
+ return x.gt(y) ? 1 : x.eq(y) ? 0 : -1;
93
+ }
94
+ static fromString(str) {
95
+ const version = Version.tryParse(str);
96
+ if (!version) {
97
+ throw new TypeError('Cannot construct a version from "' + str + '".');
98
+ }
99
+ return version;
100
+ }
101
+ static tryParse(str) {
102
+ if (VERSION_EXPRESSION.test(str)) {
103
+ const versionArray = str.split('.').map(x => parseInt(x, 10));
104
+ return new Version(versionArray[0], versionArray[1], versionArray[2], versionArray[3]);
105
+ }
106
+ return null;
107
+ }
108
+ }
109
+ exports.default = Version;
110
110
  //# sourceMappingURL=version.js.map
@@ -1,34 +1,34 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- * @format
5
- */
6
- /**
7
- * A subset of the per-instance properties returned by vswhere
8
- */
9
- interface VisualStudioInstallation {
10
- instanceId: string;
11
- installationPath: string;
12
- installationVersion: string;
13
- prerelease: string;
14
- }
15
- /**
16
- * Enumerate the installed versions of Visual Studio
17
- */
18
- export declare function enumerateVsInstalls(opts: {
19
- requires?: string[];
20
- minVersion?: string;
21
- verbose?: boolean;
22
- latest?: boolean;
23
- prerelease?: boolean;
24
- }): VisualStudioInstallation[];
25
- /**
26
- * Find the latest available VS installation that matches the given constraints
27
- */
28
- export declare function findLatestVsInstall(opts: {
29
- requires?: string[];
30
- minVersion?: string;
31
- verbose?: boolean;
32
- prerelease?: boolean;
33
- }): VisualStudioInstallation | null;
34
- export {};
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ /**
7
+ * A subset of the per-instance properties returned by vswhere
8
+ */
9
+ interface VisualStudioInstallation {
10
+ instanceId: string;
11
+ installationPath: string;
12
+ installationVersion: string;
13
+ prerelease: string;
14
+ }
15
+ /**
16
+ * Enumerate the installed versions of Visual Studio
17
+ */
18
+ export declare function enumerateVsInstalls(opts: {
19
+ requires?: string[];
20
+ minVersion?: string;
21
+ verbose?: boolean;
22
+ latest?: boolean;
23
+ prerelease?: boolean;
24
+ }): VisualStudioInstallation[];
25
+ /**
26
+ * Find the latest available VS installation that matches the given constraints
27
+ */
28
+ export declare function findLatestVsInstall(opts: {
29
+ requires?: string[];
30
+ minVersion?: string;
31
+ verbose?: boolean;
32
+ prerelease?: boolean;
33
+ }): VisualStudioInstallation | null;
34
+ export {};
@@ -1,100 +1,100 @@
1
- "use strict";
2
- /**
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- * @format
6
- */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.findLatestVsInstall = exports.enumerateVsInstalls = void 0;
12
- const telemetry_1 = require("@react-native-windows/telemetry");
13
- const child_process_1 = require("child_process");
14
- const fs_1 = __importDefault(require("@react-native-windows/fs"));
15
- const path_1 = __importDefault(require("path"));
16
- const semver_1 = __importDefault(require("semver"));
17
- /**
18
- * Helper to run vswhere in JSON mode
19
- *
20
- * @param args Arguments to pass to vsWhere
21
- * @param verbose enable verbose logging
22
- */
23
- function vsWhere(args, verbose) {
24
- // This path is maintained and VS has promised to keep it valid.
25
- const vsWherePath = path_1.default.join(process.env['ProgramFiles(x86)'] || process.env.ProgramFiles, '/Microsoft Visual Studio/Installer/vswhere.exe');
26
- if (verbose) {
27
- console.log('Looking for vswhere at: ' + vsWherePath);
28
- }
29
- if (!fs_1.default.existsSync(vsWherePath)) {
30
- throw new telemetry_1.CodedError('NoVSWhere', `Unable to find vswhere at ${vsWherePath}`);
31
- }
32
- const system32 = `${process.env.SystemRoot}\\System32`;
33
- const cmdline = `${system32}\\cmd.exe /c ${system32}\\chcp.com 65001>nul && "${vsWherePath}" ${args.join(' ')} -format json -utf8`;
34
- const json = JSON.parse((0, child_process_1.execSync)(cmdline).toString());
35
- for (const entry of json) {
36
- entry.prerelease = entry.catalog.productMilestoneIsPreRelease;
37
- }
38
- return json;
39
- }
40
- /**
41
- * Enumerate the installed versions of Visual Studio
42
- */
43
- function enumerateVsInstalls(opts) {
44
- const args = [];
45
- if (opts.minVersion) {
46
- // VS 2019 ex: minVersion == 16.7 => [16.7,17.0)
47
- // VS 2022 ex: minVersion == 17.0 => [17.0,18.0)
48
- // Try to parse minVersion as both a Number and SemVer
49
- const minVersionNum = Number(opts.minVersion);
50
- const minVersionSemVer = semver_1.default.parse(opts.minVersion);
51
- let minVersion;
52
- let maxVersion;
53
- if (minVersionSemVer) {
54
- minVersion = minVersionSemVer.toString();
55
- maxVersion = (minVersionSemVer.major + 1).toFixed(1);
56
- }
57
- else if (!Number.isNaN(minVersionNum)) {
58
- minVersion = minVersionNum.toFixed(1);
59
- maxVersion = (Math.floor(minVersionNum) + 1).toFixed(1);
60
- }
61
- else {
62
- // Unable to parse minVersion and determine maxVersion,
63
- // caller will throw error that version couldn't be found.
64
- return [];
65
- }
66
- const versionRange = `[${minVersion},${maxVersion}` + (opts.prerelease ? ']' : ')');
67
- if (opts.verbose) {
68
- console.log(`Looking for VS installs with version range: ${versionRange}`);
69
- }
70
- args.push(`-version ${versionRange}`);
71
- }
72
- if (opts.requires) {
73
- args.push(`-requires ${opts.requires.join(' ')}`);
74
- }
75
- if (opts.latest) {
76
- args.push('-latest');
77
- }
78
- if (opts.prerelease) {
79
- args.push('-prerelease');
80
- }
81
- return vsWhere(args, opts.verbose);
82
- }
83
- exports.enumerateVsInstalls = enumerateVsInstalls;
84
- /**
85
- * Find the latest available VS installation that matches the given constraints
86
- */
87
- function findLatestVsInstall(opts) {
88
- let installs = enumerateVsInstalls({ ...opts, latest: true });
89
- if (opts.prerelease && installs.length > 0) {
90
- installs = installs.filter(x => x.prerelease === 'True');
91
- }
92
- if (installs.length > 0) {
93
- return installs[0];
94
- }
95
- else {
96
- return null;
97
- }
98
- }
99
- exports.findLatestVsInstall = findLatestVsInstall;
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ * @format
6
+ */
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.findLatestVsInstall = exports.enumerateVsInstalls = void 0;
12
+ const telemetry_1 = require("@react-native-windows/telemetry");
13
+ const child_process_1 = require("child_process");
14
+ const fs_1 = __importDefault(require("@react-native-windows/fs"));
15
+ const path_1 = __importDefault(require("path"));
16
+ const semver_1 = __importDefault(require("semver"));
17
+ /**
18
+ * Helper to run vswhere in JSON mode
19
+ *
20
+ * @param args Arguments to pass to vsWhere
21
+ * @param verbose enable verbose logging
22
+ */
23
+ function vsWhere(args, verbose) {
24
+ // This path is maintained and VS has promised to keep it valid.
25
+ const vsWherePath = path_1.default.join(process.env['ProgramFiles(x86)'] || process.env.ProgramFiles, '/Microsoft Visual Studio/Installer/vswhere.exe');
26
+ if (verbose) {
27
+ console.log('Looking for vswhere at: ' + vsWherePath);
28
+ }
29
+ if (!fs_1.default.existsSync(vsWherePath)) {
30
+ throw new telemetry_1.CodedError('NoVSWhere', `Unable to find vswhere at ${vsWherePath}`);
31
+ }
32
+ const system32 = `${process.env.SystemRoot}\\System32`;
33
+ const cmdline = `${system32}\\cmd.exe /c ${system32}\\chcp.com 65001>nul && "${vsWherePath}" ${args.join(' ')} -format json -utf8`;
34
+ const json = JSON.parse((0, child_process_1.execSync)(cmdline).toString());
35
+ for (const entry of json) {
36
+ entry.prerelease = entry.catalog.productMilestoneIsPreRelease;
37
+ }
38
+ return json;
39
+ }
40
+ /**
41
+ * Enumerate the installed versions of Visual Studio
42
+ */
43
+ function enumerateVsInstalls(opts) {
44
+ const args = [];
45
+ if (opts.minVersion) {
46
+ // VS 2019 ex: minVersion == 16.7 => [16.7,17.0)
47
+ // VS 2022 ex: minVersion == 17.0 => [17.0,18.0)
48
+ // Try to parse minVersion as both a Number and SemVer
49
+ const minVersionNum = Number(opts.minVersion);
50
+ const minVersionSemVer = semver_1.default.parse(opts.minVersion);
51
+ let minVersion;
52
+ let maxVersion;
53
+ if (minVersionSemVer) {
54
+ minVersion = minVersionSemVer.toString();
55
+ maxVersion = (minVersionSemVer.major + 1).toFixed(1);
56
+ }
57
+ else if (!Number.isNaN(minVersionNum)) {
58
+ minVersion = minVersionNum.toFixed(1);
59
+ maxVersion = (Math.floor(minVersionNum) + 1).toFixed(1);
60
+ }
61
+ else {
62
+ // Unable to parse minVersion and determine maxVersion,
63
+ // caller will throw error that version couldn't be found.
64
+ return [];
65
+ }
66
+ const versionRange = `[${minVersion},${maxVersion}` + (opts.prerelease ? ']' : ')');
67
+ if (opts.verbose) {
68
+ console.log(`Looking for VS installs with version range: ${versionRange}`);
69
+ }
70
+ args.push(`-version ${versionRange}`);
71
+ }
72
+ if (opts.requires) {
73
+ args.push(`-requires ${opts.requires.join(' ')}`);
74
+ }
75
+ if (opts.latest) {
76
+ args.push('-latest');
77
+ }
78
+ if (opts.prerelease) {
79
+ args.push('-prerelease');
80
+ }
81
+ return vsWhere(args, opts.verbose);
82
+ }
83
+ exports.enumerateVsInstalls = enumerateVsInstalls;
84
+ /**
85
+ * Find the latest available VS installation that matches the given constraints
86
+ */
87
+ function findLatestVsInstall(opts) {
88
+ let installs = enumerateVsInstalls({ ...opts, latest: true });
89
+ if (opts.prerelease && installs.length > 0) {
90
+ installs = installs.filter(x => x.prerelease === 'True');
91
+ }
92
+ if (installs.length > 0) {
93
+ return installs[0];
94
+ }
95
+ else {
96
+ return null;
97
+ }
98
+ }
99
+ exports.findLatestVsInstall = findLatestVsInstall;
100
100
  //# sourceMappingURL=vsInstalls.js.map
@@ -1,16 +1,16 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License.
4
- * @format
5
- */
6
- import { Project } from '../commands/config/projectConfig';
7
- export declare const dotNetCoreProjectTypeGuid = "{9A19103F-16F7-4668-BE54-9A1E7A4F7556}";
8
- /**
9
- * Adds the necessary info from a VS project into a VS solution file so that it will build.
10
- * @param slnFile The Absolute path to the target VS solution file.
11
- * @param project The object representing the project info.
12
- * @param verbose If true, enable verbose logging.
13
- * @param checkMode It true, don't make any changes.
14
- * @return Whether any changes were necessary.
15
- */
16
- export declare function addProjectToSolution(slnFile: string, project: Project, verbose?: boolean, checkMode?: boolean): boolean;
1
+ /**
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ import { Project } from '../commands/config/projectConfig';
7
+ export declare const dotNetCoreProjectTypeGuid = "{9A19103F-16F7-4668-BE54-9A1E7A4F7556}";
8
+ /**
9
+ * Adds the necessary info from a VS project into a VS solution file so that it will build.
10
+ * @param slnFile The Absolute path to the target VS solution file.
11
+ * @param project The object representing the project info.
12
+ * @param verbose If true, enable verbose logging.
13
+ * @param checkMode It true, don't make any changes.
14
+ * @return Whether any changes were necessary.
15
+ */
16
+ export declare function addProjectToSolution(slnFile: string, project: Project, verbose?: boolean, checkMode?: boolean): boolean;