Skip to content

Conversation

@TimMullender
Copy link

On OS X pack-module.ps1 is including the content of custom/docs/exports/internal in the top level of the generated .nupkg rather than maintaining the directory structure.

Based on https://docs.microsoft.com/en-us/nuget/reference/nuspec#including-assembly-files a target attribute is required to ensure the correct structure is achieved

Copy link
Contributor

@dolauli dolauli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change will fix the issue in Mac, but will fail packaging (create another level of folder, e.g. internal/internal/, custom/custom/) in Windows. So I have to reject this change.

@TimMullender
Copy link
Author

TimMullender commented Jun 24, 2020

Apologies, I didn't think to double check Windows. I'll look to make this work cross platform, microsoft/dotnet#1208 might have some clues

@TimMullender
Copy link
Author

I'm getting the same file listing when generating the package under Windows, OS X and Ubuntu with the latest change

Copy link
Contributor

@dolauli dolauli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@dolauli
Copy link
Contributor

dolauli commented Jun 29, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@dolauli dolauli merged commit f54ee7b into Azure:master Jun 29, 2020
@TimMullender TimMullender deleted the nuspec-targets branch June 29, 2020 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants