Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 2019 12:11
    dotnet-maestro[bot] commented #1813
  • Jun 03 2019 12:11

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • Jun 03 2019 12:11

    dotnet-maestro[bot] on master

    Update dependencies from https:… (compare)

  • Jun 03 2019 12:11
    dotnet-maestro[bot] closed #1813
  • Jun 03 2019 12:06
    dotnet-maestro[bot] opened #1813
  • Jun 03 2019 12:06

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    Update dependencies from https:… (compare)

  • Jun 03 2019 12:05

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • May 30 2019 11:54
    jenergm commented #279
  • May 29 2019 14:59
    tmenier commented #1492
  • May 29 2019 04:58
    danroth27 updated the wiki
  • May 28 2019 14:25
    lewing commented #1807
  • May 27 2019 19:13
    matheusjulio96 commented #1652
  • May 27 2019 13:30
    springy76 commented #306
  • May 27 2019 13:13
    SQL-MisterMagoo commented #306
  • May 27 2019 13:07
    springy76 commented #306
  • May 27 2019 13:06
    springy76 commented #306
  • May 27 2019 12:24
    SQL-MisterMagoo commented #306
  • May 27 2019 12:20
    springy76 commented #306
  • May 27 2019 12:10
    dotnet-maestro[bot] commented #1812
  • May 27 2019 12:10

    dotnet-maestro[bot] on darc-master-e3474f54-f92f-4c3f-b116-ed9bdfe9754d

    (compare)

gismofx
@gismofx
Anyone know how/if its possible to to invoke js and get the return value using bUnit?
Peter Morris
@mrpmorris
@MariovanZeist - dotnet/aspnetcore#14962
Mario van Zeist
@MariovanZeist
I know, but they wanted another approach.
And frankly I kinda like their approach.
@mrpmorris But at least Steve used a bit from another PR I submitted. dotnet/aspnetcore#33751
Mario van Zeist
@MariovanZeist
AH I see they might abandon it completly..
Anon
@makotech222
upgraded my blazor wasm to p6, getting this error when starting up:
src/mono/mono/metadata/icall.c:6619
sorry, thats
/__w/1/s/src/mono/mono/metadata/icall.c:6619 <disabled>
undefined
RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.
Anon
@makotech222
seems to be caused by simply installing .net 6p6 sdk, not even from referencing the new packages
going back to p5
hmm uninstalled p6 and reinstalled p5, still same problem!
Peter Morris
@mrpmorris
Abandoning it completely is a bad idea
Anon
@makotech222
hmm not sure what fixed it, but its working now back on p5
Mario van Zeist
@MariovanZeist
I Agree. I think that they want the community to take this up, as it's not a top priority issue, and they are busy getting net 6 done
My PR Worked, but had some drawbacks, of which the main was that it couldn't facilitate async callbacks.
And it had the evenst in the NavigationManager, but I think they preferred to put it somewhere in the router
But the Api design was never fleshed out.
SQL-MisterMagoo
@SQL-MisterMagoo

@optimizasean I think I found a way to get your navigationmanager based policy to work - maybe, but only by using RequireAssertion.

Your comment about NavigationManager being "stuck" was, I think, slightly off - it's the RequireClaim that gets "stuck" - it is only evaluated at startup, so only returns resource Ids for the base url (or whatever url you first load)

RequireAssertion uses a Func that is called every time the policy is checked, so in there you can happily reference the current URL and check the claims.

This was just a quick test to see if it works - and it does - not saying that checking claims that way is correct, just "does it work as an idea"

Program.cs

NavigationManager navMan = default;
builder.Services.AddAuthorizationCore(options =>
{
    options.AddPolicy(Policies.CanAccessResource, builder=>Policies.CanAccessResourcePolicy(builder,navMan));
});
var app = builder.Build();
navMan = app.Services.GetRequiredService<NavigationManager>();
await app.RunAsync();

Policies.cs

public static AuthorizationPolicy CanAccessResourcePolicy(AuthorizationPolicyBuilder builder, NavigationManager navMan)
    => builder.RequireAssertion(context => {
        var resourceIds = GetResourceValues(new List<int>() { 2, 3, 5, 6 }, navMan);
        return context.User.HasClaim(claim =>
            claim.Type == "ResourceName" && resourceIds.Contains(claim.Value)
            );
        }).Build();
5 replies
AlbertoPa @AlbertoPa tries to make a blazor desktop app
Alberto Passalacqua
@AlbertoPa
only 20 GB of stuff needed to start :laughing:
:cat:
Alberto Passalacqua
@AlbertoPa
I want to use Blazor "desktop" to make a cross-platform UI (no hybrid, just Blazor). The UI should also run on Linux, correct? If so, what is the workload to use?
Alberto Passalacqua
@AlbertoPa
Alberto Passalacqua
@AlbertoPa
"scoped out of Net 6" -> dotnet/aspnetcore#27234
AlbertoPa @AlbertoPa scopes out the preview (again) :P
Alberto Passalacqua
@AlbertoPa
meh why did I even bother commenting on an issue?
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
Well, for starters, Linux isn’t a supported platform for MAUI
Patrizio Ricciardello
@PatrizioR
does anybody made .Net 6 Preview 6 MAUI Blazor Template working (just plain project, then hit F5 and run)? Preview 5 worked well, preview 6 does not start (WinUI Project not startable, publish file not startable. Edge Web View 2 installed)
Anon
@makotech222
@AlbertoPa try checking out the https://github.com/ultralight-ux/Ultralight library. I think i saw someone host a blazor environment on it
i'd love for this functionality to be native in .net, though
but its just not ready yet
This is one of the big issues with C# 8 NRTs and… it just got postponed to 11
Jeremy Knaggs
@JeremyKnaggs

does anybody made .Net 6 Preview 6 MAUI Blazor Template working (just plain project, then hit F5 and run)? Preview 5 worked well, preview 6 does not start (WinUI Project not startable, publish file not startable. Edge Web View 2 installed)

Funny, i could never got it to work in Preview 5 but it works for me in Preview 6. You are using VS 2022, right?

I think this is a different issue from @PatrizioR , does anyone know how to run a blazor maui app from the publish folder? I've tried double clicking the .exe and nothing happens. I can get the app to run from VS using the debug button or F5..
Alberto Passalacqua
@AlbertoPa
@chucker23n:matrix.org the messaging has been unclear to me. When they announced MAUI, Linux was out. However, later the message has been that Blazor apps will be able to run on Win/Mac/Lin, and the same is discussed in two issues (with Linux support now moved out of Net 6). The lack of support for Linux has been a headache, and really, even they have several apps that do not use their tech because they need to really be cross-platform, so credibility-wise, it does not look great.
2 replies
@makotech222 thanks, I'll take a look :-)
Simon Ziegler
@simonziegler:matrix.org
[m]
Hi All. I'm doing some source gen on a view model and at a certain point want to place all of an object's properties into an Excel file. This is going OK, however I've generated a List<string> to pass the values to a function that uses EPPlus to build the spreadsheet. The biggest issue is that dates get formatted as text and so don't benefit from the user's culture (they're always "mm/dd/yyyy"). This is clumsy. How do a build a List of primitives instead, so I can ensure correct cell by cell population?
Or should I alternatively build a list of Tuple<Type, object> from sourcegen?
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
Does the type help you?
If not, just pass objects
Simon Ziegler
@simonziegler:matrix.org
[m]
I need to know the type in order to enter the data in the correct manner. Dates in particular need to be Excel-ized.
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
You could make a generic method where you switch on the type. But while I haven’t tried EPPlus myself, it seems you’d just set the Value property either way
Simon Ziegler
@simonziegler:matrix.org
[m]
Tx
psyndar
@psyndar:nltrix.net
[m]
If you pass date as yyyy-mm-dd, doesnt excel convert to date?
Alberto Passalacqua
@AlbertoPa
Would code with Parallel.For run (even though not in parallel) in Blazor WASM? :-?
Ivan Josipovic
@IvanJosipovic
I think i read they fixed parallel for in wasm