dotnet / dotnet/msbuild

MSB3539 when redirecting build output in web project

Open
#4,881 3 comments 3 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

A most common task when configuring a build is to specify the output path. This task must be really easy and hasslefree.

Currently it is not possible to redirect the path for a web project without receiving a warning. Using the following directory.build.properties


../acmebin
../acmebin/obj
../acmebin/obj/$(MSBuildProjectName)
../acmebin/obj/$(MSBuildProjectName)

gives the warning

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(813,5): warning MSB3539: The value of the property "BaseIntermediateOutputPath" was modified after it was used by MSBuild which can lead to unexpected build results. ...

Expected behavior is no warning. Alternatively *any* *simple* way to configure the output directory would be ok.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.