|
| 1 | +<Project Sdk="Microsoft.Build.NoTargets"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <PackagesOutput>$(ProjectDirectory)src/Spectre.Console/bin/$(Configuration)/</PackagesOutput> |
| 5 | + <GlobalJsonFile>$(ProjectDirectory)global.json</GlobalJsonFile> |
| 6 | + <CustomRepoBuild>true</CustomRepoBuild> |
| 7 | + </PropertyGroup> |
| 8 | + |
| 9 | + <Target Name="CustomRepoBuild"> |
| 10 | + <PropertyGroup> |
| 11 | + <BuildCommandArgs>$(ProjectDirectory)src/Spectre.Console/Spectre.Console.csproj</BuildCommandArgs> |
| 12 | + <BuildCommandArgs>$(BuildCommandArgs) /p:Configuration=$(Configuration)</BuildCommandArgs> |
| 13 | + <BuildCommandArgs>$(BuildCommandArgs) /v:$(LogVerbosity)</BuildCommandArgs> |
| 14 | + <BuildCommandArgs>$(BuildCommandArgs) $(RedirectRepoOutputToLog)</BuildCommandArgs> |
| 15 | + <BuildCommandArgs>$(BuildCommandArgs) /p:Version=$(SpectreConsoleReleaseVersion)</BuildCommandArgs> |
| 16 | + <BuildCommandArgs>$(BuildCommandArgs) /p:TargetFrameworks=$(NetCurrent)</BuildCommandArgs> |
| 17 | + <BuildCommandArgs>$(BuildCommandArgs) /p:UseBuildTimeTools=false</BuildCommandArgs> |
| 18 | + <BuildCommandArgs>$(BuildCommandArgs) /p:IsAotCompatible=false</BuildCommandArgs> |
| 19 | + </PropertyGroup> |
| 20 | + |
| 21 | + <Exec Command="$(DotNetTool) restore /bl:$(ArtifactsLogRepoDir)restore.binlog $(BuildCommandArgs)" |
| 22 | + EnvironmentVariables="@(EnvironmentVariables)" |
| 23 | + WorkingDirectory="$(ProjectDirectory)" |
| 24 | + IgnoreStandardErrorWarningFormat="true" /> |
| 25 | + |
| 26 | + <Exec Command="$(DotNetTool) build /bl:$(ArtifactsLogRepoDir)build.binlog $(BuildCommandArgs)" |
| 27 | + EnvironmentVariables="@(EnvironmentVariables)" |
| 28 | + WorkingDirectory="$(ProjectDirectory)" |
| 29 | + IgnoreStandardErrorWarningFormat="true" /> |
| 30 | + |
| 31 | + <Exec Command="$(DotNetTool) pack /bl:$(ArtifactsLogRepoDir)pack.binlog $(BuildCommandArgs)" |
| 32 | + EnvironmentVariables="@(EnvironmentVariables)" |
| 33 | + WorkingDirectory="$(ProjectDirectory)" |
| 34 | + IgnoreStandardErrorWarningFormat="true" /> |
| 35 | + </Target> |
| 36 | + |
| 37 | +</Project> |
0 commit comments