This is required by the newer arcade builds.
We can simplify our scripts since we no longer need the special publishwitharcade.proj.
Added copyright and license to the .nuspecs since the new arcade validation now
verifies this against a set of Microsoft policies.
We also need to make the .nupkg pre-release by appending the -preview suffix as stable versions are not permitted in non-stable feeds.
Commit migrated from https://github.com/mono/mono/commit/
6bc988b0870b7d4d56a73c13b45fe5158f81c64d
+++ /dev/null
-<Project DefaultTargets="PublishPackages">
-
- <!-- TODO: move properties imported from here into a common props file -->
- <!-- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> -->
-
- <!-- Use an explicit SDK import so that arcade uses the build
- configuration computed in dir.common.props. -->
- <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
-
- <Import Project="$(MSBuildThisFileDirectory)\..\.packages\microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" />
-
- <PropertyGroup>
- <!-- Set the TargetFramework just to make the SDK happy -->
- <TargetFramework>net462</TargetFramework>
- </PropertyGroup>
-
- <Target Name="PublishPackages">
-
- <ItemGroup>
- <PackagesToPublish Include="$(MSBuildThisFileDirectory)\..\artifacts\*.nupkg" />
- </ItemGroup>
-
- <ItemGroup>
- <ItemsToPushToBlobFeed Include="@(PackagesToPublish)" />
- </ItemGroup>
-
- <Error Condition=" '$(AzureFeedUrl)' == '' " Text="AzureFeedUrl must be set" />
- <Error Condition=" '$(AzureAccountKey)' == '' " Text="AzureAccountKey must be set" />
- <Error Condition=" '$(BUILD_REPOSITORY_URI)' == '' " Text="BUILD_REPOSITORY_URI must be set" />
- <Error Condition=" '$(BUILD_SOURCEBRANCH)' == '' " Text="BUILD_SOURCEBRANCH must be set" />
- <Error Condition=" '$(BUILD_BUILDNUMBER)' == '' " Text="BUILD_BUILDNUMBER must be set" />
- <Error Condition=" '$(BUILD_SOURCEVERSION)' == '' " Text="BUILD_SOURCEVERSION must be set" />
-
- <PropertyGroup>
- <AssetManifestFilePath>$(ArtifactsLogDir)AssetManifest\$(AssetManifest)</AssetManifestFilePath>
- </PropertyGroup>
-
- <Message Importance="Low" Text="BUILD_REPOSITORY_URI: $(BUILD_REPOSITORY_URI)" />
-
- <PushToBlobFeed ExpectedFeedUrl="$(AzureFeedUrl)"
- AccountKey="$(AzureAccountKey)"
- ItemsToPush="@(ItemsToPushToBlobFeed)"
- ManifestBuildData="Location=$(AzureFeedUrl)"
- ManifestRepoUri="$(BUILD_REPOSITORY_URI)"
- ManifestBranch="$(BUILD_SOURCEBRANCH)"
- ManifestBuildId="$(BUILD_BUILDNUMBER)"
- ManifestCommit="$(BUILD_SOURCEVERSION)"
- AssetManifestPath="$(AssetManifestFilePath)" />
- </Target>
-
-</Project>
# used to calculate exact version number for generating nupkg
BLAME = $(shell git blame ../configure.ac | grep AC_INIT | cut -f1 -d' ')
-VERSTUB = .$(shell git rev-list --count $(BLAME)..HEAD)
+VERSTUB = .$(shell git rev-list --count $(BLAME)..HEAD)-preview
all: bcl
<description>Internal implementation package not meant for direct consumption. Please do not reference directly.
The Mono runtime, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes.</description>
<authors>Microsoft</authors>
+ <copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
<projectUrl>https://www.mono-project.com/</projectUrl>
+ <licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
<dependencies>
<dependency id="runtime.linux-x64.Microsoft.NETCore.Runtime.MonoLLVM" version="$VERSION$" />
</dependencies>
<description>Internal implementation package not meant for direct consumption. Please do not reference directly.
The Mono runtime, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes.</description>
<authors>Microsoft</authors>
+ <copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
<projectUrl>https://www.mono-project.com/</projectUrl>
+ <licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
<dependencies>
<dependency id="runtime.win-x64.Microsoft.NETCore.Runtime.Mono" version="$VERSION$" />
<dependency id="runtime.osx-x64.Microsoft.NETCore.Runtime.Mono" version="$VERSION$" />
<description>Internal implementation package not meant for direct consumption. Please do not reference directly.
The Mono runtime, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes.</description>
<authors>Microsoft</authors>
+ <copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
<projectUrl>https://www.mono-project.com/</projectUrl>
+ <licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
</metadata>
<files>
<file src="System.Private.CoreLib\bin\$COREARCH$\System.Private.CoreLib.dll" target="runtimes\$RID$\native" />
<description>Internal implementation package not meant for direct consumption. Please do not reference directly.
The Mono runtime, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes.</description>
<authors>Microsoft</authors>
+ <copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
<projectUrl>https://www.mono-project.com/</projectUrl>
+ <licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
</metadata>
<files>
<file src="System.Private.CoreLib\bin\$COREARCH$\System.Private.CoreLib.dll" target="runtimes\$RID$\native" />