4

I am using Project Rider 2017.3 to build Asp.Net core 2.x project. When I run project in visual studio 2017 it gets environment variables from launchSettings.json but Project Rider doesn't load variables from same file. I have to go to edit configurations and add environment variables manually.

Is there anyway to force Rider to read variables from launchSettings.json ?

Epistemologist
  • 1,052
  • 3
  • 15
  • 34
  • Strictly speaking, launcherSettings.json is a Visual Studio specific file and any other UIs may or may not use it. It's **not** required for the deployed application neither it's used by `dotnet` cli tools – Tseng Feb 20 '18 at 13:18
  • 1
    @Tseng, unfortunately Rider is trying to clone the relevant part (https://stackoverflow.com/questions/45560884/jetbrain-rider-access-denied-when-using-iis-express-with-windows-authenticatio), so some day they will support `launchSettings.json` as well. Generally speaking, this file is not restricted to VS, and any IDE should be able to utilize it. – Lex Li Apr 15 '18 at 19:39

1 Answers1

6

Support for launchSettings.json has been added in 2018.3.

More info on how it works is available at https://blog.jetbrains.com/dotnet/2018/11/08/using-net-core-launchsettings-json-rundebug-apps-rider/

maartenba
  • 3,344
  • 18
  • 31