-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot realize the function of hiding parameters #4102
Comments
There is another problem,I try to control a parameter disabled, similar to Docker selece windows/linux.it`s not work |
There is no generic feature allowing to hide specific parameters based on conditions in Visual Studio. In order to do so:
Those templates (having same When template is run by Visual Studio, first it offers framework selection, and then depending on framework choice the parameters from corresponding individual template will loaded. This allows you to "hide" the parameters not applicable for given template. When template is run in CLI, similarly the user is specifying framework using the option, so correct template will be derived and run. Let me know if you have any additional questions. |
@MayueCif not sure if I understand your question, it would be good if you can provide more information and preferably in a separate issue if the problem is different from the one described initially. Thank you |
I hope to achieve a scenario similar to that when docker is not enabled, docker os cannot be selected, and when docker is enabled, docker os can be selected |
@zhenlei520 thank you for clarification. Unfortunately, this is not possible - we don't have a way to specify that parameter A depends on parameter B. |
Similar request: #2173 |
Okay, that’s really a pity, it would be great if this function can be realized |
Describe the bug:
I hope that the MinimalAPI option appears when the Framework is 6.0, and the MinimalAPI option is hidden when the Framework is 5.0.
It’s just that the parameters are defined by me. For example, there are two parameters A and B, but there is a dependency between parameters A and B. B can be selected only when A is enabled. If A is disabled, B cannot be selected. , This scene cannot be realized on Viaual Studio
Further technical details
.NET SDK (reflecting any global.json):
Version: 6.0.100
The text was updated successfully, but these errors were encountered: