How to get this working with VS Code #218
Replies: 2 comments 8 replies
-
What do you mean by "nothing happens on build"? VS Code doesn't build code. The build happens with the .NET CLI, and that works: What I see failing isn't the build, but that Omnisharp, which provides the C# language service experience in VS Code, isn't running the code generation in memory, such that VS Code shows squiggles and "Problems" as if the code gen hadn't happened, although the build actually works. I don't know what it would take for VS Code to take source generators into account. That is probably a good question for the Omnisharp folks. As I don't know anyone who works on that, I wonder if @jinujoseph has any ideas. |
Beta Was this translation helpful? Give feedback.
-
I've decided to open an issue on OmniSharp/omnisharp-roslyn since the previous thread ended with several resolved Issues while seemingly not resolving this one. |
Beta Was this translation helpful? Give feedback.
-
I've just added the package to a vanilla class library in latest VS Code. I'm a little rusty with this stuff, but I can't for the life of me figure out how to get the code generation working. I've followed the instructions with the
NativeMethods.txt
but nothing happens on build. The animated gif indicates it should generate some code.Beta Was this translation helpful? Give feedback.
All reactions