Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Aspire.Cli/Aspire.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

<!-- Set the nuget properties when building as a global tool. -->
<PropertyGroup Condition="'$(IsCliToolProject)' == 'true'">
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
<ToolCommandName>aspire</ToolCommandName>
Expand Down
4 changes: 4 additions & 0 deletions src/Aspire.Cli/Backchannel/ExtensionBackchannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,10 @@ private X509Certificate2 GetCertificate()
var serverCertificate = _configuration[KnownConfigNames.ExtensionCert];
Debug.Assert(!string.IsNullOrEmpty(serverCertificate));
var data = Convert.FromBase64String(serverCertificate);
#if NET9_0_OR_GREATER
return X509CertificateLoader.LoadCertificate(data);
#else
return new X509Certificate2(data);
#endif
}
}