<Dependencies>
<ProductDependencies></ProductDependencies>
<ToolsetDependencies>
- <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.18616.5">
+ <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.18619.4">
<Uri>https://github.com/dotnet/arcade</Uri>
- <Sha>8694eb83a2c13057a8da3c80f829363de4dc8c9c</Sha>
+ <Sha>7d79a676328f2bdd8b14bfee7fac6dad23123fad</Sha>
</Dependency>
- <Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="1.0.0-beta.18616.5">
+ <Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="1.0.0-beta.18619.4">
<Uri>https://github.com/dotnet/arcade</Uri>
- <Sha>8694eb83a2c13057a8da3c80f829363de4dc8c9c</Sha>
+ <Sha>7d79a676328f2bdd8b14bfee7fac6dad23123fad</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
--- /dev/null
+<!--
+ This MSBuild file is intended to be used as the body of the default
+ publishing release pipeline. The release pipeline will use this file
+ to invoke the PushToStaticFeed task that will read the build asset
+ manifest and publish the assets described in the manifest to
+ informed target feeds.
+-->
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <TargetFramework>netcoreapp2.1</TargetFramework>
+ </PropertyGroup>
+
+ <Import Project="$(MSBuildThisFileDirectory)MicrosoftDotNetBuildTasksFeedVersion.props" />
+ <Import Project="$(NuGetPackageRoot)microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" />
+
+ <Target Name="PublishToFeed">
+ <Error Condition="'$(TargetStaticFeed)' == ''" Text="TargetStaticFeed: Target feed for publishing assets wasn't provided." />
+ <Error Condition="'$(AccountKeyToStaticFeed)' == ''" Text="AccountKeyToStaticFeed: Account key for target feed wasn't provided." />
+ <Error Condition="'$(FullPathAssetManifest)' == ''" Text="Full path to asset manifest wasn't provided." />
+ <Error Condition="'$(FullPathBlobBasePath)' == '' AND '$(FullPathPackageBasePath)' == ''" Text="A valid full path to BlobBasePath of PackageBasePath is required." />
+
+ <PushArtifactsInManifestToFeed
+ ExpectedFeedUrl="$(TargetStaticFeed)"
+ AccountKey="$(AccountKeyToStaticFeed)"
+ Overwrite="$(OverrideAssetsWithSameName)"
+ PassIfExistingItemIdentical="$(PassIfExistingItemIdentical)"
+ MaxClients="$(MaxParallelUploads)"
+ UploadTimeoutInMinutes="$(MaxUploadTimeoutInMinutes)"
+ AssetManifestPath="$(FullPathAssetManifest)"
+ BlobAssetsBasePath="$(FullPathBlobBasePath)"
+ PackageAssetsBasePath="$(FullPathPackageBasePath)" />
+ </Target>
+
+ <ItemGroup>
+ <PackageReference Include="Microsoft.DotNet.Build.Tasks.Feed" Version="$(MicrosoftDotNetBuildTasksFeedVersion)" />
+ </ItemGroup>
+</Project>
[CmdletBinding(PositionalBinding=$false)]
Param(
[string][Alias('c')]$configuration = "Debug",
- [string] $projects = "",
+ [string] $projects,
[string][Alias('v')]$verbosity = "minimal",
[string] $msbuildEngine = $null,
[bool] $warnAsError = $true,
InitializeCustomToolset
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" }
+ if ($projects) {
+ # Re-assign properties to a new variable because PowerShell doesn't let us append properties directly for unclear reasons.
+ # Explicitly set the type as string[] because otherwise PowerShell would make this char[] if $properties is empty.
+ [string[]] $msbuildArgs = $properties
+ $msbuildArgs += "/p:Projects=$projects"
+ $properties = $msbuildArgs
+ }
+
MSBuild $toolsetBuildProj `
$bl `
/p:Configuration=$configuration `
- /p:Projects=$projects `
/p:RepoRoot=$RepoRoot `
/p:Restore=$restore `
/p:DeployDeps=$deployDeps `
exit 0
}
- if ($projects -eq "") {
- $projects = Join-Path $RepoRoot "*.sln"
- }
-
if ($ci) {
$binaryLog = $true
$nodeReuse = $false
InitializeToolset
InitializeCustomToolset
- if [[ -z $projects ]]; then
- projects="$repo_root/*.sln"
+ if [[ ! -z "$projects" ]]; then
+ properties="$properties /p:Projects=$projects"
fi
local bl=""
MSBuild $_InitializeToolset \
$bl \
/p:Configuration=$configuration \
- /p:Projects="$projects" \
/p:RepoRoot="$repo_root" \
/p:Restore=$restore \
/p:Build=$build \
"python": "2.7.15"
},
"msbuild-sdks": {
- "Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.18616.5",
- "Microsoft.DotNet.Helix.Sdk": "1.0.0-beta.18616.5"
+ "Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.18619.4",
+ "Microsoft.DotNet.Helix.Sdk": "1.0.0-beta.18619.4"
}
}