sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Dotnet run should not pass ` --additionalprobingpath` to net45 apps

Open pakrym opened this issue 10 years ago • 6 comments

Steps to reproduce

  1. Build net451 app that dumps its argumets
  2. dotnet run it

Expected behavior

Managed app gets no arguments

Actual behavior

Managed app gets --additionalprobingpath argument

/cc @pranavkm @brthor @piotrpMSFT

pakrym avatar Mar 31 '16 01:03 pakrym

@schellap

TheRealPiotrP avatar Mar 31 '16 06:03 TheRealPiotrP

What is a net451 app? I have this in my project.json and I couldn't repro it.

{
  "version": "1.0.0-*",
  "compilationOptions": {
    "emitEntryPoint": true
  },
  "dependencies": {
    "Microsoft.NETCore.App": {
      "type": "platform",
      "version": "1.0.0-rc2-23930"
    }
  },
  "frameworks": {
    "netstandardapp1.5": {}
  }
}

schellap avatar Mar 31 '16 09:03 schellap

@schellap set framework to net451 and it will target desktop

brthor avatar Mar 31 '16 09:03 brthor

Well, in that case corehost is not even involved.

schellap avatar Mar 31 '16 09:03 schellap

This is blocking us. It's a bug in dotnet-run, not corehost. It always passes in those flags regardless of target framework, we just need to check.

davidfowl avatar Mar 31 '16 09:03 davidfowl

Is this one complete now that the linked PR is merged?

Petermarcu avatar Mar 31 '16 20:03 Petermarcu