Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project Rider doesn't read launchSettings.json

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 ?

like image 897
Epistemologist Avatar asked Aug 28 '26 19:08

Epistemologist


2 Answers

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/

like image 76
maartenba Avatar answered Sep 03 '26 00:09

maartenba


in my case, Rider did not read launchSettings.json because there was invalid JSON (an extra comma), while Visual Studio read this file

like image 38
msergey Avatar answered Sep 03 '26 01:09

msergey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!