Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and publish symbol nuget packages #367

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ jobs:
ConnectedServiceName: ESRP-JsHost2
FolderPath: $(Build.SourcesDirectory)/out/pkg
Pattern: |
**/Microsoft.JavaScript.NodeApi.*.nupkg
**/Microsoft.JavaScript.NodeApi.*.*nupkg
UseMinimatch: true
signConfigType: inlineSignParams
inlineOperation: |
Expand All @@ -250,7 +250,7 @@ jobs:
sourceFolder: $(Build.SourcesDirectory)/out/pkg
targetFolder: $(Build.StagingDirectory)/pkg
contents: |
*.nupkg
*.*nupkg
*.tgz

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
with:
name: ${{ matrix.os }}-${{ matrix.configuration }}-packages
path: |
out/pkg/*.nupkg
out/pkg/*.*nupkg
out/pkg/*.tgz

- name: Test
Expand Down
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition=" '$(PublishAot)' == 'true' ">
<!-- Modify the build output paths when publishing for AOT. This enables separately compiling
AOT and non-AOT flavors of the same project, which is necessary because .NET 8 blocks
Expand Down
Loading