dotnet / dotnet/msbuild

Infer AssemblyFile if TaskFactory is used

Open
#1,419 0 comments 0 reactions 0 assignees View on GitHub
Area: Engine help wanted triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

It's no small annoyance to have to know the full file name as well as versioning scheme
of the tasks assembly, which has been a moving target in almost every version of MSBuild.

To the point that I ended up creating a nuget package that gives me a `$(CodeTaskAssembly)`
that [works reliablely across all MSBuild versions](https://github.com/MobileEssentials/MSBuilder/blob/master/src/CodeTaskAssembly/build/MSBuilder.CodeTaskAssembly.props#L35-L43).

So, how about just having MSBuild automatically fill the `AssemblyFile` for me whenever I
use a `TaskFactory="CodeTaskFactory"` attribute in a `UsingTask`? Or maybe even more concise
yet, just give me a separate element name for it, like `UsingCodeTask` or something and do away
with the attributes altogether :)

May be a superset of what's asked for in #897?

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.