Skip to content

Microsoft.VisualStudio.JavaScript.Sdk incorrectly assumes IntermediateOutputDir is always a relative path #39541

Open
@a-bronx

Description

@a-bronx

In our build environment all generated artifacts must have "out-of-sources" output path, including intermediates. Properties like OutDir, BaseIntermediateOutputPath etc are set as absolute paths.

But in the microsoft.visualstudio.javascript.sdk\1.0.628833\Sdk\Sdk.targets there is a following property:

    <!-- This property was moved from props to targets so we can access IntermediateOutputPath. --> 
    <PackagePropsPath>$(MSBuildProjectDirectory)\$(IntermediateOutputPath)\package.g.props</PackagePropsPath>

This property assumes that IntermediateOutputPath is always a path relative to the project directory, and this assumption makes the GeneratePackageJsonProp target fail when IntermediateOutputPath is an absolute path.

I was able to workaround the error by redefining the PackagePropsPath in the project, but I'd expect this should accept any intermediate path out of the box.

Metadata

Metadata

Assignees

Labels

Area-esprojIssues related to the Javascript project systemuntriagedRequest triage from a team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions