Versatile OpenID Connect stack for ASP.NET Core and Microsoft.Owin (compatible with ASP.NET 4.6.1)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
2.7 KiB

<Project>
<ItemGroup>
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="5.10.0" IsImplicitlyDefined="true" />
</ItemGroup>
<!--
Install the .NET workloads immediately after the .NET tooling has been installed by Arcade.
Note: the workload versions are pinned in the WorkloadRollback.json file.
-->
<Target Name="RestoreWorkloads" AfterTargets="InstallDotNetCore" Condition=" '$(RestoreDotNetWorkloads)' == 'true' ">
<Message Text="Installing the .NET workloads required to build the solution..." />
<Exec Command='"$(DotNetTool)" workload update --from-rollback-file WorkloadRollback.json'
WorkingDirectory="$(RepoRoot)" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
<Exec Command='"$(DotNetTool)" workload install android --skip-manifest-update'
WorkingDirectory="$(RepoRoot)" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
<Exec Command='"$(DotNetTool)" workload install ios --skip-manifest-update'
WorkingDirectory="$(RepoRoot)" ConsoleToMSBuild="true"
Condition=" $([System.OperatingSystem]::IsMacOS()) Or $([System.OperatingSystem]::IsWindows()) ">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
<Exec Command='"$(DotNetTool)" workload install maccatalyst --skip-manifest-update'
WorkingDirectory="$(RepoRoot)" ConsoleToMSBuild="true"
Condition=" $([System.OperatingSystem]::IsMacOS()) Or $([System.OperatingSystem]::IsWindows()) ">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
<Exec Command='"$(DotNetTool)" workload install macos --skip-manifest-update'
WorkingDirectory="$(RepoRoot)" ConsoleToMSBuild="true"
Condition=" $([System.OperatingSystem]::IsMacOS()) Or $([System.OperatingSystem]::IsWindows()) ">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
<Exec Command='"$(DotNetTool)" workload install maui-maccatalyst --skip-manifest-update'
WorkingDirectory="$(RepoRoot)" ConsoleToMSBuild="true"
Condition=" $([System.OperatingSystem]::IsMacOS()) Or $([System.OperatingSystem]::IsWindows()) ">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
<Exec Command='"$(DotNetTool)" workload install maui-ios --skip-manifest-update'
WorkingDirectory="$(RepoRoot)" ConsoleToMSBuild="true"
Condition=" $([System.OperatingSystem]::IsMacOS()) Or $([System.OperatingSystem]::IsWindows()) ">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
</Target>
</Project>