42 lines
1.9 KiB
XML
42 lines
1.9 KiB
XML
<Project>
|
|
<Import Project="FixPackageOutputDirs.targets" />
|
|
|
|
<UsingTask
|
|
TaskName="PullRequestSubmitter.PullRequestTask"
|
|
AssemblyFile="$(MSBuildThisFileDirectory)..\tools\PullRequestSubmitter\bin\Debug\netcoreapp2.0\PullRequestSubmitter.dll" />
|
|
|
|
<Target Name="PushNuGetPackages">
|
|
<ItemGroup>
|
|
<PackagesToPublish Include="$(BuildDir)*.nupkg" />
|
|
</ItemGroup>
|
|
<PushNuGetPackages Packages="@(PackagesToPublish)" Feed="$(NuGetPublishFeed)" ApiKey="$(ApiKey)" />
|
|
</Target>
|
|
|
|
<Target Name="SendPullRequestToCliRepo">
|
|
<PropertyGroup>
|
|
<!-- Read the ASP.NET Core package version from a .deps.json file, because
|
|
the CI server doesn't otherwise have that information to supply -->
|
|
<DepsFilePath>$(MSBuildThisFileDirectory)..\tools\DependencyUpdater\bin\Debug\netstandard2.0\DependencyUpdater.deps.json</DepsFilePath>
|
|
<DepsFileContent>$([System.IO.File]::ReadAllText('$(DepsFilePath)'))</DepsFileContent>
|
|
<AspNetCoreRuntimePackageVersion>$([System.Text.RegularExpressions.Regex]::Match($(DepsFileContent), `\s+"Microsoft.AspNetCore": "([^"]+)"`).Groups[1].Value)</AspNetCoreRuntimePackageVersion>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PropertyUpdate Include="AspNetCoreRuntimePackageFolderName" NewValue="$(AspNetCoreRuntimePackageFolderName)" />
|
|
<PropertyUpdate Include="AspNetCoreRuntimePackageVersion" NewValue="$(AspNetCoreRuntimePackageVersion)" />
|
|
</ItemGroup>
|
|
|
|
<PullRequestTask
|
|
ApiToken="$(GitHubApiToken)"
|
|
UpstreamRepoOwner="$(UpstreamRepoOwner)"
|
|
UpstreamRepoName="$(UpstreamRepoName)"
|
|
UpstreamRepoBranch="$(UpstreamRepoBranch)"
|
|
ForkRepoName="$(ForkRepoName)"
|
|
ForkRepoBranch="$(ForkRepoBranch)"
|
|
Message="Update ASP.NET Core to $(AspNetCoreRuntimePackageVersion)"
|
|
FileToUpdate="build/DependencyVersions.props"
|
|
PropertyUpdates="@(PropertyUpdate)" />
|
|
</Target>
|
|
|
|
</Project>
|