Giter Site home page Giter Site logo

Comments (5)

bobuva avatar bobuva commented on August 13, 2024 1

@daveaglick I ran it again using Buildalyzer 1.0.0 and it worked! My only code change was from

IEnumerable<string> references = analyzer.GetReferences();

to

IEnumerable<string> references = analyzer.Build().GetReferences();

Note that I also tried

IEnumerable<string> references = analyzer.Build().GetProjectReferences();

but that returned an empty collection.

from buildalyzer.

daveaglick avatar daveaglick commented on August 13, 2024

Thanks for the report. Buildalyzer should be working under all .NET Core 2.x scenarios except preview SDKs. I'm working on the problem with previews, but as far as I can tell it should only appear on systems at runtime when a preview SDK is installed. Does this describe your situation? Typically this failure exhibits itself as compilation failures which can be seen in the Buildalyzer log output - are you able to confirm if you see any errors in the log (you can pass in a logger to Buildalyzer or grab the string log)?

from buildalyzer.

bobuva avatar bobuva commented on August 13, 2024

I am using .NET Core 2.1 preview with the SDKs that come with it. For some reason, when I try to see the log output in a StringWriter (see below) I don't get anything. Even when I write it out in a finally clause.

            StringBuilder sb = new StringBuilder();
            StringWriter writer = new StringWriter(sb);
            AnalyzerManagerOptions options = new AnalyzerManagerOptions();
            options.LogWriter = writer;

from buildalyzer.

daveaglick avatar daveaglick commented on August 13, 2024

Buildalyzer 1.0.0 was released to NuGet last night. Can you please try it out when you get the chance and let me know the status of this issue?

FYI - the Buildalyzer 1.0.0 API has changed significantly. Revised documentation is forthcoming, but I wanted to get the release out there ASAP. Hopefully you'll be able to figure out the differences, but if not the source code of the tests is a good place to look or wait until better docs are out next week.

from buildalyzer.

daveaglick avatar daveaglick commented on August 13, 2024

Great! I'll go ahead and close this then - feel free to open a new issue if you have any other problems.

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.