diff options
author | Christopher Costa <chcosta@microsoft.com> | 2016-01-28 22:24:02 +0300 |
---|---|---|
committer | Christopher Costa <chcosta@microsoft.com> | 2016-01-28 22:24:02 +0300 |
commit | 3cd41b1c5c8349585f0c29d813317219a9016abf (patch) | |
tree | cfd420f3c83392c89773d1b2b62d6ceb36a15439 /Packaging.props | |
parent | e0e94b1d4ac854b0dd1ef3725d8492bcfa0229c9 (diff) |
Add 3rd party notice and eula to packages.
[tfs-changeset: 1569920]
Diffstat (limited to 'Packaging.props')
-rw-r--r-- | Packaging.props | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Packaging.props b/Packaging.props new file mode 100644 index 0000000000..2fbadfe3d0 --- /dev/null +++ b/Packaging.props @@ -0,0 +1,37 @@ +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <PreReleaseLabel>rc3</PreReleaseLabel> + <PackageDescriptionFile>$(ProjectDir)pkg/descriptions.json</PackageDescriptionFile> + <PackageLicenseFile>$(ProjectDir)pkg/dotnet_library_license.txt</PackageLicenseFile> + <PackageThirdPartyNoticesFile>$(ProjectDir)pkg/ThirdPartyNotices.txt</PackageThirdPartyNoticesFile> + <RuntimeIdGraphDefinitionFile>$(ProjectDir)pkg/Microsoft.NETCore.Platforms/runtime.json</RuntimeIdGraphDefinitionFile> + <!-- Add a condition for this when we are able to run on .NET Core --> + <PackagingTaskDir>$(ToolsDir)net45/</PackagingTaskDir> + <BuildNumberMajor Condition="'$(BuildNumberMajor)' == ''">$(RevisionNumber)</BuildNumberMajor> + <!-- defined in buildtools packaging.targets, but we need this before targets are imported --> + <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform> + <PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform> + <NativePackagePath>$(MSBuildThisFileDirectory)src/Native/pkg</NativePackagePath> + </PropertyGroup> + + <PropertyGroup Condition="'$(OsEnvironment)'=='Unix'"> + <!-- + Building packages fails for two reasons. + First, nuget doesn't like the paths in the nuspec having backslashes as directory separators. + Second, we aren't yet building pdbs, which the nuspecs specify. + --> + <SkipBuildPackages>true</SkipBuildPackages> + </PropertyGroup> + + <!-- Add required legal files to packages --> + <ItemGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'"> + <File Condition="Exists('$(PackageLicenseFile)')" + Include="$(PackageLicenseFile)" > + <SkipPackageFileCheck>true</SkipPackageFileCheck> + </File> + <File Condition="Exists('$(PackageThirdPartyNoticesFile)')" + Include="$(PackageThirdPartyNoticesFile)" > + <SkipPackageFileCheck>true</SkipPackageFileCheck> + </File> + </ItemGroup> +</Project>
\ No newline at end of file |