-
Notifications
You must be signed in to change notification settings - Fork 934
Update SHFB in order to build documentation without MSBuild #3083
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After de-installing my old SHFB and re-installing the latest one, rebooting as asked, I get this error when attempting a nant api
in the doc folder:
nhibernate-core\doc> ..\Tools\nant\bin\NAnt.exe api
...
[exec] Building E:\Projets\nhibernate\nhibernate-core\doc\NHibernate.shfbproj
[exec] Initializing
[exec] SHFB : error BE0071: Unable to locate information for the project framework version 'v4.0.30319' or a suitable redirected version on this system. See error number help topic for details. [E:\Projets\nhibernate\nhibernate-core\doc\NHibernate.shfbproj]
According to the project help, my setup would miss an adequate targeting pack.
But I have the 4.6.1 installed, which should do the job. (And also older ones: 4.5.1 and 4.5.2; and newer ones: 4.7.2, 4.8.)
Is there another thing I would miss? If yes, the "prerequisite" section of the readme needs some additional update.
That is very strange |
This reverts commit 81f3dd9.
I might know why. Try running |
Sorry for the delay, I attempt right now, it fails with the same error.
The build log does not give more clues:
The Ci does not validate that build, since the API reference is not built by default. That is currently only a manual build done by whoever wishes to have that doc generated from NHibernate xml comments. This has been quite a long time since I have last tested it. Has anyone else tested it? |
Try with Also, what version of SHFB you have? |
global.json? |
Normally global.json does not apply to the old .Net Framework, or am I wrong? Still I have tried after deleting the one in nhibernate sources since a relatively recent PR: same result. |
Sandcastle builder 22.2.6.0 Tried Once finished I will try again from within VS ps command line. |
It does still fail from VS powershell developper command line. No idea why. And it goes on working from windows cmd.exe. I run my VS with administrative rights by default (having projects bound to the desktop IIS). Trying again while running it without administrative rights does also fail. So the only thing I see, there seems to be some discrepancies in how the command line runs when embedded within VS versus run directly, at least for my setup. I cannot find out what, excepted the locale is not the same: English language under VS, French when directly run. I am not expecting this to be the culprit, especially since it would mean French locale would be required to have it work under my system, which would be very strange. I would expect the opposite, if locale is involved. Anyway, putting aside the troubles of my setup, I approve. |
Yep, I get the same result from Dev Command Prompt |
@fredericDelaporte this should fix the issue you were having. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now works both from within VS and out of it.
No description provided.