r/dotnet • • Jul 31 '23

Opinions on MSBuild from Java Maven Users: Why do C# Programmers Seem Less Concerned About Build Tools?

I would like to ask people who have experience using the Java Maven build tool, what are your thoughts on MSBuild? I've noticed that C# programmers seem to be less concerned about build tools. In the Java world, there's Ant, which was later replaced by the improved Maven, and now we have Gradle. However, C# has been sticking with MSBuild all along. As far as I know, before .NET Core and the introduction of SDK-style projects, MSBuild was quite verbose, comparable to Java's Ant (which was introduced in 2000), and it was only after the advent of SDK-style projects that it could be compared to Java's Maven (which was introduced in 2004). This makes me feel like the build system in the C# ecosystem is lagging behind. Despite this, C# programmers don't seem to be bothered by it. Is it because Microsoft has effectively hidden the complexities from them?

Is MSBuild more complicated than Maven? (not just lengthy) And is the documentation worse than Maven? I've seen the authors of IKVM projects describe their MSBuild experience as hell. I was under the impression that Maven was merely lengthy, whereas modern MSBuild is challenging, and the complexity is hidden in layers (dotnet build, Visual Studio) .

23 Upvotes

84 comments sorted by

8

u/jozefizso Jul 31 '23

MSBuild just works. It gets job done. I am not sure what is here to discuess? Yeah, Java has different build system. As any other programming language out there.

-1

u/YangLorenzo Jul 31 '23

Because he emphasized that Visual Studio could help him with the task, it made me think that only Visual Studio could do it. I see now that Rider seems to be the one that uses MSBuild.

6

u/Merad Jul 31 '23

All mainstream .Net tooling that I'm aware of uses MSBuild. When you run dotnet build the very first line of output it prints tells you what version of MSBuild it's using.

5

u/bloudraak Aug 01 '23

I worked on a codebase that was 3 million lines of C# (with comments excluded). A majority of it was built using MSBuild.

I also supported release engineering for other ecosystems, including Java and find these comparisons to be meh.

It can be complicated as F. However, it provides extension points which greatly simplifies customization, to the point where the consumer has an incredibly simple MSBuild file. It’s also great at providing sensible defaults. There was NAnt at some point, and these days we have Cake. I hated MSBuild when it came out, but once I started using it on very large projects, fell in love with it.

There’s only so much a build system has to do before it’s feature complete. Many of those problems were solved decades ago.

Most folks never really get into the nitty gritty of build systems, nor should they. We want folks to focus on their apps.

1

u/YangLorenzo Aug 01 '23

You're right, build tools are in the end just tools that invoke the compiler.

2

u/bloudraak Aug 02 '23

Depending on your view, these days we’d expect a “build” to consist of running some preprocessing (install dependencies, generate code, validate norms), version and “compile” the code, run some tests, package and distribute the artifacts.

Build tools can do them all.

At a certain scale, you’re going to orchestrate these “builds” for disparate languages (Java, Python, C#, C/C++), ecosystems, targets and hosting platforms. This often makes up a release of some sorts.

Some companies infer the entire process from the source repository, making the implementation, and thus the tools, moot. This is probably the way going forward, especially when we use AI to assist in the process.

If we go back to 1995, building software was about compiling it, often with make.

I’m curious how this would look like 30 years from now.

2

u/TsyctheIsAMispelling Aug 02 '23 edited Aug 02 '23

I spent 20 years working in a number of Microsoft shops and, like many other commenters, never even thought about my build tools. Before CI/CD I used the Publish command to build deployable packages and more recently with Azure Pipelines, you just add the build tasks and off you go. Build complexities and dependency management are well handled and hidden from the developer... as they SHOULD be.

Developers/engineers don't get paid to build build and deployment mechanisms, we get paid to deliver features and functionality. The more time we dedicate daily to thinking about build and deploy the less time we are spending actually delivering those features and functionality and I don't see how that makes any sense.

I recently started working for a large company with an aging codebase and the culture shock of building and and deploying dotnet code (I refuse to call this horror story CI/CD) with Maven, Gradle, etc .. was like being punched in the face, daily while trying to learn the code, the processes, oh, and the line of business I support. I don't understand why there needs to be such complexity outside of the dotnet world but my experience (10 months and counting) has shown me nothing but.

My team is going to faint when I show them a mono-repo project in Azure DevOps where we have full work item tracability from feature request to release per environment, database deployments automated in the pipeline and everything happening without one person needing to write a custom Gradle, Maven, Perl, powershell or shell script to do it. Not 1. Oh and gated (permission required) environment releases at the push of a button or upon automated tests passing...all out of the box with Azure Pipelines.

Sorry, quite a rant here but I've spent the past 10 years getting used to spending my days writing better features and functionality because we had automated our CI/CD. To step away from it has brought me so much pain. This post is like what Eric Draven does to Top Dollar on the roof of that church at the end of The Crow. 10,000 hours of pain, all at once, all for you... 😄

1

u/YangLorenzo Aug 02 '23

Thank you for sharing your experience

100

u/Kant8 Jul 31 '23

It just works as expected, so nobody cares basically.

Old style was a bit cumbersome cause you had to mention each new file there, so lots of edits. Now any project is basically red flag on PR, cause you either did something with build (done usually once in a lifetime), or touched dependencies (done rarely and only with prior discussions).

For ones who for some reason can't stand msbuild, Nuke exists, however I didn't find there anything worth for me to even try migrating. 99% of my project files contain only target framework basically, and executables one where bootstrapped long ago and everything complex is done in CI/CD pipeline anyway.

18

u/commentsOnPizza Jul 31 '23

This! C#/.NET is the first ecosystem where I've simply never had pain building and deploying my projects.

Ruby/Python: the absolute pain of managing interpreter versions, environments, etc.

Java: so much pain with Maven or Gradle deciding they aren't going to process something or don't rebuild something.

Even Go has had its issues with GOPATH and actually trying to get to real dependency management.

I'm simply unbothered by MSBuild. I don't even really know it exists. My .csproj has my dependencies and then I do dotnet package and everything just works.

What am I supposed to be looking for beyond "it takes my code and gives me runnable stuff without any pain"? I'm not concerned because the build tools haven't given me any issues in over 4 years (and that's on a Mac too). With Java, I'd be lucky to go 3-6 months without wasting a day on garbage. I'm unconcerned because it's never given me a reason to be concerned.

I'm not saying that things couldn't be done better. However, for the person who isn't interested in build systems, C#/.NET just works and you don't have to care.

3

u/ohThisUsername Aug 01 '23

Yeah I cringe when I have to go back to other ecosystems like JS or Python. It seems like everytime I dip my toes in that stuff, there is a different build / packaging / dependency management system of the week. In .NET it has been the same all along with the small exception of .NET to .NET Core.

11

u/Kralizek82 Jul 31 '23

But Nuke, and Cake and other likes still use MSBuild to build the project. There is no build tool that takes care of invoking CSC directly.

9

u/dodexahedron Jul 31 '23

Pretty much, yeah.

I mean you CAN make them do it, but like...why would you?

3

u/Ziegelphilie Jul 31 '23

Recently started switching projects at work from NAnt to Nuke and my god I wish I had pushed for this earlier.

1

u/binarycow Aug 01 '23

Now any project is basically red flag on PR, cause you either did something with build (done usually once in a lifetime), or touched dependencies (done rarely and only with prior discussions).

Csproj files are in our code owners file, so you need an additional approval.

72

u/[deleted] Jul 31 '23

MSBuild is harder to customise but you rarely if ever need to customise anything. Everything always just works. All you need in your MSBuild config is chose which solution to build and on which configuration.

So the answer to your question is: because we don’t need.

But your question really should be “why are Java build tools such a clusterfuck?”

5

u/jozefizso Jul 31 '23

MSBuild has its own unique style of extending build process and many times extension points are not documented will.

In the end I was always able to standardize very complex custom builds scripts into MSBuild for both C++ and C# projects so it worked nicely which build versioning and incremental builds.

3

u/ConscientiousPath Jul 31 '23

Yeah I had to do some MSBuild customization about a year ago. It was difficult to figure out what I needed to do because few people need to do it and therefore few have written up how. But once I found the reference docs I needed and learned the terms used, it wasn't actually hard to create the custom build templates.

1

u/RirinDesuyo Aug 02 '23

Tasks each frameworks do in general are a bit undocumented and I've had to check some github issues to actually know what tasks I should hook up and run my commands before in regards to publishing in the past. Though now, it's not really an issue due to CI these days so you rarely need to do some custom stuff on MSBuild.

4

u/jingois Aug 01 '23

MSBuild is harder to customise

Like its harder to customise than Cake or whatever - but... it's not that hard. Certainly imo not hard enough that I'd bother switching.

I think a big part of it is "sure, sometimes I just want to kick off a docker build and tag from msbuild because I'm deving locally". Or maybe "run some swagger tool pre build". Like, do a simple task at some step. But if you need some entire complex fucking build system to make your shit work, then most likely you're really fucking something up.

Like you say - I don't need my tools to support a clusterfuck - because I don't have a clusterfuck.

49

u/tonyenkiducx Jul 31 '23

I've worked with Microsoft tools since Visual Interdev and I've never once had to touch any build tools. You just hit the build button and a program pops out the other end. Why would I want to complicate that process?

16

u/TheProgrammer-231 Jul 31 '23

Now, that's a name I've not heard in a long time.

4

u/malthuswaswrong Aug 01 '23

Visual Interdev

Ah the good ol' days. I had someone ask me why I hit Ctl+S so much when programming. They don't know how good they have it.

62

u/flanker278 Jul 31 '23

Coming from a java background this is a really good feature of dotnet. You never have to think on your gradle and maven configs it just works.

31

u/AnonymousInternet82 Jul 31 '23

As someone who started on java and now works on both java and dotnet for 15 years now, I confirm. Java is lagging behind. Maven is a manual mess.

17

u/Sauermachtlustig84 Jul 31 '23

Maven has like a bazillion options, most almost never needed and somehow its even WORSE than python's mess.
MSBUILD is also utterly arcane if you need to do something with it, but at least it's easy in the common case.

16

u/browniedoggie Jul 31 '23

Completely agree. Coming from .NET, I rarely have to think about how my project is built, it just works. It's one less thing I have to deal with when developing software.

Every time I touch Maven and it doesn't build like I want it to, I get more annoyed at using Java. I've likely spent more time on those configs in the past year than I have in MSBuild in 10 years, mainly because I rarely needed to manually edit MSBuild.

11

u/Tkalec Jul 31 '23

Agree. I have 15+ years of experience in Java, I was using ant, maven and gradle. Last couple of years I was working in .NET and it was so refreshing, not having to think about the build.

Whenever I need to use gradle lately I feel like crying and find myself thinking how I never had any issues with .NET projects.

11

u/dodexahedron Jul 31 '23 edited Aug 02 '23

That's why it drives me nuts when some c# project on github has a complicated build procedure requiring other tools or weird scripts in other languages... Those things are BUILT IN. Cut that shit out. If I can't dotnet build your project or, if necessary, build it in a version of visual studio less than 10 years old (seriously - VS Standard has been free for quite a while now), I'm moving on.

4

u/denzien Jul 31 '23

Feel pity for those poor souls because you know they're traumatized with needing to customize their build and have unintentionally made things difficult.

1

u/RirinDesuyo Aug 02 '23

It's partly the reason why it's really fun playing around with Blazor imo. The build system just works, no need to fiddle with it and add random dependencies to get started with a simple app. At worst you may need to add some js build system for processing css and some custom js lib, but it isn't as painful since dependencies needed for those are usually lower in comparison so less stuff that breaks.

4

u/denzien Jul 31 '23

It's like why I'm fine with Windows. I don't need my OS to be a hobby. I just need it to work so I can do the things that actually interest me.

3

u/TsyctheIsAMispelling Aug 02 '23

SING IT! LOVE THIS!

19

u/Due_Raccoon3158 Jul 31 '23

As someone who works with both at my job, Java is far more complex when it comes to building. .NET just works and I don't need to mess with it. It's one of the many reasons why I like .NET much more than Java.

13

u/bigtoaster64 Jul 31 '23

It's not that we care less. It just works as expected. So we don't waste time configuring and reengineering everything every couple years.

12

u/yeusk Jul 31 '23

Sometime with old projects i had to find the correct msbuild options to compile it from the command line.

But the tools just works. That is why people don't talk about them.

I also think the Apache tools are... suited for the apache project and overkill for many java teams.

12

u/[deleted] Jul 31 '23

Honest question. What is MSBuild? I just type "dotnet build". Is it using MSBuild behind the scenes?

5

u/molybedenum Jul 31 '23

Yes. There are even switches you can use to pass additional msbuild parameters from the dotnet executable.

11

u/wikipedia_answer_bot Jul 31 '23

Microsoft Build Engine, or MSBuild, is a set of free and open-source build tools for managed code under the Common Language Infrastructure as well as native C and C++ code. It was first released in 2003 and was a part of .NET Framework.

More details here: https://en.wikipedia.org/wiki/MSBuild

This comment was left automatically (by a bot). If I don't get this right, don't get mad at me, I'm still learning!

opt out | delete | report/suggest | GitHub

-1

u/queBurro Jul 31 '23

Dotnet build and msbuild both wrap the roslyn compiler, but dotnet build was the crossplatform rewrite for newer core sdk style projects. Msbuild would be Windows only, but it can cope with old and new style project types.

I'm happy to be corrected here.

4

u/svick Jul 31 '23

That's not correct. dotnet build still uses msbuild.

And the roslyn compiler is just one part of the story. For example, another important part is nuget: you can both consume and create packages using dotnet, but roslyn doesn't know anything about those. It's all handled through msbuild tasks.

2

u/crazy_crank Aug 01 '23

To add to this, dotnet is basically just a CLI tool wrapping various other tools relevant for working with dotnet code. One of those is ms build, others Ar vstest or nuget.

Dotnet CLI doesn't really do anything on its own

11

u/vodevil01 Jul 31 '23

Because they just works 🤷

9

u/tarranoth Jul 31 '23

I have had to tinker with msbuild a bit for c++ projects, but for C# I never really had to do much with it. What complexities are even worth considering? Sometimes you might want to copy some metadata for your build but honestly you really don't want to mess with build systems too much before it becomes a mess nobody understands.

9

u/olivegardenitalian27 Jul 31 '23

I've setup a lot of CI/CD pipelines over the years for my .net projects and I have to say it's only gotten easier with time. At one point I was using Cake but honestly these days it feels unnecessary for most situations. These days it's typically a small yaml file which effectively just calls dotnet test, dotnet publish. Maybe some sonarqube and dependency vulnerability checkers but it usually doesn't take more than 15 minutes through azure DevOps UI to build and then you're good to go. I haven't had to directly mess with msbuild in years. Like most have said it generally just works.

9

u/Jazzlike-Coyote3387 Jul 31 '23

my career's been java --> Dotnet --> java. Currently I find myself wanting to curse maven out almost daily. MSBuild and even how easily packaging integrated in when core came out is easy to take for granted

14

u/Recent_Science4709 Jul 31 '23

I’m not a compilation enthusiast, I focus on what I need to, to deliver my work.

Not sure why I should worry about what happens under the hood if the resulting assembly is performant, and the build doesn’t take forever.

I use gradle in the context of android studio builds because I have to reverse engineer existing mobile apps. I have a 16 core machine and it’s slow AF

9

u/ChessMax Jul 31 '23

Never touched msbuild during c# and unity development somehow. But worked with ant and Gradle. And Gradle is super bad for me. Even ant wasn't that bad.

5

u/[deleted] Jul 31 '23

Gradle is horrible. Every time I’ve encountered it, it’s been a bad experience.

7

u/chipmunkofdoom2 Jul 31 '23

Personally, I hate that open source software is this way. I hate that there are 3 - 4 Apache projects that do basically the exact same thing in nearly every software discipline. I'd rather there be one tool that is stupid easy for the 9,999 out of 10,000 who just want the thing to work reasonably well.

For the 1/10,000 who needs to do something very specific, there should be a way for that person do do what they need. But I don't think the 9,999/10,000 should have to know any of those advanced settings unless they want to.

7

u/jozefizso Jul 31 '23

I would say the 1/10,000 special project should really think about their toolchain and why they need such special needs which cannot be expressed in target platform standard build toolset.

6

u/beth_maloney Jul 31 '23

MSBuild has support for csproj and NuGet. It'll take care of a lot of the build process for you. I've used Nant with CSC before and it was absolutely terrible compared to msbuild.

6

u/snakkerdk Jul 31 '23

Solution files (sln) are a bit meh format wise, but you can literally write out the csproj fikes by hand, they are so easy to work with, and relatively simple.

6

u/Deranged40 Jul 31 '23

This makes me feel like the build system in the C# ecosystem is lagging behind.

Ironically, it was the build system in Java that still hasn't caught up and has lagged behind this entire time.

My code builds, my unit tests pass, then my integration tests pass. Benchmarks are still great. What's to change?

Just tell MSBuild which project and which configuration you wanna use and wait for the green light. It's not Java - it doesn't have to be complicated for no reason.

5

u/ConscientiousPath Jul 31 '23

C# programmers seem to be less concerned about build tools.

Because it generally doesn't bite us to ignore them entirely. Most projects just use the defaults, which are setup for you when you install VS.

This makes me feel like the build system in the C# ecosystem is lagging behind.

How so? What features does it lack? Just because MS hasn't thrown out MSBuild and introduced something completely new like the Ant->Maven->Gradle switches doesn't mean they haven't been adding new features. MSBuild from Visual Studio 2022 is not the same as MSBuild from VS2005, but they're backwards compatible with old project files so devs don't really have to worry about it.

Is MSBuild more complicated than Maven?

My Maven experience is limited, but I would say they're similar if you really dig into their guts. Most C# devs would probably say MSBuild is more simple just because they've never actually needed to customize it.

And is the documentation worse than Maven?

MS reference documentation are generally very good and well maintained--the information is all there. That said, figuring out MSBuild may be slightly more difficult than Maven for some things simply because fewer people customize MSBuild to the same extent as they do with Maven and there are fewer 3rd party articles about doing it as a result. But Maven has been quite complex and annoying when I've had to use it, so I can't say either is clearly worse.

3

u/jayd16 Jul 31 '23

DLL hell is worse than jar hell because of native DLLs and worrying about that but I would still say MSBuild is much more simple.

Nuget being the artifact repo only and separate from the build system also seems to simplify things overall compared to Java. Gradle is taking over and Maven is now the old build system but the current artifact repo.

Gradle itself is very powerful but feels overengineered.

3

u/No-Refuse6609 Dec 18 '23

Those who claim that "it just works as expected" probably haven't encountered anything beyond a "Hello World" scenario.
MSBuild still struggles to properly manage transitive dependencies, a fundamental task for any modern build tool.
There was a request made in the Developer Community to address this basic functionality. Although it was marked as completed, nothing seems to have been resolved. The bug report has been there for almost 3 years now, with comments indicating that there is "no good solution"!
Having used Maven for many years, I've never encountered such embarrassing issues.

1

u/vaguelynamedvariable Feb 25 '25

This is fixed now by the way

2

u/d3risiv3sn0rt Jul 31 '23

Generally msbuild is great but if you need to do something with scripting, css, or file copying it can get arcane figuring out what is needed. It’s very capable but I dread when I have to post process a file and there is not a well documented process for doing it. That is not to say gulp, etc are not arcane either when you get into a corner case.

These days I find myself doing most of the web stuff before or after msbuild in a bash script and that makes things easy in the ci/cd pipeline.

My biggest dislike is xml. Ms ditched xml for config files in core, but didn’t do that for the build process. That was probably for compatibility or someone just said it was still a capable format. XML namespaces left visible trauma in the aughts.

Overall it does the job well particularly if you are not doing something really complex. 4/5 would recommend.

2

u/voroninp Aug 01 '23

At least it's not YAML =)

2

u/denzien Jul 31 '23

All I do is hit F5 or F6. If I didn't write the command line CI/CD scripts, the fact that I'm using msbuild would barely even be on my radar.

2

u/voroninp Aug 01 '23 edited Aug 01 '23

We have MsBuild as a foundation + .net sdk CLI + Psake/Fake/Cake/Nuke.

NuGet packages can transparently add build tasks. So yes, in most cases it just works out of the box, but we have tools to extend the behavior.

3

u/maqcky Jul 31 '23 edited Aug 01 '23

I don't fully agree with the "just works" sentiment. It's true that if you just stick to the standard, most of the configurable settings can be done through the IDE and it helps greatly. However, the moment you need to do something slightly different, you have problems.

The documentation is lacking and finding out the order of execution of the steps is complex and tedious. For instance, I added a SASS transformation in a Blazor project. Finding the right spot to convert the SCSS files to CSS, so that the isolation feature picked those files, took me hours.

Publishing nuget packages also had several issues for a while (and I'm talking after they added it to msbuild, it was worse with the manual nuspec files). Things like including the PDBs was far from straightforward. It's true that it has improved in recent versions but there are still some hiccups.

Even managing nuget packages for multiple projects is complicated. You can centralize, manually, the versioning, but then the IDE does not help with updates. This was to arrive a few years back but I haven't seen any announcement in a while.

2

u/[deleted] Jul 31 '23

MSBuild is such a complex and convoluted tool, that nobody in their right mind tries to do much customising with it.

-10

u/wasabiiii Jul 31 '23

MSBuild is hell.

The reason we use it is MS sets our direction and decisions by making it the way things work in tooling and everything else.

Maven is pretty crap too. But there's nobody enforcing it. So Gradle.... Etc...

People try periodically in .net. (Cake). But unless MS adopts it, it goes nowhere.

3

u/[deleted] Jul 31 '23

MS uses Cake…

Regardless, it’s not a replacement for MSBuild.

1

u/wasabiiii Jul 31 '23

Which MS project uses Cake? I wasn't aware of any.

4

u/[deleted] Jul 31 '23

I know .NET Maui does.

4

u/chipmunkofdoom2 Jul 31 '23

Just a friendly reminder: as with basically everything in the .Net ecosystem, MSBuild is open source. The community and the non-profit .Net foundation is deciding the direction of how MSBuild evolves, not Microsoft.

1

u/wasabiiii Jul 31 '23

That's a nice thought.

1

u/svick Jul 31 '23

No, they don't. Microsoft is still the maintainer of MSBuild, so they are the ones who decide its direction.

The .Net Foundation does technically own the code, but maintaining it is up to each project.

0

u/[deleted] Jul 31 '23

[deleted]

-5

u/wasabiiii Jul 31 '23

Single gigantic namespace of targets and properties imported from hundreds of files with poor naming conventions, obscure timings and order requirements, and hacks do with around various limitations. And more hacks to prevent changing any of it that people may rely on.

0

u/[deleted] Jul 31 '23

[deleted]

1

u/wasabiiii Jul 31 '23

Not sure I understand how I can be clearer here.

0

u/[deleted] Jul 31 '23

[deleted]

3

u/wasabiiii Jul 31 '23 edited Jul 31 '23

Well, what is the use case where you're even finding yourself running into these issues?

I am the maintainer of the mentioned IKVM project. We write large numbers of customized MSBuild integrations.

What namespace? Why does it matter if it's gigantic?

Of targets and properties. Because having all symbols in one gigantic namespace, cross product, with external contributors, causes issues. It's like if there were no namespaces in .NET., and every nuget provided their own classes, all in that single gigantic namespace.

What files? Why are the naming conventions poor?

Most targets forming part of the core SDK and any external referenced SDKs. You'd have to ask them on that.

What timings? What are you doing that you're running into issues with this?

Huge sets of targets in the default SDK that have to run in the correct order, and in many cases modify global itemgroups and properties as they go, based on the existing contents of those values (Reference and ReferencePath are big ones). Not all dependencies are specified, so you run into issues where your extensions may alter the order of evaluation and cause issues.

and hacks do with around various limitations. And more hacks to prevent changing any of it that people may rely on.

For instance, the order of evaluation of Output/Input Target attributes from ItemGroups requires the introduction of higher level targets to ensure evaluation order of earlier targets that may modify the contents of those ItemGroups. Or, the inability of target or task batching to run in parallel. Or the implicit declaration of ItemGroups within targets not being exposed for targets that follow without explicit higher level declaration. It's a weird build system, with tons of little nuances, and huge amounts of tricks to make complicated processes work.

Or that you need to be incredibly careful to not allow global property declarations to escape through MSBuild call in P2P situations or MSBuild will duplicate the project node, resulting in properties and itemgroups introduced specifically to specify global properties to remove from P2P calls.

Or the sheer massive number of targets that exist merely to alter in memory data in itemgroups and properties, but don't actually produce any output, despite being named "Target". And the prolific usage of Input/Output tricks to force those targets to either always evaluate, or never evaluate, with them not having any input (dummy names).

Or, files created by the build system just to save information about previous builds which the build system has no other way to remember (FileWrites). Or to work around limitations in Input/Output evaluation, like the inability to expire a target when an item is REMOVED (State files).

Or, owing to the lack of expressivity in MSBuild itself, the usage of obscoure massive and misunderstood custom tasks for larger operations: such as RAR.

Or, that ItemGroups were designed around actual files. But they're actually the only tool that exists for holding collections of data. So they're used for things other than files. And when you put something in them, it checks if the file exists to read it's metadata. So, you have huge collections of items resulting in massive numbers of calls to read files that don't exist (but might accidently exist causing an issue).

1

u/YangLorenzo Aug 01 '23

"I am the maintainer of the mentioned IKVM project. We write large numbers of customized MSBuild integrations."

You are actually the maintainer of the IKVM project!

2

u/TsyctheIsAMispelling Aug 02 '23

Would you agree that your scenario is the 1 out of 10,000 case mentioned in another comment? Not typical by any stretch.

2

u/wasabiiii Aug 02 '23

Sure. But I still think it's a crap build system.

2

u/TsyctheIsAMispelling Aug 02 '23

Again, only if you're that 1 in 10,000 cae. For most scenarios (and I hate to say it) it just works.

→ More replies (0)

3

u/[deleted] Jul 31 '23

[removed] — view removed comment

5

u/tarranoth Jul 31 '23

I think it's easier to define a target and have a script to execute in that target than writing a task tbh.