-
I recently updated the package Aspire.Hosting.Yarp to 9.4.0-preview.1.25378.8, and WithConfigFile started throwing a compile-time error saying it no longer exists. After some digging, I found out that the team intentionally removed this in #10210 It took me a while to figure out because the docs still reference it. ![]() Since it’s now removed, it seems we can’t configure YARP using a config file anymore. I had already invested quite a bit of time preparing a JSON config file, and I imagine a lot of others may have done the same. I also noticed that the docs mention “configuring with environment variables”, but I’m not sure what that means in this context. Are there any examples available? I know the programmatic approach is still possible, but I’d like to confirm whether there’s still a way to use a config file, or if environment variables are now the only supported option. Here’s what I was originally trying to do: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You might be able to work around it by specifying the first argument as the config file name and then you should be able to bindmount that configuration. .WithArgs("./configs/yarp.json") |
Beta Was this translation helpful? Give feedback.
You might be able to work around it by specifying the first argument as the config file name and then you should be able to bindmount that configuration.
.WithArgs("./configs/yarp.json")
.WithBindMount("configs/yarp.json", "/configs/yarp.json")