-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Packaging cleanup #6939
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
Merged
Merged
Packaging cleanup #6939
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
db15f47
Packaging cleanup
ericstj ca66f2b
Apply code review feedback
ericstj 9a9b26b
Suppress copying indirect references
ericstj 7828ea7
Remove unwanted bundled files from AutoML
ericstj 86ff6b5
Remove leading slash
ericstj 1ca51b3
Refactor model download
ericstj fce6534
Correct the packaging path of native symbols
ericstj 0f22e08
Merge branch 'main' of https://github.com/dotnet/machinelearning into…
ericstj 164d311
Rename NoTargets projects from csproj to proj
ericstj 0489b9f
Merge branch 'main' of https://github.com/dotnet/machinelearning into…
ericstj fe9a773
Fix build issues around model download and respond to feedback
ericstj 8d795f7
Remove NoTargets file extension enforcement
ericstj fc8895d
Merge branch 'main' into cleanupSnupkg
ericstj 94b96b4
Merge branch 'main' into cleanupSnupkg
ericstj eea5f83
Rename proj to CSProj, include in SLN
ericstj d957285
Merge branch 'main' into cleanupSnupkg
ericstj 498fc84
Merge remote-tracking branch 'upstream/main' into cleanupSnupkg
ericstj 59f414d
Respond to PR feedback
ericstj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<Project> | ||
|
||
<ItemGroup> | ||
<Content Include="$(RepositoryEngineeringDir)pkg\mlnetlogo.png" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(IncludeMLNetNotices)' != 'false'"> | ||
<Content Include="$(RepoRoot)THIRD-PARTY-NOTICES.TXT" Pack="true" PackagePath="" /> | ||
<Content Include="$(RepoRoot)LICENSE" Pack="true" PackagePath=""/> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);IncludeAdditionalFilesInPackage;</TargetsForTfmSpecificContentInPackage> | ||
</PropertyGroup> | ||
|
||
<Target Name="_IncludeProjectReferencesWithPackAttributeInPackage" | ||
Condition="'@(ProjectReference)' != '' and @(ProjectReference->AnyHaveMetadataValue('Pack', 'true'))" | ||
DependsOnTargets="BuildOnlySettings;ResolveReferences"> | ||
<ItemGroup> | ||
<!-- Implements workaround for https://github.com/NuGet/Home/issues/3891 --> | ||
<!-- Add ReferenceCopyLocalPaths for ProjectReferences which are flagged as Pack="true" into the package. --> | ||
<_projectReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('Pack', 'true'))" /> | ||
<TfmSpecificPackageFile Include="@(_projectReferenceCopyLocalPaths)" | ||
PackagePath="$([MSBuild]::ValueOrDefault('%(ReferenceCopyLocalPaths.PackagePath)', '$(BuildOutputTargetFolder)\$(TargetFramework)\'))" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="_IncludeRuntimeSpecificAssetsInPackage"> | ||
<ItemGroup> | ||
<!-- Add runtime specific assets to the package. --> | ||
<_runtimeFiles Include="$(PackageAssetsPath)$(PackageId)\runtimes\**\*%(NativeAssemblyReference.Identity)*" /> | ||
<TfmSpecificPackageFile Include="%(_runtimeFiles.Identity)" PackagePath="runtimes/%(_runtimeFiles.RecursiveDir)" TargetFramework="" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="IncludeAdditionalFilesInPackage" DependsOnTargets="_IncludeProjectReferencesWithPackAttributeInPackage;_IncludeRuntimeSpecificAssetsInPackage"> | ||
<ItemGroup> | ||
<!-- PDBs must be specified as TfmSpecificDebugSymbolsFile with a *rooted* TargetPath instead of PackagePath. --> | ||
<TfmSpecificDebugSymbolsFile Include="@(TfmSpecificPackageFile->WithMetadataValue('Extension', '.pdb'))" | ||
TargetPath="/%(TfmSpecificPackageFile.PackagePath)%(Filename)%(Extension)" | ||
TargetFramework="$(TargetFramework)" /> | ||
<!-- Remove symbols from the file list. --> | ||
<TfmSpecificPackageFile Remove="@(TfmSpecificPackageFile->WithMetadataValue('Extension', '.pdb'))" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a later clean-up round, these can be removed as sourcelink is now part of the .NET SDK.