-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS2019 only: NullReferenceException when generating API for DotNet Standard and Core projects #4869
Comments
we have what appears to the same issue. Only VS 2019 installed, both preview and normal. This is the full error
The build used to work with 2.38.1 but having to jump through some hoops with 2017 build tools and custom env vars used ... but this does not work with azure pipelines. |
We have the same problem. Is there any information until when the bug will be fixed? |
It looks like missing a required component in VS 2019. Could you try install Build Tools for VS2019 |
Installing Build Tools VS2019 does not solve the issue (also dealing with this). |
This worked for me, i had to install VS2019 build tools and i also had to ensure that NET Core build tools were installed too (see image dotnet/msbuild#2532 (comment)) I also had to make sure the other hacks like setting I just don't understand why this all doesn't 'just work' by having full Visual Studio installed, why would i also need build tools? |
@Shazwazza This is tracked in #4782. I will fix it soon.
|
tracked in #4782 |
Operation System: Windows
DocFX Version Used: 2.43.2.0
Steps to Reproduce:
Expected Behavior:
API is processed
Actual Behavior:
Warning: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. Ignored.
followed by:
Error: System.NullReferenceException: Object reference not set to an instance of an object.
I downloaded the source, and the warning occurs in ExtractMetaDataWorker at line 82 with an inner exception of:
{"Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.":"Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}
I do not have VS2017 installed, only VS2019. The release notes show that this is to be supported as of Version 2.43.1 (fixed by issue #4437).
The text was updated successfully, but these errors were encountered: