-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Disable Portable PDB conversion * Push packages to artifacts * Fix symbols issues * Added note about Microsoft.ML.dll * try out just packing * Return Build=false, but actually use configuration * Added missing TargetArchitecture * add back tests * Added missing flags
- Loading branch information
1 parent
70ecfff
commit 6fe50e4
Showing
9 changed files
with
112 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -1,40 +1,41 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="$(RepoRoot)eng/pkg/Pack.props"/> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks> | ||
<IncludeInPackage>Microsoft.ML.CpuMath</IncludeInPackage> | ||
<PackageDescription>Microsoft.ML.CpuMath contains optimized math routines for ML.NET.</PackageDescription> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<DefineConstants>$(DefineConstants);CPUMATH_INFRASTRUCTURE</DefineConstants> | ||
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Microsoft.ML.Core\Utilities\Contracts.cs" /> | ||
<Compile Include="..\Microsoft.ML.Core\BestFriendAttribute.cs" /> | ||
<Compile Include="..\Microsoft.ML.Core\PublicKey.cs" /> | ||
|
||
<!-- Workaround https://github.com/dotnet/project-system/issues/935 --> | ||
<None Include="**/*.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'"> | ||
<Compile Remove="CpuMathUtils.netstandard.cs" /> | ||
<Compile Remove="FactorizationMachine/FactorizationMachineInterface.netstandard.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> | ||
<Compile Remove="CpuMathUtils.netcoreapp.cs" /> | ||
<Compile Remove="SseIntrinsics.cs" /> | ||
<Compile Remove="AvxIntrinsics.cs" /> | ||
<Compile Remove="FactorizationMachine/FactorizationMachineInterface.netcoreapp.cs" /> | ||
<Compile Remove="FactorizationMachine/AvxIntrinsics.cs" /> | ||
|
||
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="build\**\*" Pack="true" PackagePath="build" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage"> | ||
<ItemGroup Condition="'$(TargetFramework)' != 'netcoreapp3.1'"> | ||
<!--Include native PDBs--> | ||
<!--The path needed to be hardcoded for this to work on our publishing CI--> | ||
<BuildOutputInPackage Condition="Exists('$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x86\nativeassets\netstandard2.0\CpuMathNative.pdb')" Include="$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x86\nativeassets\netstandard2.0\CpuMathNative.pdb" TargetPath="..\..\runtimes\win-x86\nativeassets\netstandard2.0" /> | ||
<BuildOutputInPackage Condition="Exists('$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x64\nativeassets\netstandard2.0\CpuMathNative.pdb')" Include="$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x64\nativeassets\netstandard2.0\CpuMathNative.pdb" TargetPath="..\..\runtimes\win-x64\nativeassets\netstandard2.0" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
This file contains 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 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
17 changes: 11 additions & 6 deletions
17
src/Microsoft.ML.Mkl.Redist/Microsoft.ML.Mkl.Redist.csproj
This file contains 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 |
---|---|---|
@@ -1,23 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="Pack"> | ||
<Import Project="$(RepoRoot)eng/pkg/Pack.props" /> | ||
|
||
<PropertyGroup> | ||
<Authors>Intel</Authors> | ||
<IncludeSymbols>false</IncludeSymbols> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<IncludeBuildOutput>true</IncludeBuildOutput> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
<PackageDescription>$(MSBuildProjectName) contains the MKL library redistributed as a NuGet package.</PackageDescription> | ||
<PackageTags>$(PackageTags) MLNET MKL</PackageTags> | ||
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<IncludeMLNetNotices>false</IncludeMLNetNotices> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="$(RepoRoot)eng\pkg\CommonPackage.props" Pack="true" PackagePath="build\netstandard2.0\$(MSBuildProjectName).props" /> | ||
<Content Include="$(RepoRoot)eng\pkg\_._" Pack="true" PackagePath="lib\netstandard2.0\" /> | ||
<Content Include="$(NUGET_PACKAGES)\mlnetmkldeps\$(MlNetMklDepsPackageVersion)\LICENSE.txt" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
</Project> | ||
<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage"> | ||
<ItemGroup> | ||
<!--Include native PDBs--> | ||
<BuildOutputInPackage Condition="Exists('$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x86\native\MklProxyNative.pdb')" Include="$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x86\native\MklProxyNative.pdb" TargetPath="..\..\runtimes\win-x86\native"/> | ||
<BuildOutputInPackage Condition="Exists('$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x64\native\MklProxyNative.pdb')" Include="$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x64\native\MklProxyNative.pdb" TargetPath="..\..\runtimes\win-x64\native"/> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
16 changes: 10 additions & 6 deletions
16
src/Microsoft.ML.Recommender/Microsoft.ML.Recommender.csproj
This file contains 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 |
---|---|---|
@@ -1,27 +1,31 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="$(RepoRoot)eng/pkg/Pack.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<IncludeInPackage>Microsoft.ML.Recommender</IncludeInPackage> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<PackageDescription>LIBMF, the core computation library for matrix factorization in ML.NET</PackageDescription> | ||
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Microsoft.ML\Microsoft.ML.csproj" /> | ||
|
||
<ProjectReference Include="..\Microsoft.ML.Core\Microsoft.ML.Core.csproj" > | ||
<PrivateAssets>all</PrivateAssets> | ||
</ProjectReference> | ||
<ProjectReference Include="..\Microsoft.ML.Data\Microsoft.ML.Data.csproj" > | ||
<PrivateAssets>all</PrivateAssets> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="$(RepoRoot)eng\pkg\CommonPackage.props" Pack="true" PackagePath="build\netstandard2.0\$(MSBuildProjectName).props" /> | ||
<Content Include="$(RepoRoot)src\Native\MatrixFactorizationNative\libmf\COPYRIGHT" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage"> | ||
<ItemGroup> | ||
<!--Include native PDBs--> | ||
<!--The path needed to be hardcoded for this to work on our publishing CI--> | ||
<BuildOutputInPackage Condition="Exists('$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x86\native\MatrixFactorizationNative.pdb')" Include="$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x86\native\MatrixFactorizationNative.pdb" TargetPath="..\..\runtimes\win-x86\native"/> | ||
<BuildOutputInPackage Condition="Exists('$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x64\native\MatrixFactorizationNative.pdb')" Include="$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x64\native\MatrixFactorizationNative.pdb" TargetPath="..\..\runtimes\win-x64\native"/> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
This file contains 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 |
---|---|---|
@@ -1,27 +1,69 @@ | ||
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="Pack"> | ||
<Import Project="$(RepoRoot)eng/pkg/Pack.props"/> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<!-- To include the DLL and PDBs of the underlying projects | ||
We need to remove the IncludeBuildOutput=false. This also generates a | ||
Microsoft.ML.dll in the nuget package, and a Microsoft.ML.pdb in the .snupkg | ||
But these are to be ignored, as they don't contain anything meaningful--> | ||
<!-- <IncludeBuildOutput>false</IncludeBuildOutput> --> | ||
<NoWarn>$(NoWarn);NU5127;NU5128</NoWarn> | ||
<PackageDescription>ML.NET is a cross-platform open-source machine learning framework which makes machine learning accessible to .NET developers.</PackageDescription> | ||
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="../Microsoft.ML.DataView/Microsoft.ML.DataView.csproj" /> | ||
<ProjectReference Include="../Microsoft.ML.CpuMath/Microsoft.ML.CpuMath.csproj" /> | ||
|
||
<ProjectReference Include="../Microsoft.ML.Core/Microsoft.ML.Core.csproj"> | ||
<IncludeInNuget>true</IncludeInNuget> | ||
<PrivateAssets>all</PrivateAssets> | ||
</ProjectReference> | ||
<ProjectReference Include="../Microsoft.ML.Data/Microsoft.ML.Data.csproj"> | ||
<IncludeInNuget>true</IncludeInNuget> | ||
<PrivateAssets>all</PrivateAssets> | ||
</ProjectReference> | ||
<ProjectReference Include="../Microsoft.ML.KMeansClustering/Microsoft.ML.KMeansClustering.csproj"> | ||
<IncludeInNuget>true</IncludeInNuget> | ||
<PrivateAssets>all</PrivateAssets> | ||
</ProjectReference> | ||
<ProjectReference Include="../Microsoft.ML.PCA/Microsoft.ML.PCA.csproj"> | ||
<IncludeInNuget>true</IncludeInNuget> | ||
<PrivateAssets>all</PrivateAssets> | ||
</ProjectReference> | ||
<ProjectReference Include="../Microsoft.ML.StandardTrainers/Microsoft.ML.StandardTrainers.csproj"> | ||
<IncludeInNuget>true</IncludeInNuget> | ||
<PrivateAssets>all</PrivateAssets> | ||
</ProjectReference> | ||
<ProjectReference Include="../Microsoft.ML.Transforms/Microsoft.ML.Transforms.csproj"> | ||
<IncludeInNuget>true</IncludeInNuget> | ||
<PrivateAssets>all</PrivateAssets> | ||
</ProjectReference> | ||
<NativeAssemblyReference Include="LdaNative" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonPackageVersion)" /> | ||
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="$(SystemReflectionEmitLightweightPackageVersion)" /> | ||
<PackageReference Include="System.CodeDom" Version="$(SystemCodeDomPackageVersion)" /> | ||
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" /> | ||
<PackageReference Include="System.Collections.Immutable" Version="$(SystemCollectionsImmutableVersion)" /> | ||
<PackageReference Include="System.Threading.Channels" Version="$(SystemThreadingChannelsPackageVersion)" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="$(RepoRoot)eng\pkg\CommonPackage.props" Pack="true" PackagePath="build\netstandard2.0\$(MSBuildProjectName).props" /> | ||
<Content Include="build\**\*" Pack="true" PackagePath="build" /> | ||
</ItemGroup> | ||
</Project> | ||
<PropertyGroup> | ||
<!--Include Project References output--> | ||
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage"> | ||
<ItemGroup> | ||
<!--Include DLLs of Project References--> | ||
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('IncludeInNuget','true'))"/> | ||
<!--Include PDBs of Project References--> | ||
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('IncludeInNuget','true')->Replace('.dll', '.pdb'))"/> | ||
<!--Include PDBs for Native binaries--> | ||
<!--The path needed to be hardcoded for this to work on our publishing CI--> | ||
<BuildOutputInPackage Condition="Exists('$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x86\native\LdaNative.pdb')" Include="$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x86\native\LdaNative.pdb" TargetPath="..\..\runtimes\win-x86\native"/> | ||
<BuildOutputInPackage Condition="Exists('$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x64\native\LdaNative.pdb')" Include="$(PackageAssetsPath)$(PackageIdFolderName)\runtimes\win-x64\native\LdaNative.pdb" TargetPath="..\..\runtimes\win-x64\native"/> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |