@halospv3/hce.shared-config 2.6.4 → 3.0.0-develop.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.
- package/CHANGELOG.md +356 -101
- package/README.md +100 -87
- package/dotnet/.github/workflows/_unit_test.yml +6 -3
- package/dotnet/.github/workflows/ci.yml +2 -2
- package/dotnet/.github/workflows/dotnet-release.yml +31 -28
- package/dotnet/.github/workflows/sample-dotnet-build.yml +16 -11
- package/dotnet/ExecNupkgDeterministicator.README.md +20 -0
- package/dotnet/ExecNupkgDeterministicator.targets +173 -0
- package/dotnet/GitVersion.yml +3 -1
- package/dotnet/GitVersion6.0.yml +3 -1
- package/dotnet/HCE.Shared.sln +34 -0
- package/dotnet/HCE.Shared.targets +1 -0
- package/dotnet/PublishAll.targets +2 -0
- package/dotnet/SignAfterPack.targets +104 -0
- package/dotnet/samples/HCE.Shared.DeterministicNupkg/Dummy.cs +6 -0
- package/dotnet/samples/HCE.Shared.DeterministicNupkg/HCE.Shared.DeterministicNupkg.csproj +21 -0
- package/dotnet/samples/HCE.Shared.SignAfterPack/Class1.cs +6 -0
- package/dotnet/samples/HCE.Shared.SignAfterPack/HCE.Shared.SignAfterPack.csproj +21 -0
- package/dotnet/samples/HCE.Shared.SignAfterPack/sampleCert.samplepfx +0 -0
- package/dotnet/samples/README.md +7 -0
- package/package.json +72 -73
- package/src/CaseInsensitiveMap.ts +34 -0
- package/src/commitlintConfig.ts +17 -9
- package/src/debug.ts +3 -3
- package/src/dotnet/GithubNugetRegistryInfo.ts +60 -0
- package/src/dotnet/GitlabNugetRegistryInfo.ts +112 -0
- package/src/dotnet/IsNextVersionAlreadyPublished.cli.ts +44 -0
- package/src/dotnet/MSBuildProject.ts +557 -76
- package/src/dotnet/MSBuildProjectProperties.ts +280 -15
- package/src/dotnet/NugetProjectProperties.ts +608 -0
- package/src/dotnet/NugetRegistryInfo.ts +939 -0
- package/src/dotnet/helpers.ts +448 -0
- package/src/eslintConfig.ts +174 -71
- package/src/index.ts +1 -3
- package/src/semantic-release__commit-analyzer.d.ts +44 -38
- package/src/semantic-release__exec.d.ts +15 -0
- package/src/semantic-release__git.d.ts +85 -88
- package/src/semantic-release__github.d.ts +139 -139
- package/src/semanticReleaseConfig.ts +106 -47
- package/src/semanticReleaseConfigDotnet.ts +394 -104
- package/src/setupGitPluginSpec.ts +149 -57
- package/src/tsconfig.json +8 -8
- package/src/utils/Exact.ts +49 -0
- package/src/utils/GracefulRecursion.d.ts +12 -0
- package/src/utils/env.ts +44 -0
- package/src/utils/execAsync.ts +77 -0
- package/src/utils/miscTypes.ts +17 -0
- package/src/utils/reflection/FunctionLike.d.ts +17 -0
- package/src/utils/reflection/GetterDescriptor.d.ts +8 -0
- package/src/utils/reflection/InstancePropertyDescriptorMap.d.ts +32 -0
- package/src/utils/reflection/InstanceTypeOrSelfPropertyDescriptorMap.d.ts +20 -0
- package/src/utils/reflection/OwnGetterDescriptorMap.d.ts +17 -0
- package/src/utils/reflection/OwnKeyOf.d.ts +20 -0
- package/src/utils/reflection/OwnPropertyDescriptorMap.d.ts +82 -0
- package/src/utils/reflection/PropertyDescriptorMap.d.ts +15 -0
- package/src/utils/reflection/filterForGetters.ts +59 -0
- package/src/utils/reflection/getOwnPropertyDescriptors.ts +52 -0
- package/src/utils/reflection/getOwnPropertyDescriptorsRecursively.ts +127 -0
- package/src/utils/reflection/getPrototypeChainOf.ts +85 -0
- package/src/utils/reflection/getPrototypeOf.ts +12 -0
- package/src/utils/reflection/inheritance.ts +262 -0
- package/src/utils/reflection/isConstructor.ts +74 -0
- package/src/utils/reflection/isGetterDescriptor.ts +11 -0
- package/src/utils/reflection/listOwnGetters.ts +80 -0
- package/src/utils/reflection.ts +18 -0
- package/cjs/commitlintConfig-wrapper.mjs +0 -6
- package/cjs/commitlintConfig.cjs +0 -14
- package/cjs/commitlintConfig.cjs.map +0 -1
- package/cjs/commitlintConfig.d.ts +0 -4
- package/cjs/commitlintConfig.d.ts.map +0 -1
- package/cjs/debug.cjs +0 -13
- package/cjs/debug.cjs.map +0 -1
- package/cjs/debug.d.ts +0 -4
- package/cjs/debug.d.ts.map +0 -1
- package/cjs/dotnet/MSBuildProject.cjs +0 -84
- package/cjs/dotnet/MSBuildProject.cjs.map +0 -1
- package/cjs/dotnet/MSBuildProject.d.ts +0 -42
- package/cjs/dotnet/MSBuildProject.d.ts.map +0 -1
- package/cjs/dotnet/MSBuildProjectProperties.cjs +0 -22
- package/cjs/dotnet/MSBuildProjectProperties.cjs.map +0 -1
- package/cjs/dotnet/MSBuildProjectProperties.d.ts +0 -13
- package/cjs/dotnet/MSBuildProjectProperties.d.ts.map +0 -1
- package/cjs/dotnet/createDummyNupkg.cjs +0 -26
- package/cjs/dotnet/createDummyNupkg.cjs.map +0 -1
- package/cjs/dotnet/createDummyNupkg.d.ts +0 -2
- package/cjs/dotnet/createDummyNupkg.d.ts.map +0 -1
- package/cjs/dotnet/dotnetGHPR.cjs +0 -173
- package/cjs/dotnet/dotnetGHPR.cjs.map +0 -1
- package/cjs/dotnet/dotnetGHPR.d.ts +0 -37
- package/cjs/dotnet/dotnetGHPR.d.ts.map +0 -1
- package/cjs/dotnet/dotnetGLPR.cjs +0 -41
- package/cjs/dotnet/dotnetGLPR.cjs.map +0 -1
- package/cjs/dotnet/dotnetGLPR.d.ts +0 -13
- package/cjs/dotnet/dotnetGLPR.d.ts.map +0 -1
- package/cjs/dotnet/dotnetHelpers.cjs +0 -141
- package/cjs/dotnet/dotnetHelpers.cjs.map +0 -1
- package/cjs/dotnet/dotnetHelpers.d.ts +0 -26
- package/cjs/dotnet/dotnetHelpers.d.ts.map +0 -1
- package/cjs/dotnet-wrapper.mjs +0 -6
- package/cjs/dotnet.cjs +0 -15
- package/cjs/dotnet.cjs.map +0 -1
- package/cjs/dotnet.d.ts +0 -7
- package/cjs/dotnet.d.ts.map +0 -1
- package/cjs/envUtils-wrapper.mjs +0 -6
- package/cjs/envUtils.cjs +0 -37
- package/cjs/envUtils.cjs.map +0 -1
- package/cjs/envUtils.d.ts +0 -15
- package/cjs/envUtils.d.ts.map +0 -1
- package/cjs/eslintConfig-wrapper.mjs +0 -6
- package/cjs/eslintConfig.cjs +0 -52
- package/cjs/eslintConfig.cjs.map +0 -1
- package/cjs/eslintConfig.d.ts +0 -3
- package/cjs/eslintConfig.d.ts.map +0 -1
- package/cjs/findStaticConfig-wrapper.mjs +0 -6
- package/cjs/findStaticConfig.cjs +0 -34
- package/cjs/findStaticConfig.cjs.map +0 -1
- package/cjs/findStaticConfig.d.ts +0 -2
- package/cjs/findStaticConfig.d.ts.map +0 -1
- package/cjs/index-wrapper.mjs +0 -6
- package/cjs/index.cjs +0 -10
- package/cjs/index.cjs.map +0 -1
- package/cjs/index.d.ts +0 -5
- package/cjs/index.d.ts.map +0 -1
- package/cjs/semantic-release__commit-analyzer.d.cjs +0 -2
- package/cjs/semantic-release__commit-analyzer.d.cjs.map +0 -1
- package/cjs/semantic-release__git.d.cjs +0 -2
- package/cjs/semantic-release__git.d.cjs.map +0 -1
- package/cjs/semantic-release__github.d.cjs +0 -2
- package/cjs/semantic-release__github.d.cjs.map +0 -1
- package/cjs/semanticReleaseConfig-wrapper.mjs +0 -6
- package/cjs/semanticReleaseConfig.cjs +0 -33
- package/cjs/semanticReleaseConfig.cjs.map +0 -1
- package/cjs/semanticReleaseConfig.d.ts +0 -4
- package/cjs/semanticReleaseConfig.d.ts.map +0 -1
- package/cjs/semanticReleaseConfigDotnet-wrapper.mjs +0 -7
- package/cjs/semanticReleaseConfigDotnet.cjs +0 -112
- package/cjs/semanticReleaseConfigDotnet.cjs.map +0 -1
- package/cjs/semanticReleaseConfigDotnet.d.ts +0 -51
- package/cjs/semanticReleaseConfigDotnet.d.ts.map +0 -1
- package/cjs/setupGitPluginSpec-wrapper.mjs +0 -6
- package/cjs/setupGitPluginSpec.cjs +0 -67
- package/cjs/setupGitPluginSpec.cjs.map +0 -1
- package/cjs/setupGitPluginSpec.d.ts +0 -19
- package/cjs/setupGitPluginSpec.d.ts.map +0 -1
- package/src/dotnet/createDummyNupkg.ts +0 -30
- package/src/dotnet/dotnetGHPR.ts +0 -232
- package/src/dotnet/dotnetGLPR.ts +0 -46
- package/src/dotnet/dotnetHelpers.ts +0 -184
- package/src/dotnet.ts +0 -6
- package/src/envUtils.ts +0 -36
- package/src/findStaticConfig.ts +0 -31
- package/static/.releaserc.yml +0 -35
|
@@ -1,28 +1,293 @@
|
|
|
1
|
+
import { strictEqual } from 'node:assert/strict';
|
|
1
2
|
import { existsSync } from 'node:fs';
|
|
2
|
-
import
|
|
3
|
+
import node_path from 'node:path';
|
|
4
|
+
import { CaseInsensitiveMap } from '../CaseInsensitiveMap.js';
|
|
5
|
+
import type { BaseClass, ClassLike } from '../utils/reflection.js';
|
|
3
6
|
|
|
4
7
|
/**
|
|
5
8
|
* Known properties. Additional properties may be added upon request.
|
|
9
|
+
*
|
|
10
|
+
* todo: add Reserved properties, Well-Known properties, Common properties, and more. Maybe as sub classes.
|
|
11
|
+
* See:
|
|
12
|
+
* - {@link https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-reserved-and-well-known-properties?view=vs-2022 MSBuild Reserved and Well-known Properties}
|
|
13
|
+
* - {@link https://learn.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-properties?view=vs-2022 Common MSBuild project properties}
|
|
14
|
+
* - {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props Microsoft.NET.Sdk}
|
|
15
|
+
* - {@link https://learn.microsoft.com/en-us/aspnet/core/razor-pages/web-sdk?view=aspnetcore-8.0&toc=%2Fdotnet%2Fnavigate%2Ftools-diagnostics%2Ftoc.json&bc=%2Fdotnet%2Fbreadcrumb%2Ftoc.json#properties Microsoft.NET.Sdk.Web}
|
|
16
|
+
* - {@link https://learn.microsoft.com/en-us/aspnet/core/razor-pages/sdk?view=aspnetcore-8.0&toc=%2Fdotnet%2Fnavigate%2Ftools-diagnostics%2Ftoc.json&bc=%2Fdotnet%2Fbreadcrumb%2Ftoc.json Microsoft.NET.Sdk.Razor}
|
|
17
|
+
* - {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props-desktop Microsoft.NET.Sdk.Desktop}
|
|
6
18
|
*/
|
|
7
19
|
export class MSBuildProjectProperties {
|
|
8
|
-
|
|
20
|
+
// #region static
|
|
9
21
|
|
|
10
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Resolve the given path if it is not absolute. If the path exists, it is returned. Else, an Error is thrown.
|
|
24
|
+
* @param path The full file path of an MSBuild project.
|
|
25
|
+
* @returns The absolute path to the MSBuild project file.
|
|
26
|
+
*/
|
|
27
|
+
static GetFullPath(path: string) {
|
|
28
|
+
if (!node_path.isAbsolute(path))
|
|
29
|
+
path = node_path.resolve(path);
|
|
30
|
+
if (!existsSync(path))
|
|
31
|
+
throw new Error(`${node_path.basename(path)} could not be found at "${path}"`);
|
|
32
|
+
return path;
|
|
33
|
+
}
|
|
11
34
|
|
|
12
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Note: This method may remove elements from {@link properties}.\
|
|
37
|
+
* Try to get an element from {@link properties} by its {@link key}.
|
|
38
|
+
* If an element is found, it is removed and the value of the element is returned.
|
|
39
|
+
* Otherwise, `undefined` is returned.
|
|
40
|
+
* @param properties The CaseInsensitiveMap of properties passed to the constructor.
|
|
41
|
+
* @param key The key of the property to get from {@link properties}
|
|
42
|
+
* @returns If found, the value of the `[string, string]` tuple found in {@link properties}. Else, `undefined`.
|
|
43
|
+
*/
|
|
44
|
+
protected static getAndForget(
|
|
45
|
+
properties: CaseInsensitiveMap<string, string>,
|
|
46
|
+
key: string,
|
|
47
|
+
): string | undefined {
|
|
48
|
+
const v: string | undefined = properties.get(key);
|
|
49
|
+
if (v !== undefined)
|
|
50
|
+
properties.delete(key);
|
|
51
|
+
return v;
|
|
52
|
+
}
|
|
13
53
|
|
|
14
|
-
|
|
54
|
+
// #endregion static
|
|
55
|
+
// #endregion static
|
|
15
56
|
|
|
16
|
-
|
|
57
|
+
// #region private
|
|
58
|
+
private _msbuildProjectFullPath: string | undefined;
|
|
59
|
+
private _assemblyName: string | undefined;
|
|
60
|
+
private _baseIntermediateOutputPath: string | undefined;
|
|
61
|
+
private _baseOutputPath: string | undefined;
|
|
62
|
+
private _description: string | undefined;
|
|
63
|
+
private _intermediateOutputPath: string | undefined;
|
|
64
|
+
private _outDir: string | undefined;
|
|
65
|
+
private _outputPath: string | undefined;
|
|
66
|
+
private _runtimeIdentifier: string | undefined;
|
|
67
|
+
private _runtimeIdentifiers: string | undefined;
|
|
68
|
+
private _targetFramework: string | undefined;
|
|
69
|
+
private _targetFrameworks: string | undefined;
|
|
70
|
+
private _version: string | undefined;
|
|
71
|
+
private _versionPrefix: string | undefined;
|
|
72
|
+
private _versionSuffix: string | undefined;
|
|
73
|
+
// #endregion private
|
|
17
74
|
|
|
18
|
-
|
|
75
|
+
constructor(
|
|
76
|
+
msbuildProjectFullPath: string,
|
|
77
|
+
properties: CaseInsensitiveMap<string, string>,
|
|
78
|
+
) {
|
|
79
|
+
// runtime type checks
|
|
80
|
+
strictEqual(
|
|
81
|
+
typeof msbuildProjectFullPath,
|
|
82
|
+
'string',
|
|
83
|
+
new TypeError(
|
|
84
|
+
`msbuildProjectFullPath should be a string, not ${typeof msbuildProjectFullPath}!`,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
87
|
+
strictEqual(
|
|
88
|
+
properties instanceof CaseInsensitiveMap,
|
|
89
|
+
true,
|
|
90
|
+
`arg 'properties' should be instanceof ${CaseInsensitiveMap.name}`,
|
|
91
|
+
);
|
|
92
|
+
strictEqual(
|
|
93
|
+
[...properties.keys()].every((v): v is string => typeof v === 'string'),
|
|
94
|
+
true,
|
|
95
|
+
'all keys in arg \'properties\' should be strings',
|
|
96
|
+
);
|
|
19
97
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
98
|
+
this._msbuildProjectFullPath = MPP.GetFullPath(msbuildProjectFullPath);
|
|
99
|
+
this._assemblyName = MPP.getAndForget(properties, 'AssemblyName');
|
|
100
|
+
this._description = MPP.getAndForget(properties, 'Description');
|
|
101
|
+
this._outputPath = MPP.getAndForget(properties, 'OutputPath');
|
|
102
|
+
this._runtimeIdentifier = MPP.getAndForget(properties, 'RuntimeIdentifier');
|
|
103
|
+
this._runtimeIdentifiers = MPP.getAndForget(
|
|
104
|
+
properties,
|
|
105
|
+
'RuntimeIdentifiers',
|
|
106
|
+
);
|
|
107
|
+
this._targetFramework = MPP.getAndForget(properties, 'TargetFramework');
|
|
108
|
+
this._targetFrameworks = MPP.getAndForget(properties, 'TargetFrameworks');
|
|
109
|
+
this._version = MPP.getAndForget(properties, 'Version');
|
|
110
|
+
this._versionPrefix = MPP.getAndForget(properties, 'VersionPrefix');
|
|
111
|
+
this._versionSuffix = MPP.getAndForget(properties, 'VersionSuffix');
|
|
112
|
+
// rest
|
|
113
|
+
for (const key of properties.keys()) {
|
|
114
|
+
const value = MPP.getAndForget(properties, key);
|
|
115
|
+
if (value !== undefined) {
|
|
116
|
+
Object.defineProperty(this, key, {
|
|
117
|
+
value: value,
|
|
118
|
+
writable: false,
|
|
119
|
+
enumerable: true,
|
|
120
|
+
configurable: true,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
get MSBuildProjectFullPath(): string {
|
|
127
|
+
return this._msbuildProjectFullPath ??= '';
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @returns The name of the assembly.
|
|
132
|
+
*
|
|
133
|
+
* Default: {@link https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-reserved-and-well-known-properties#:~:text=MSBuildProjectDirectory,-Reserved MSBuildProjectDirectory}
|
|
134
|
+
*/
|
|
135
|
+
get AssemblyName(): string {
|
|
136
|
+
return this._assemblyName ??= '';
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @returns The top-level folder where all configuration-specific intermediate output
|
|
141
|
+
* folders are created. The default value is `obj\`.
|
|
142
|
+
* @example
|
|
143
|
+
* ```xml
|
|
144
|
+
* <BaseIntermediateOutputPath>c:\xyz\obj\</BaseIntermediateOutputPath>
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
get BaseIntermediateOutputPath(): string {
|
|
148
|
+
return this._baseIntermediateOutputPath ??= '';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @returns The base path for the output file.
|
|
153
|
+
* If it's set, MSBuild uses `OutputPath = $(BaseOutputPath)\$(Configuration)\`.
|
|
154
|
+
* @example ```xml
|
|
155
|
+
* <BaseOutputPath>c:\xyz\bin\</BaseOutputPath>
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
get BaseOutputPath(): string {
|
|
159
|
+
return this._baseOutputPath ??= '';
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* A long description for the assembly.
|
|
164
|
+
* If {@link NugetProperties.PackageDescription} is not specified, then this property is also used as the description of the package.
|
|
165
|
+
* @returns The value of the `Description` property.
|
|
166
|
+
*/
|
|
167
|
+
get Description(): string {
|
|
168
|
+
return this._description ??= '';
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @returns The full intermediate output path as derived from
|
|
173
|
+
* {@link BaseIntermediateOutputPath}, if no path is specified.
|
|
174
|
+
* @example "obj\\debug\\"
|
|
175
|
+
*/
|
|
176
|
+
get IntermediateOutput(): string {
|
|
177
|
+
return this._intermediateOutputPath ??= '';
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @returns The final output location for the project or solution.
|
|
182
|
+
* When you build a solution, OutDir can be used to gather multiple project outputs in one location.
|
|
183
|
+
* In addition, OutDir is included in AssemblySearchPaths used for resolving references.
|
|
184
|
+
* @example
|
|
185
|
+
* `bin/Debug`
|
|
186
|
+
*/
|
|
187
|
+
get OutDir(): string {
|
|
188
|
+
return this._outDir ??= '';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @returns The path to the output directory, relative to the project
|
|
193
|
+
* directory.
|
|
194
|
+
* @example
|
|
195
|
+
* `bin/Debug`
|
|
196
|
+
* /// non-AnyCPU builds
|
|
197
|
+
* `bin/Debug/${Platform}`
|
|
198
|
+
*/
|
|
199
|
+
get OutputPath(): string {
|
|
200
|
+
return this._outputPath ??= '';
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Set Version -OR- VersionPrefix.
|
|
205
|
+
* @returns The value of the `Version` property.
|
|
206
|
+
*
|
|
207
|
+
* Default: `"1.0.0"`
|
|
208
|
+
*/
|
|
209
|
+
get Version(): string {
|
|
210
|
+
return this._version ??= '1.0.0';
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Set Version -OR- VersionPrefix.\
|
|
215
|
+
* Setting {@link NugetProperties.PackageVersion} overwrites {@link VersionPrefix}
|
|
216
|
+
* @returns The MAJOR.MINOR.PATCH string of the version.
|
|
217
|
+
* @see {@link VersionSuffix}
|
|
218
|
+
*/
|
|
219
|
+
get VersionPrefix(): string {
|
|
220
|
+
return this._versionPrefix ??= '';
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* The effect of this property on the package version depends on the values of the Version and VersionPrefix properties, as shown in the following table:
|
|
225
|
+
* | Properties with values | Package version |
|
|
226
|
+
* | ---------------------- | --------------- |
|
|
227
|
+
* | None | 1.0.0 |
|
|
228
|
+
* | Version | $(Version) |
|
|
229
|
+
* | VersionPrefix only | $(VersionPrefix) |
|
|
230
|
+
* | VersionSuffix only | 1.0.0-$(VersionSuffix) |
|
|
231
|
+
* | VersionPrefix and VersionSuffix | $(VersionPrefix)-$(VersionSuffix) |
|
|
232
|
+
* \
|
|
233
|
+
* Setting {@link PackageVersion} overwrites {@link VersionSuffix}
|
|
234
|
+
* @returns The string appended to the end of the MAJOR.MINOR.PATCH semver string (i.e. {@link VersionPrefix})
|
|
235
|
+
*/
|
|
236
|
+
get VersionSuffix(): string {
|
|
237
|
+
return this._versionSuffix ??= '';
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @returns The {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#targetframework Target Framework}
|
|
242
|
+
* @see
|
|
243
|
+
* https://learn.microsoft.com/en-us/nuget/reference/target-frameworks#supported-frameworks
|
|
244
|
+
* https://learn.microsoft.com/en-us/dotnet/standard/frameworks
|
|
245
|
+
*/
|
|
246
|
+
get TargetFramework(): string {
|
|
247
|
+
return this._targetFramework ??= '';
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @returns The {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#targetframeworks Target Frameworks} (plural)
|
|
252
|
+
* @see
|
|
253
|
+
* https://learn.microsoft.com/en-us/nuget/reference/target-frameworks#supported-frameworks
|
|
254
|
+
* https://learn.microsoft.com/en-us/dotnet/standard/frameworks
|
|
255
|
+
*/
|
|
256
|
+
get TargetFrameworks(): string {
|
|
257
|
+
return this._targetFrameworks ??= '';
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @returns
|
|
262
|
+
* > The {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#runtimeidentifier `Runtime Identifier`} property lets you specify a single runtime
|
|
263
|
+
* > identifier (RID) for the project. The RID enables publishing a
|
|
264
|
+
* > self-contained deployment.
|
|
265
|
+
* @see
|
|
266
|
+
* https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
|
|
267
|
+
*/
|
|
268
|
+
get RuntimeIdentifier(): string {
|
|
269
|
+
return this._runtimeIdentifier ??= '';
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @returns
|
|
274
|
+
* > The {@link https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#runtimeidentifiers `RuntimeIdentifiers`} property lets you specify a
|
|
275
|
+
* > semicolon-delimited list of runtime identifiers (RIDs) for the project.
|
|
276
|
+
* > Use this property if you need to publish for multiple runtimes.
|
|
277
|
+
* > `RuntimeIdentifiers` is used at restore time to ensure the right assets
|
|
278
|
+
* > are in the graph.
|
|
279
|
+
* @see
|
|
280
|
+
* https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
|
|
281
|
+
*/
|
|
282
|
+
get RuntimeIdentifiers(): string {
|
|
283
|
+
return this._runtimeIdentifiers ??= '';
|
|
284
|
+
}
|
|
28
285
|
}
|
|
286
|
+
|
|
287
|
+
const MPP = MSBuildProjectProperties;
|
|
288
|
+
export type Class_MSBPP = ClassLike<BaseClass<typeof MSBuildProjectProperties & {
|
|
289
|
+
// @ts-expect-error Property 'getAndForget' is protected and only accessible within class 'MSBuildProjectProperties' and its subclasses. ts(2445)
|
|
290
|
+
getAndForget: ProtectedMember<typeof MSBuildProjectProperties.getAndForget>;
|
|
291
|
+
}>>;
|
|
292
|
+
|
|
293
|
+
type ProtectedMember<T> = T;
|