Giter Site home page Giter Site logo

Comments (7)

kentcb avatar kentcb commented on August 13, 2024 1

And literally the second thing I tried worked. First I tried using latest Buildalyzer (same behavior), then I tried making my executing project a netcore console app instead of a netfx one. That worked.

from buildalyzer.

josephwoodward avatar josephwoodward commented on August 13, 2024

I don't suppose you have a repo where I could try replicate this, or any replication steps?

from buildalyzer.

kentcb avatar kentcb commented on August 13, 2024

@josephwoodward hmm, that will be tricky. I'm using the netstandard branch of my open source PCLMock project, but I am running it against proprietary code. Chances are if you do the same thing against your own SDK-style/netstandard solution you'll see the same problem.

Steps:

  1. Clone PCLMock and switch to the netstandard branch
  2. Open PCLMock in VS2017
  3. Set PCLMock.CodeGeneration.Console as the startup project
  4. Change the properties of the PCLMock.CodeGeneration.Console per the screenshot below. The working dir should be the directory in which your target code is contained. The contents of Mocks.xml shouldn't actually matter (just make valid XML) until we can move past this problem.
  5. Set a breakpoint in Generator.cs line 69 (in GenerateMocksAsync)
  6. Run it!

When the breakpoint is hit, you'll see the project has no referenced projects.

Please let me know if this helps. If I have to create a separate repro project to run against, I will find the time to do so.

image

from buildalyzer.

kentcb avatar kentcb commented on August 13, 2024

OK, forget the above repro instructions - I've recreated this in a very simple project, attached.

Instructions:

  1. Unzip
  2. Open BuildalyzerRepro.sln
  3. Run the app

All it does is load another solution (bundled) and output the project names and their project references. It gets the names right, but not the reference from the ViewModels project to the Utility project.

Digging deeper now - just wanted to post this ahead of my investigations.

BuildalyzerRepro.zip

from buildalyzer.

daveaglick avatar daveaglick commented on August 13, 2024

Cool - that's a perfect repro, thanks. I'll take a look as soon as I get a chance.

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.

kentcb avatar kentcb commented on August 13, 2024

I can no longer repro this with 1.0.0. Thanks!

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.