-
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
Consider .NET Core TaskHost #4834
Comments
A more immediate solution would be to allow Visual Studio to run the entire build on .NET Core. That could be complemented by failing if .NET Framework-based MSBuild attempted to run a task marked with |
Is this on the roadmap? |
@john-larson "yes" in the sense "we still think this is a good idea worth doing sometime hopefully soon", but "no" in the "we have a planned time to work on this". |
@rainersigwald, just wondering if there are any ways to run the code in a newer runtime? I am looking for workarounds. |
@Denis535 the best option at the moment to run code during a .NET Framework/Visual Studio-driven build is to use an executable; then you can use anything that will run on the machine. |
OR vice-versa, i.e. running full framework tasks from Core MSBuild via |
Yeah, it seems I'm the one marked the issue but forgot entirely. Silly me 😜🙃 |
I am particularly interested in seeing this implemented. Is there a way for a community member to help? |
@teo-tsirpanis Unfortunately, I think most of the work for this is
which makes it pretty hard to help externally. Can you expand on your desire for the feature though? Having clear use cases can help us prioritize it internally. |
I have an MSBuild task that runs after compilation and executes code from the compiled assembly using So what I did is run the task out-of-process on modern .NET when we build on .NET Framework, but this presents its own challenges. The out-of-process tool has to be installed separately (to avoid increasing package size for everyone), sending logging messages requires additional ceremony Implementing this would reduce complexity in my code and improve the user experience. |
Is this feature coming in .Net 8? |
No, it's not planned for the .NET 8 GA release this fall. |
Task declaration supports a
Runtime
attribute that allows MSBuild-running-on-.NET-4 to call tasks that support only .NET 3.5 (by spawning anMSBuildTaskHost.exe
that runs on .NET 3.5 and communicates with the rest of the build via IPC).Similar support could be used to support running .NET Core (or .NET Standard 2.1+) tasks from Visual Studio with
Runtime="Core"
(or something like that).The text was updated successfully, but these errors were encountered: