An example of this is when using .RequiresParam(nameof(IAzureArtifactStorage.AzureArtifactStorageConnectionString)) on a target without actually setting IAzureArtifactStorage as an interface of the build.
This can cause the BuildResolver to lookup AzureArtifactStorageConnectionString in the paramModels map and run into KeyNotFoundException.
The fix should be something along the lines of:
Print a more useful indication of why the error happens when we encounter it and exit the build (instead of just exiting due to KeyNotFoundException
An example of this is when using
.RequiresParam(nameof(IAzureArtifactStorage.AzureArtifactStorageConnectionString))on a target without actually settingIAzureArtifactStorageas an interface of the build.This can cause the BuildResolver to lookup
AzureArtifactStorageConnectionStringin theparamModelsmap and run intoKeyNotFoundException.The fix should be something along the lines of:
Print a more useful indication of why the error happens when we encounter it and exit the build (instead of just exiting due to
KeyNotFoundException