Skip to content

Publish path is incorrectly constructed when AppendRuntimeIdentifierToOutputPath is set #12114

Description

@pranavkm
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>ExeOutputType>
    <TargetFramework>netcoreapp3.1TargetFramework>
    <RuntimeIdentifier>win-x64RuntimeIdentifier>
    <AppendRuntimeIdentifierToOutputPath>falseAppendRuntimeIdentifierToOutputPath>
  PropertyGroup>

  <Target Name="Say">
    <Message Text="OutputPath: $(OutputPath)" Importance="High" />
    <Message Text="PublishDir: $(PublishDir)" Importance="High" />
  Target>

Project>

Expected:

OutputPath: bin\Debug\netcoreapp3.1\
PublishDir: bin\Debug\netcoreapp3.1\publish\

Actual:

OutputPath: bin\Debug\netcoreapp3.1\
PublishDir: bin\Debug\netcoreapp3.1\win-x64\publish\

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions