0

I'm setting up xml comments through properties in project in solution. I want this comments to be seen in other project in same solution. However project and xml being refereenced in bin near .exe isn't enough.

I tried adding the hard link to other project bin folder but it didn't quite work.

I have project tree like:

Solution:

|---ProjectA (referrence to project B)

|---ProjectB (having some summary comments in it generated on build)

I'm using methods from B working as utility methods in project A, but I can't see the summary out of xml. When I'm calling method like _something.doAFlip() there is no description while calling class and method while it is provided alongside .dll in bin/netframework etc. with name: myassembly.dll and myassembly.xml together.

7
  • Are you using visual studio, what version? You don't need to add references to bin folder files at all (and definetly not to the xml doc). Just add a ProjectReference to the other project in the solution and ensure your project has <GenerateDocumentationFile>true</GenerateDocumentationFile> (if csproj 2017 format). Commented May 16, 2019 at 12:57
  • Project A has a refference to B like this: <ItemGroup> <ProjectReference Include="..\xx\ProjectA.csproj" /> </ItemGroup> And Project B has this generatedocumentationfile which is creating documentation, but although it is generated properly (as I think and can see) it is not shown in intellisense in ProjectA while using methods out of Project B. VS version: 15.8.2 Commented May 16, 2019 at 13:07
  • I can see in bin of Project a that there is ProjectB.dll and ProjectB.xml copied but I can't see Intellisense in methods anyway. Any ideas why? Commented May 16, 2019 at 13:14
  • Shouldn't be any reason it isn't showing. Is it showing correctly within Project B? if you hover over methods do you see the xmldoc? Commented May 16, 2019 at 14:10
  • yes it is showing correctly on ProjectB Commented May 16, 2019 at 15:16

1 Answer 1

0

To sum up, the problem weren't located in XML comments. While you have one solution and more projects inside the VS should automatically load all comments from summaries without generated doc.

The problem was itself in class, method and interface and lack of ReSharper. While I was injecting dependencies in ProjectA from ProjectB I was injecting interfaces and not methods. My project had no comments on interfaces and only method and classes were commented. After adding comment to interfaces and functions inside interface I'm able now to see them correctly after injecting in ProjectA :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.