dotnet / dotnet/msbuild

Override GenerateNuspec or other targets in Directory.Build.targets

Open
#4,747 7 comments 0 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

I expected that Directory.Build.targets is imported at the end of the Microsoft.NET.Sdk. Unfortunately some targets seem to be defined before the directory.build.targets has been imported, which prevents me from overriding them. Is there a property (which i could set in directory.build.props) to a target file that is imported after everything else is already specified? Is there any other possibility to override targets like GenerateNuspec without changing the standard project file format (with Sdk attribute in the project tag)?

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.