Comments (7)
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.
I don't suppose you have a repo where I could try replicate this, or any replication steps?
from buildalyzer.
@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:
- Clone PCLMock and switch to the
netstandard
branch - Open PCLMock in VS2017
- Set PCLMock.CodeGeneration.Console as the startup project
- 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.
- Set a breakpoint in Generator.cs line 69 (in
GenerateMocksAsync
) - 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.
from buildalyzer.
OK, forget the above repro instructions - I've recreated this in a very simple project, attached.
Instructions:
- Unzip
- Open BuildalyzerRepro.sln
- 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.
from buildalyzer.
Cool - that's a perfect repro, thanks. I'll take a look as soon as I get a chance.
from buildalyzer.
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.
I can no longer repro this with 1.0.0
. Thanks!
from buildalyzer.
Related Issues (20)
- Support for .Net Standard 2.0 HOT 2
- `PublishSingleFile` breaks `IProjectAnalyzer.Build()` HOT 17
- Version number not available for packages added using GlobalPackageReference in Directory.Packages.props HOT 7
- Unsupported log file version HOT 8
- Cache dotnet info results per global.json file HOT 5
- Error when trying to read dotnet --info HOT 3
- multiple Buildalyzer.Tests unit tests are failing HOT 3
- Make working directory used by ProcessRunner configurable HOT 3
- [Discussion] Calling `GetCompilationAsync` on ASP.NET Framework project returns empty compilation HOT 3
- Help offered HOT 1
- Could not load file or assembly `NuGet.Frameworks` HOT 16
- Build/assembly reference not found errors due to random sorting of the projects in the Workspace when loading projects from solution file HOT 9
- Xml documentation is missing for imported symbols in Roslyn Projects HOT 3
- Looking For A New Maintainer HOT 4
- Sponsoring HOT 4
- Coding style, static code analysis, and versioning HOT 15
- Immutability HOT 3
- Targeting netstandard HOT 1
- Error running on macos-14-arm64 image
- Buildalyzer hangs if build does not start
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildalyzer.