Skip to content

AppendTargetFrameworkToOutputPath and AppendRuntimeIdentifierToOutputPath  #18190

@gewarren

Description

@gewarren

Extracted from #2642:

  • How to specify the build target directory/directories
    • AppendTargetFrameworkToOutputPath is useful for single-TFM projects for ppl converting from netfx to netstandard but don't want additional subdirectories in bin/[Configuration] to not break existing tooling.
    • Redirect output via OutputPath - there have been discussions about OutDir vs OutputPath
      • BaseOutputPath to move bin\ somewhere else entirely
    • Show workarounds for redirecting obj\ to somewhere else. This needs some more hacks since BaseIntermediateOutputPath needs to be set before(!) the imported SDK props so ideally in an Directory.Build.props file or using the explicit SDK import syntax instead of the project-level Sdk attrbute.
    • Maybe have an example of how to have two csproj file in the same directory for sharing source - e.g. https://github.com/SabotageAndi/NewCSProj/tree/master/MultipleProjecsInSameFolder
    • AppendRuntimeIdentifierToOutputPath

See dotnet/standard#512 (comment) for info.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions