-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Support using Blazor to build .NET tools #47576
Comments
Thanks @danroth27 for picking this issue back up! I think this is a really neat way to use Blazor. If an example of this is interesting for your development, I am currently using the workaround I mentioned in dotnet/sdk#28881 in AttackSurfaceAnalyzer: https://github.com/microsoft/AttackSurfaceAnalyzer/blob/8f3ee6911ae19650e0dc433aecddef60d7cca151/Cli/AttackSurfaceAnalyzerClient.cs#L435-L471. We use this to provide a simple cross platform GUI in our published nuget: You can launch the GUI with: As for how this could be better supported. Maybe it is possible as part of the build to inject the expected relative staticwebassets path with respect to the unpacked tool binary to some value that can be accessed with reflection? BackgroundPrior to .NET 6 the Starting in .NET 6, |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
You can create .NET tools that can be installed and used from the .NET CLI. It would be useful if you could build a UI for a .NET tool using Blazor. It looks like this used to be possible at some point but then a change to static web assets made the scenario more difficult: dotnet/sdk#28881. This issue tracks improving the user experience and making this a supported scenario with proper guidance.
The text was updated successfully, but these errors were encountered: