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)

Haytam Zanid
@zHaytam
I also have some structs in my library that could be turned into record struct
So it all depends
SQL-MisterMagoo
@SQL-MisterMagoo
Sure, ok - all things can be long or short lived, just wondering what criteria would now point towards each implementation of record or record struct
Opinion is fine
Documentation is finer :)
Haytam Zanid
@zHaytam
It's the same criterias when using classes vs structs
You just gain immutability
Erwin Kuhn
@erwinkn
In general, I think you even want a readonly record struct, because record structs are not flagged as readonly be default for some compatibility reasons I forget
Alberto Passalacqua
@AlbertoPa
@MariovanZeist thanks :-)
Alberto Passalacqua
@AlbertoPa
93 more null-related warnings from victory :laughing:
this has take a "little" longer than a boring Sunday :P
Jorge Candeias
@JorgeCandeias
Hi everyone. I'm attempting to package a simple blazor server website to run as a fully contained self-hosted kestrel website that can be added to any host builder. Same spirit as the Orleans Dashboard. The project embeds all the static assets in wwwroot (via an EmbeddedResource task in the .csproj) and they get served by a custom middleware. This works without issues for the known assets in the project. However I'm facing a challenge embedding the .css file that blazor generates for the isolated css styles. This file gets dropped in the obj folder upon build. Does anyone know how I can embed this file into the assembly as well?
AlbertoPa @AlbertoPa thinks C# 12 will come out saying "remember all those ? and ! you added? Now remove them all!" :laughing:
Sören Nils Kuklau
@chucker23n:matrix.org
[m]
!!!???!!
1 reply
‽ ‽
Alberto Passalacqua
@AlbertoPa
it adds a lot of fun to using EF with navigation properties :P
time for :coffee:
Peter Morris
@mrpmorris
@AlbertoPa I only have navigational properties within aggregates
In debug mode I have lazy-loading throw an exception. In release mode I have lazy-load enabled just in case we missed something during debug
Haytam Zanid
@zHaytam

Hi everyone. I'm attempting to package a simple blazor server website to run as a fully contained self-hosted kestrel website that can be added to any host builder. Same spirit as the Orleans Dashboard. The project embeds all the static assets in wwwroot (via an EmbeddedResource task in the .csproj) and they get served by a custom middleware. This works without issues for the known assets in the project. However I'm facing a challenge embedding the .css file that blazor generates for the isolated css styles. This file gets dropped in the obj folder upon build. Does anyone know how I can embed this file into the assembly as well?

By package you mean NuGet?

Jorge Candeias
@JorgeCandeias
@zHaytam It will eventually be a nuget package, but the issue is before that. I want this particular assembly to work without any site deployment, just plug and play into the host builder of a user application and self-host automatically via kestrel, hence why I'm embedding all the static assets. It already works like this, it's straightforward to implement this model when all static assets are know upfront. I'm just having trouble finding the correct way to also embed that particular generated css file at the right time during the build process.
Alberto Passalacqua
@AlbertoPa
@mrpmorris I used them for relationships :-)
Mario van Zeist
@MariovanZeist
@AlbertoPa Yeah some times you need some navigation in a relationship..
Morning btw
Alberto Passalacqua
@AlbertoPa
lol that is open to many interpretations @MariovanZeist :P
anyway, now my api is annotated and it looks like I didn't break it :laughing:
emelhu
@emelhu
SQL-MisterMagoo
@SQL-MisterMagoo
Thanks @emelhu
Peter Morris
@mrpmorris
I've changed my mind, and I am going back from records to classes
Mario van Zeist
@MariovanZeist
I was interested in record for its perceived immutability, but a record isn't immutable by definition, I have a system where I can retrieve Contextaware options (for example 'User' options, or 'Company' options. As I wanted these options to be immutable so I can easily cache them in memory without fear of being modified (As these end up as json in a database) I was looking at record to store those options. I ended up having to write a function to determine if a type is Really immutable, by checking all the fields/ properties for immutability
Erwin Kuhn
@erwinkn
There isn't anything in C# that can guarantee actual immutability though, right? Since you can always store a mutable reference type in there
It's all about the contract and making it easier for you to write your own immutable types with value semantics
Mario van Zeist
@MariovanZeist
Yeah, that's why I ended up using a function to test for immutability
The main benefit for me in my case was the with syntax. As it's normal for a user to have for example 30 options, but you only want to use 1. The with syntax makes it so that I don't manually have to copy the remaining 29 properties to my new record
Erwin Kuhn
@erwinkn
The value equality semantics are great as well (would be even better if things like ImmutableArray also implemented value equality)
monica monica
@stellina8778_twitter
Hi, I'm trying to publish a blazow wasm application on a web hosting but the publication gives me this error: Uncaught SyntaxError: Unexpected token '<'
Peter Morris
@mrpmorris
How can I drag a file from one folder to another in the VS2019 Solution Explorer and have git realise it is a mv and not a delete + create?
Tobias Markus
@tobbi_gitlab
Fucking shit.
I just included an external lib...and since then the debug adapter throws errors all the time when trying to test the app.
At least when I debug it using IIS
Erwin Kuhn
@erwinkn
@stellina8778_twitter it's hard to give any advice on the problem, it seems like a syntax error in one of your files. Does it compile and run locally?
Tobias Markus
@tobbi_gitlab
nvm.
My viSual studio was just slow.
monica monica
@stellina8778_twitter
@erwinkn Thanks for the reply. Yes locally it works and has also been published under iis. But on web hosting (somee.com) it gives error
Peter Morris
@mrpmorris
We need a VS extension that tracks drag+drop and renaming
git mv won't even take wildcards
wvmstr
@wvmstr
@stellina8778_twitter I have not made it to the publishing stage yet, but I have seen a similar exception using EF Core. It happens when the API returns html where none was expected. The response is <html.....