Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseProject overriding the output path doesnot work #232

Open
christianbumann opened this issue Oct 24, 2023 · 0 comments
Open

ParseProject overriding the output path doesnot work #232

christianbumann opened this issue Oct 24, 2023 · 0 comments

Comments

@christianbumann
Copy link
Member

christianbumann commented Oct 24, 2023

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <BaseOutputPath>123</BaseOutputPath>
    <OutputPath>123</OutputPath>
  </PropertyGroup>
</Project>

var projectInfo = context.ParseProject(project.Path, "Debug");
projectInfo.OutputPaths[0] // this returns e.g. C:/xyz/src/xyz/bin/Debug/net472'

// Neither setting is working

// If adding the condition it is working as expected

<Project Sdk="Microsoft.NET.Sdk" >
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <BaseOutputPath>123</BaseOutputPath>
    <OutputPath>123</OutputPath>
  </PropertyGroup>
</Project>

var projectInfo = context.ParseProject(project.Path, "Debug");
projectInfo.OutputPaths[0] // this returns e.g. C:/xyz/src/xyz/123/Debug/net472'

Expected Behavior

Return C:/xyz/src/xyz/123/Debug/net472

Imho also settings which were done without this Condition should work, and imho this would be the correct behavior

  1. Use general setting without condition
  2. Overwrite with setting with the condition

Current Behavior

Return C:/xyz/src/xyz/bin/Debug/net472

Additional Information

  • Cake.Inbubator 8.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant