Salta ai contenuti

Compiler Error ASPIRE006

Questi contenuti non sono ancora disponibili nella tua lingua.

Version introduced: 8.2.2

The resource name ‘NAME’ is invalid: CONSTRAINT

This diagnostic error is reported when a resource’s name is invalid, such as a name with consecutive hyphen (-) characters.

This error shouldn’t be suppressed, as invalid model names throw an exception at runtime.

The following code generates ASPIRE006:

C# — AppHost.cs
var bbsContainer = builder.AddContainer("bbs--server", "coldwall/mystic")
.WithEndpoint(19991, 23);

Use a valid name. For more information, see Resource naming conventions.

Domande & RisposteCollaboraCommunityDiscuteGuarda