Skip to content

Commit 2cc6efd

Browse files
committed
Do not reference Grynwald.MdDocs assembly from DemoProject
It seems like there is a compiler bug that was triggered by upgrading the Microsoft.Extensions.Configuration packages in Grynwald.MdDocs.Common. Because the upgrade brings in a new version of System.Text.Json which defines System.ObsoleteAttribute as internal class, the compiler can no longer resolve the reference to the attribute in the XML documentation comments (e.g. <see cref=".." />). This seems to be occurrence of the bug described here: dotnet/roslyn#4033 Removing the reference from the demo project (we need to keep the project reference so projects are built in the right order) fixes the problem, since System.Text.Json is no longer included in the references of that project.
1 parent b3a8e00 commit 2cc6efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MdDocs.ApiReference.DemoProject/Grynwald.MdDocs.ApiReference.DemoProject.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<ProjectReference Include="..\MdDocs\Grynwald.MdDocs.csproj" />
19+
<ProjectReference Include="..\MdDocs\Grynwald.MdDocs.csproj" PrivateAssets="all" ReferenceOutputAssembly="false" />
2020
</ItemGroup>
2121

2222

0 commit comments

Comments
 (0)