diff --git a/DevProxy.Hosting/DevProxy.Hosting.csproj b/DevProxy.Hosting/DevProxy.Hosting.csproj index 7c95ba1..3e9c85a 100644 --- a/DevProxy.Hosting/DevProxy.Hosting.csproj +++ b/DevProxy.Hosting/DevProxy.Hosting.csproj @@ -1,10 +1,10 @@ - net9.0;net8.0 + net10.0;net9.0;net8.0 enable enable - 0.2.2 + 0.3.0 Dev Proxy Dev Proxy .NET Aspire extensions .NET Aspire extensions for adding Dev Proxy as a resource to your .NET Aspire application. @@ -25,7 +25,7 @@ - + diff --git a/DevProxy.Hosting/DevProxyResourceBuilderExtensions.cs b/DevProxy.Hosting/DevProxyResourceBuilderExtensions.cs index 2fc4d74..dcef700 100644 --- a/DevProxy.Hosting/DevProxyResourceBuilderExtensions.cs +++ b/DevProxy.Hosting/DevProxyResourceBuilderExtensions.cs @@ -18,7 +18,7 @@ public static class DevProxyResourceBuilderExtensions /// A resource builder for the DevProxy executable resource. public static IResourceBuilder AddDevProxyExecutable( this IDistributedApplicationBuilder builder, - string name) + [ResourceName] string name) { var resource = new DevProxyExecutableResource(name); @@ -68,7 +68,7 @@ public static IResourceBuilder WithUrlsToWatch( /// A resource builder for the DevProxy container resource. public static IResourceBuilder AddDevProxyContainer( this IDistributedApplicationBuilder builder, - string name) + [ResourceName] string name) { var resource = new DevProxyContainerResource(name); diff --git a/README.md b/README.md index 102ee7e..3aaf91a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Dev Proxy .NET Aspire extensions +[![NuGet Version](https://img.shields.io/nuget/v/DevProxy.Hosting)](https://www.nuget.org/packages/DevProxy.Hosting) +[![NuGet Downloads](https://img.shields.io/nuget/dt/DevProxy.Hosting)](https://www.nuget.org/packages/DevProxy.Hosting) + Use Dev Proxy extensions for .NET Aspire to seamlessly integrate Dev Proxy into your distributed applications. Use Dev Proxy to: - Verify how your distributed app handles API errors, both from your own services and third-party APIs