Compiler Error ASPIRE006
Version introduced: 8.2.2
C# — AppHost.cs
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.
Example
Section titled “Example”The following code generates ASPIRE006:
var bbsContainer = builder.AddContainer("bbs--server", "coldwall/mystic") .WithEndpoint(19991, 23);To correct this error
Section titled “To correct this error”Use a valid name. For more information, see Resource naming conventions.