Closed willson556 closed 1 year ago
Has anyone had a chance to look into this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.
I got something similar, also happening with new SDK style projects and regarding ResolveComReference.
But I think it startet with docfx version 2.44.
The error I got is the following:
[19-08-12 09:14:17.192]Warning:[MetadataCommand.ExtractMetadata](XXX.sln)Workspace failed with: [Failure] Msbuild failed when processing the file 'XY.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets: (2729, 5): Die ResolveComReference-Aufgabe konnte nicht aus "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" instanziiert werden. Die Datei oder Assembly "Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets: (2729, 5): Die "ResolveComReference"-Aufgabe wurde falsch deklariert, falsch verwendet oder konnte bei der Erstellung nicht ausgeführt werden. Überprüfen Sie die Schreibweise des Aufgaben- und des Assemblynamens.
I have no idea why the error message is partly german. It states something like:
The ResolveComReference-task could not be instantiated. The file or assembly "Microsoft.Build" or a dependency could not be found.
and the second part something like:
The ResolveComReference-task is declared wrong, applied wron or could not be executed upon creation. Check the spelling of the task and the assembly name.
The error occurs, when a SDK-style project with COM references is added to the solution.
It appears the issue was resolved in the latest version:
DocFX Version Used:
docfx.console 2.40.4
withVS Pro 15.9.4
Template used:
default
Steps to Reproduce:
MSBuild.exe
.build.bat
in https://github.com/willson556/DocFXCOMReferenceBug repo.