Jinjinov / BlazorWasmProfiler

Poor Man's Blazor Wasm Profiler
MIT License
11 stars 1 forks source link

Nuget release 0.0.1.1 #1

Open Moerup opened 4 months ago

Moerup commented 4 months ago

This looks really cool!

Trying to implement it into my own Blazor Wasm project, but looks like the current 0.0.1.1 code is not released as a nuget.

Would it be possible to create a nuget with the current code? Or maybe some instruction on how to build and use it locally in another project?

Jinjinov commented 4 months ago

I am glad that you find it useful :)

I am sorry to say that 0.0.1.1 does not seem likely, because I am waiting on https://github.com/pamidur/aspect-injector/issues/222 for a very long time now.

As it is now, 0.0.1.1 is not good enough to be released as a NuGet.

You can still download the solution and include the projects in your solution. You should probably update the NuGet packages that I used, because they are old now.

You can also right click on the project in Visual Studio 2022 and choose Pack to build a NuGet locally and include that in your solution.

EDIT:

The only real difference that 0.0.1.1 would bring is that you could have your razor files without these methods and it would still work:

    protected override void OnParametersSet()
    // or
    protected override async Task OnParametersSetAsync()

    // and

    protected override void OnAfterRender(bool firstRender)
    // or
    protected override async Task OnAfterRenderAsync(bool firstRender)

But to make that work, I would need https://github.com/pamidur/aspect-injector/issues/222

For now, you have to define them, even if they are empty.