-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
MSBuild task for creating Tar files #7944
Comments
Cc @carlossanlop fyi |
Would such a task be able to work when MSBuild is run on .NET Framework? System.Formats.Tar doesn't appear to target anything compatible with that. |
No it would only work on .NET 7 and later. I believe that would mean .NET SDK 7.0.something and later, targeting any version. |
We don't yet have any inbox tasks that are .NET (core) only, which might be enough to delay this. But I think it sounds like a reasonable idea. |
If a task that requires .NET is added and a user tries to run it on .NET Framework, I hope it will log an error saying that the task doesn't support .NET Framework, rather than MSB4036. msbuild/src/Build/Resources/xlf/Strings.xlf Lines 573 to 576 in 9c46407
|
@KalleOlaviNiemitalo Yes, if the |
I see, you added support for |
This is a great idea, and we should do it. However, this task would require a .NET 7 Runtime, which brings up an interesting conundrum. That would require MSBuild to update its Target Framework to net7.0, but for support reasons we really really try to keep components that ship in the .NET SDK to Long-Term-Support Target Frameworks. We're having a discussion about the mechanics of this later this week, but in general because of SDK and Visual Studio support cycles and overlaps (or lack thereof) between the two, we try to limit the amount of STS (short-term support)-only features we use in the product to enable us to fallback to run on supported runtimes when the STS stables go out of support. That would mean that this Task would either need to be conditioned somehow, or wait until we start targeting net8.0 for MSBuild (which would be something like the 17.8 MSBuild/VS version numbers if memory serves). |
In that case, blocked on #7790 and should be conditioned. We can add this to the next spring planning and discuss it then. Conditioning out the task should be easy enough. |
@benvillalobos can this work be scheduled for a minor release still in 7.0 timeframe (before .NET 8.0)? |
@stan-sz MSBuild releases on the .NET SDK and Visual Studio cadence, so can add features ~quarterly. |
A kind reminder about this feature request, @benvillalobos and @rainersigwald. Thanks! |
@stan-sz Are you ok with this only working in |
I would also love to see this. I'm currently doing this, which is... not great, for multiple reasons. (It only working in |
Yes |
@rainersigwald - a kind reminder so this task makes it to the release. Thanks! |
This feature would be very helpful for automating use of the WASI SDK, releases of which are archived using the Tarball format. |
.NET TaskHost #4834 sprouted a number of sub-issues yesterday. If those were implemented, I imagine |
With .Net 7 support for tar apis, is it feasible to create an equivalent of (Un)ZipDirectory tasks for handling
.tar
files in the upcoming MSBuild release?The text was updated successfully, but these errors were encountered: