Struggling to get this to work. Code doesn't compile #662
Replies: 3 comments 5 replies
-
The most common reason for this that any Python files are missing the "Additional File" tag in the csproj: |
Beta Was this translation helpful? Give feedback.
-
@tonybaloney Can you help me with this issue? It seems like the analyzer isn’t running to process the Python scripts and generate the extension methods. The methods don’t show up in IntelliSense, and when I compile the C# project that references the CSProj containing the scripts, I get the following error: 'IPythonEnvironment' does not contain a definition for 'ObjectProcessor' and no accessible extension method 'ObjectProcessor' accepting a first argument of type 'IPythonEnvironment' could be found (are you missing a using directive or an assembly reference?) . 'ObjectProcessor' is the file name of the python script. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’ve been trying to get started with CSnakes but running into roadblocks. I downloaded the repo and first tried to compile the SimpleSample project, then the WebApp project in the Simple folder. Neither will compile in Visual Studio 2022 targeting .NET 8.
I also tried setting up CSnakes.SourceGeneration, but it doesn’t seem to be generating any extension methods (e.g., the expected extension method is missing).
Has anyone else run into this, or could point me in the right direction? I’d really appreciate any help getting this up and running.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions