Coder Social home page Coder Social logo

Comments (4)

daveaglick avatar daveaglick commented on June 4, 2024

I suspect this is still a problem in 2.x because I'm still performing restore in a separate MSBuild submission and attaching the binary logger to it and then the main build (even though it's out-of-process now). I can't find the /restore switch documented anywhere though. It would simplify things a bit if I could use it, but I don't want to rely on an unofficial flag that might get removed later. Any more insight into the /restore option?

from buildalyzer.

daveaglick avatar daveaglick commented on June 4, 2024

Update: just remembered dotnet/msbuild#2414 which has information on the flag. Going to take a look at collapsing my separate restore submission into a single MSBuild invocation with the /restore flag.

from buildalyzer.

dfederm avatar dfederm commented on June 4, 2024

It will still require 2 separate and serial builds in the BuildManager, but as long as you use the same loggers collection, it'll log to the same logger.

/restore is an official flag and can be considered a stable feature. In fact, I recommend generally adding it to your Directory.Build.rsp so that it just always happens and you don't have to type it every time (Directory.Build.rsp is a set of command-line switches added to every msbuild.exe command you run from the command-line).

from buildalyzer.

daveaglick avatar daveaglick commented on June 4, 2024

It will still require 2 separate and serial builds in the BuildManager, but as long as you use the same loggers collection, it'll log to the same logger.

I might be able to get away with just one now - in 2.x Buildalyzer was changed/simplified to fork msbuild.exe directly instead of going through the MSBuild APIs. I'm thinking because of that, I should be able to add the /restore switch and it'll just work (same way it would work if running MSBuild directly from the CLI).

Giving it a shot now. If it works, it'll simplify some other stuff too in addition to fixing this logger problem since I won't have to deal with an explicit restore target and managing a separate submission.

from buildalyzer.

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.