project-system: Project properties doesn't understand how target framework and runtime identifier are appended to output path

  1. File -> New Console Application (.NET Core)
  2. Right click project and choose Properties
  3. Choose Build tab, in Output Path change “bin\Debug\netcoreapp2.0” to “Bar”
  4. Save, then close and reopen properties

EXPECTED: Output path is still “Bar” ACTUAL: Output path is “Bar\netcoreapp2.0”

Note that if the RuntimeIdentifier is set, then it will also be included in the output path.

The .NET SDK automatically appends the target framework and (if present) the runtime identifier to the output path. This can be disabled with the AppendTargetFrameworkToOutputPath and AppendRuntimeIdentifierToOutputPath properties. I’m not sure what we’d want for the behavior here. Perhaps the property page should set those properties to false if you modify the output path. Or maybe the value in the text box shouldn’t include the target framework and runtime identifier.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 31 (22 by maintainers)

Commits related to this issue

Most upvoted comments

Appending any version to the output path after the user has changed it to what they want should not be done. I set the output paths to what I wanted now I have visual studio changing it and appending something for .net core or .net standard. That’s not the behavior I need. We know what the version we are building is set to and we set a base path where everything needs to be. Can this please be addressed and removed as a feature.