-
Notifications
You must be signed in to change notification settings - Fork 2.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
Create programmable MSBuild Tasks #4991
Comments
yes good idea |
Can you tell about some concrete use cases in more detail? Like, what exactly would "Copy Translations files" and "Cleanup files" do? |
Working with MSBuild tasks is a tedious work, also a tiny typo could break everything I remembered we using programmable MSBuild tasks in |
Sorry, this is really vague for me. Please provide examples. |
For instance, copying translation files is a simple task that took days if not weeks to make work fine as it is, I remember JT works heavily to get it done. If we have a programmatic way to create MSBuild task this should not take a day IMHO, for that JT was interested on this at that time |
Aren't you looking to implement custom tasks in C#? |
The problem is not with writing the task itself, but rather how it is getting work with OC :) |
And how would such programmable tasks work? Wouldn't rather custom MSBuild targets that let you hook into the build pipeline of OC serve this? |
So, where do you want to go with this issue and PR? |
Hi @Piedone as you know we are on a holy month "Ramadhan" so I don't have much time to revise the remaining PRs. I'll struggle in the upcoming two weeks |
I see, no worries, and have a happy Ramadan! |
BTW the number of PRs -especially mine - has been reduced a lot, thanks for your |
Great :D. |
Implementing programmable MSBuild tasks will open up the possibilities for doing anything during the build time:
The possibilities are endless, you can do whatever you want with the MSBuild black box instead of dealing with XML |
What I'm probably most missing is what you mean by "programmable" (and even after checking out the PR). Since MSBuild Tasks are already, for all intents and purposes, programmable. Because you previously said that you don't mean being able to write tasks in C#. |
Programmatically
I can write them in I don't mean that we need to change all that we have, at least this PoC that C# tasks are easier and do not take much time. I think this is useful for the future use cases |
I understand what the word "programmable" means :). I don't understand though what you mean by it in this context. So, in the end, this is actually about writing MSBuild tasks in C# (and not the MSBuild XML)? |
Exactly, open the possibility to write MSBuild tasks in C#, so it's easier, time-saving and testable |
That's something I asked about previously too, but glad we cleared it up :). |
@jtkech I'm thinking to introduce programmable MSBuild tasks that will be useful for various reasons, such as:
Copy Translations files
Cleanup files
or anything you may think of
I knew we can do that in
.csproj
files, be here we can have a benefit of test ability, readability, productivity, flexibility .. etcThe text was updated successfully, but these errors were encountered: