dotnet / dotnet/msbuild

Add macro that contains current targets

Open
#2,252 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

I would like to create a target inside my project using the BeforeTargets attribute that builds a dependency with another call to MSBuild, and I want to pass the same target(s) to the new invocation that will run after the BeforeTargets finishes using a marcro.

I have attached a file with two examples.

[MSBuild Change Request.docx](https://github.com/Microsoft/msbuild/files/1110020/MSBuild.Change.Request.docx)

If have missed something or there is a better way, I'd love to hear it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the attached MSBuild Change Request.docx and compare the two examples it contains. Determine whether the requested macro for carrying current target(s) into a nested MSBuild invocation fits the existing target-execution model; done means the behavior is defined and supported by appropriate project-level examples or tests.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.