This repository was archived by the owner on Nov 3, 2023. It is now read-only.
Commit bce1b7f
authored
Enable .pdb files for Release config & add AzDO build script (#8)
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1230070
Context: https://github.com/xamarin/XamarinComponents/blob/af66a9ea9536116b1cdcdd4bcc499f5fcb7232ea/.ci/build.yml
Current Microsoft practice requires the presence of symbol files
*somewhere* in order to provide useful stack traces in telemetry/etc.
The easiest way to have the symbol files is to (1) *create them*, and
(2) redistribute them within NuGet packages (so that e.g. the
Xamarin.Android SDK can in turn redistribute the `.pdb` files...)
Update `LineEditor.csproj` so that `$(DebugType)` is *not* cleared in
the Release configuration. This satisfies (1): create the symbol
files, so that they *exist*.
Update `LineEditor.csproj` to remove the `@(PackageReference)` to
`NuGet.Build.Packaging` and the `@(PackageFile)` item group, and
instead require the use of the `msbuild /t:Pack` command, which does
things *mostly* right.
Where `msbuild /t:Pack` falls down is that `LineEditor.pdb` isn't
included into the `.nupkg` file, which is something @jonpryor desires,
to make it easier to include `LineEditor.pdb` into the Xamarin.Android
`.pdb`/`.vsix` installers.
To cause `LineEditor.pdb` to be included in the `.nupkg` file,
override the `$(AllowedOutputExtensionsInPackageBuildOutputFolder)`
property to include `.pdb`.
Finally, add `.ci/azure-pipelines.yml`, which is a YAML build script
for Azure Pipelines. `azure-pipelines.yml` uses the `.ci/build.yml`
file from xamarin/XamarinComponents for signing and publishing.1 parent 4831e1a commit bce1b7f
2 files changed
+43
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | | - | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 28 | | |
0 commit comments