dotnet/msbuild

Infer AssemblyFile if TaskFactory is used

Open

#1.419 geöffnet am 1. Dez. 2016

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.364 Forks)batch import
Area: Enginehelp wantedtriaged

Repository-Metriken

Stars
 (5.062 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 7h) (125 gemergte PRs in 30 T)

Beschreibung

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.

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