GithubHelp home page GithubHelp logo

IIS Express profile launchSettings.json does not add environment variables in the iisexpress.exe process about msbuild.sdk.systemweb HOT 5 CLOSED

czemacleod avatar czemacleod commented on June 27, 2024 1
IIS Express profile launchSettings.json does not add environment variables in the iisexpress.exe process

from msbuild.sdk.systemweb.

Comments (5)

julealgon avatar julealgon commented on June 27, 2024 3

Ran into this behavior today. @CZEMacLeod should this be tagged with the known limitation label?

Additionally, is there any known workarounds to this issue besides just forcing a system-wide environment variable?

from msbuild.sdk.systemweb.

CZEMacLeod avatar CZEMacLeod commented on June 27, 2024

@morindo Thanks for flagging this. I've done some testing and it looks like whatever logic/code VS uses to launch IISExpress, does not add the environmentVariables when in the MSBuild.SDK.SystemWeb.
It does not appear to be a difference relating to hosting dotnet core vs dotnet framework in IIS itself (which was actually my first though) but actually something in the launch code.
This bit of code is built into VS itself, so I can't easily debug or find what/why it doesn't work as expected.
I've also done a bit of testing with launchSettings.json / launch profiles for console apps, and it seems to work with both net6 and net48 (framework) and correctly set the environment variables as expected. (This is with commandName set to Project).
I'll see if I can dig into this a bit more, but it might need some help from the VS team here.

from msbuild.sdk.systemweb.

morindo avatar morindo commented on June 27, 2024

Thank you very much @CZEMacLeod for the quick response. Good hunch, I'll look into-it myself. I'll post if I find something.

from msbuild.sdk.systemweb.

swissarmykirpan avatar swissarmykirpan commented on June 27, 2024

@morindo @CZEMacLeod any progress on this?

from msbuild.sdk.systemweb.

morindo avatar morindo commented on June 27, 2024

@swissarmykirpan unfortunately, I didn't find a way to make IISExpress use the launchSettings.json environment variable.

from msbuild.sdk.systemweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.