Intellisense with auto generated files
Hello all,
Ok, my "issue" is kind of exotic, but if there's a way to solve it, I'll be the happiest guy! :)
I have two projects: A & B, B references A.
For A, I have a MS Build Custom Build Task that generates a .cs file and compiles it. So the code generated is not part of A's sources but part of the DLL/PDB.
With Resharper I can't see the generated content from B. I guess that for projects in the solution, Resharper builds intellisense by parsing their source and not the assembly.
It's really important for me to have both projects in the solution, so please don't tell me to edit them in separate instances of Visual Studio...
Is there a way to solve this ?
Thanks!
Please sign in to leave a comment.
is there any reason against adding the generated source to your solution?
Regrads
Klaus
Klaus is right.
We also use wsdl.exe to generate a web service proxy. By adding the proxy to project (Include in project) ReSharper knows it.
Well, I thought about that, but:
1) I don't know how to do that inside a MSBuild Custom Build Task.
2) As the file is generated at build time I thought it was best to not add it to the project, maybe I'm wrong...
I'm sorry but I don't understand at all your point here.
You could
yep, I thought about that after your first reply and I think I'm going to do that. It's not what I wanted but intellisense will work and it's the most important for me right now.
thank you for your advices.