Giter Site home page Giter Site logo

Comments (6)

KirillOsenkov avatar KirillOsenkov commented on July 20, 2024

dotnet CLI uses CoreCLR so we need a .NET Standard version of StructuredLogger.dll not the .NET Framework (Desktop) version.

Try downloading this NuGet package: https://www.nuget.org/packages/Microsoft.Build.Logging.StructuredLogger/1.0.130
and inside it there's the lib\netstandard1.5\StructuredLogger.dll. Try passing that to dotnet build instead of the one you've been passing (the desktop one).

from msbuildstructuredlog.

m0sa avatar m0sa commented on July 20, 2024

Great! Any chance to add that as an option in the GUI?

image

from msbuildstructuredlog.

dsplaisted avatar dsplaisted commented on July 20, 2024

What are the tradeoffs between using the custom structured logger and the new /bl option that's built into MSBuild now?

from msbuildstructuredlog.

KirillOsenkov avatar KirillOsenkov commented on July 20, 2024

BinaryLogger (/bl) will consume less memory and hopefully not OOM on huge builds, whereas the StructuredLogger .buildlog format may OOM on large builds (by design). The /bl .binlog format is streaming and should be constant in terms of memory.

StructuredLogger on the other hand captures the target graph so it is able to show DependsOn list for each target and also order targets slightly better in some cases.

Also StructuredLogger is much more compact since it is not streaming and thus able to use string deduplication, reducing the log file up to 10x smaller as a .binlog for a Binary Logger.

BinaryLogger is replayable and you're able to reconstruct text logs of any verbosity out of it. It is hard to reconstruct text logs of conventional format from a StructuredLogger log.

Other than that they're pretty much equivalent.

from msbuildstructuredlog.

KirillOsenkov avatar KirillOsenkov commented on July 20, 2024

@m0sa how exactly would you like to see dotnet msbuild to be integrated into the UI? Can you make a mockup in MSPaint? I'm not sure I am well familiar with dotnet msbuild and so I don't have a clear idea of how that choice would look to the user. Thanks!

from msbuildstructuredlog.

KirillOsenkov avatar KirillOsenkov commented on July 20, 2024

I'm going to close this as fixed, but please feel free to reopen or open a new one if you feel there's something else I can help with.

from msbuildstructuredlog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.