I'm running into an issue where my output contains a folder called "runtimes" but the runtimes inside of it are all Linux-based. I have a runtme specified (win10-x64) and while it does output that specific runtime, instead of being contained in the "runtimes" folder, it's just plopped in the same place as the rest of the artifacts. In fact, my output location goes from bin/net48/Release to bin/net48/Release/win10-x64 (and the runtimes folder is still inside with the Linux runtimes). Should also note that the win10 runtime being plopped in with the rest of the output doesn't even fix the real problem of the app not being able to find the win10 runtime. I have to make a win10-x64 folder inside the runtimes folder and put the dll in there for it to work
i had this issue once, better create a new project and copy your publish settings from there.. apparently something messed up your publish settings, laos delete obj/bin folders before attempting with new settings
Is it possible to implement custom model validation that would return custom model state (or has anyone implemented such a thing)?
In the current implementation, the validation error item contains only the field name and error message (or code if you want to put it in the error message).
My requirement is to return the error code alongside field name and error message. I would like to use asp.net core pipeline and avoid situation where I'm calling some custom validator in the controller method that returns BadRequest with custom validation error object.