enter image description hereI am trying to move from Visual Studio 2022 to JetBrains rider with my .NET full-stack project.
I am using Webpack for my front-end side if it gives anyone a clue (I also run the Webpack command like in my vs2002).
The problem which occurs is the HostingEnvironment.IsDevelopmentEnvironment
always returns false.
I tried to set it from the terminal with the ASPNETCORE_ENVIRONMENT=Development
command and in the configuration setting of debug mode of my project with no luck. I can't find any solution to this problem.
// different script for dev or prod
string scriptFileName = HostingEnvironment.IsDevelopmentEnvironment ? "/dist/app.entry.js" : "/dist/app.entry.min.js";