Skip to content

Commit 2b4409f

Browse files
authored
Add Spectre.Console (#1287)
1 parent b3dd2a6 commit 2b4409f

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@
2828
[submodule "vs-solutionpersistence"]
2929
path = src/externalPackages/src/vs-solutionpersistence
3030
url = https://github.com/microsoft/vs-solutionpersistence.git
31+
[submodule "spectre-console"]
32+
path = src/externalPackages/src/spectre-console
33+
url = https://github.com/spectreconsole/spectre.console
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 152b8a363213133fc3ec87e3abd6595ac98f0b57 Mon Sep 17 00:00:00 2001
2+
From: Jan Jones <[email protected]>
3+
Date: Mon, 7 Jul 2025 11:04:42 +0000
4+
Subject: [PATCH] Remove PolySharp
5+
6+
---
7+
src/Spectre.Console/Spectre.Console.csproj | 4 ----
8+
1 file changed, 4 deletions(-)
9+
10+
diff --git a/src/Spectre.Console/Spectre.Console.csproj b/src/Spectre.Console/Spectre.Console.csproj
11+
index bb56ec6..ddfa90e 100644
12+
--- a/src/Spectre.Console/Spectre.Console.csproj
13+
+++ b/src/Spectre.Console/Spectre.Console.csproj
14+
@@ -22,10 +22,6 @@
15+
<PackageReference Include="Wcwidth.Sources">
16+
<PrivateAssets>all</PrivateAssets>
17+
</PackageReference>
18+
- <PackageReference Include="PolySharp">
19+
- <PrivateAssets>all</PrivateAssets>
20+
- <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
21+
- </PackageReference>
22+
</ItemGroup>
23+
24+
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
25+
--
26+
2.34.1
27+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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>
Submodule spectre-console added at f32f80d

0 commit comments

Comments
 (0)