diff --git a/src/Aspire.Hosting.Garnet/Aspire.Hosting.Garnet.csproj b/src/Aspire.Hosting.Garnet/Aspire.Hosting.Garnet.csproj index 3cddd2f16e5..323d0da1039 100644 --- a/src/Aspire.Hosting.Garnet/Aspire.Hosting.Garnet.csproj +++ b/src/Aspire.Hosting.Garnet/Aspire.Hosting.Garnet.csproj @@ -22,4 +22,4 @@ - \ No newline at end of file + diff --git a/src/Aspire.Hosting.Garnet/GarnetResource.cs b/src/Aspire.Hosting.Garnet/GarnetResource.cs index 6084833e98e..46e651e1400 100644 --- a/src/Aspire.Hosting.Garnet/GarnetResource.cs +++ b/src/Aspire.Hosting.Garnet/GarnetResource.cs @@ -21,7 +21,7 @@ public class GarnetResource(string name) : ContainerResource(name), IResourceWit /// /// Gets the connection string expression for the Garnet server. /// - public ReferenceExpression ConnectionStringExpression => + public ReferenceExpression ConnectionStringExpression => ReferenceExpression.Create( $"{PrimaryEndpoint.Property(EndpointProperty.Host)}:{PrimaryEndpoint.Property(EndpointProperty.Port)}"); } diff --git a/tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj b/tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj index e42422c60a9..936ec37af05 100644 --- a/tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj +++ b/tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj @@ -47,7 +47,7 @@ - + @@ -74,4 +74,4 @@ - + \ No newline at end of file