-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Producing an MSBuild task package #1125
Comments
we already added some extension points that should make this easier : NuGet/NuGet.Client#1255 We can't make a generic Task package type since all packages would differ widely. Do you have any concrete suggestions on what you would like to see that would make it easier for you to create task packages? |
In a world of unlimited resources, I'd love to see this: <Project Sdk="Microsoft.Build.Task">
</Project> Microsoft.NET.Sdk is geared towards runtime packages, not MSBuild task packages. Packages designed to carry MSBuild tasks are fundamentally different from packages that only carry runtime bits. |
@rohit21agrawal if you're looking for short-term fixes to the pack task... One of the problems today is that package authors have to choose between nuspec and csproj=>nuspec generation. Keeping csproj and nuspec aligned is difficult, esp. for users new to MSbuild. Wrangling MSBuild to make csproj=>nuspec generation work right is difficult, even for advanced MSBuild users. I had to read NuGet's source code to figure some of this out. Anything you can do to make nuspec + csproj easier would help with this ask. One idea: <package>
<metadata>
<id>${MSBuild.PackageId}</id>
<version>${MSBuild.PackageVersion}</version>
</metadata>
</package> |
@natemcmaster instead of making csproj + nuspec easier, i'd like to understand more about what we can do to make the need for nuspec go away. |
|
I think this issue overlaps with: dotnet/msbuild#1756 |
Given that this conversation is happening around pack, I am moving this issue over to NuGet. Please, re-activate or file new issues for specific asks for the SDK to support this. |
This issue was moved to NuGet/Home#5063 |
Fixes dotnet#1132 Fixes dotnet#1128 Fixes dotnet#1127 Fixes dotnet#1126 Fixes dotnet#1125 Fixes dotnet#1124 Fixes dotnet#1115
Fixes dotnet#1132 Fixes dotnet#1128 Fixes dotnet#1127 Fixes dotnet#1126 Fixes dotnet#1125 Fixes dotnet#1124 Fixes dotnet#1115
Can we get better support for projects designed to produce MSBuild tasks?
Pain points
Workarounds
Task assembly projects end up looking like this
Some MSBuild task projects in the wild:
madskristensen/BundlerMinifier
aspnet/BuildTools
natemcmaster/Yarn.MSBuild
The text was updated successfully, but these errors were encountered: