Compiler Error ASPIREPROXYENDPOINTS001
이 콘텐츠는 아직 번역되지 않았습니다.
WithEndpointProxySupportis for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
-or-
ProxySupportAnnotationis for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
Both WithEndpointProxySupport and ProxySupportAnnotation are considered experimental APIs.
Container resources use proxied endpoints by default. Adjusting this setting is experimental.
Example
Section titled “Example”The following code generates ASPIREPROXYENDPOINTS001:
var builder = DistributedApplication.CreateBuilder(args);
var redis = builder.AddRedis($"example-redis", 1234) .WithEndpointProxySupport(false);To correct this error
Section titled “To correct this error”Suppress the error with either of the following methods:
-
Set the severity of the rule in the .editorconfig file.
.editorconfig [*.{cs,vb}]dotnet_diagnostic.ASPIREPROXYENDPOINTS001.severity = noneFor more information about editor config files, see Configuration files for code analysis rules.
-
Add the following
PropertyGroupto your project file:C# project file <PropertyGroup><NoWarn>$(NoWarn);ASPIREPROXYENDPOINTS001</NoWarn></PropertyGroup> -
Suppress in code with the
#pragma warning disable ASPIREPROXYENDPOINTS001directive.