Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use c# when pyscript is installed #344

Open
JustAnotherGameDevWasTaken opened this issue Jul 9, 2022 · 2 comments
Open

Unable to use c# when pyscript is installed #344

JustAnotherGameDevWasTaken opened this issue Jul 9, 2022 · 2 comments

Comments

@JustAnotherGameDevWasTaken

if i install pyscript and then try to create a c# script in the same project, MSBuild goes into the pyscript addons folder and tries to build some cs files in there, which it doesn't like, and the build fails.

@S0u1y
Copy link

S0u1y commented Jan 17, 2025

Also encountering this problem right now.. did I miss something? Or has anyone found a solution?

@S0u1y
Copy link

S0u1y commented Jan 17, 2025

Okay I have found a solution to this.
Simply find your .csproj file and edit it like so:

<Project Sdk="Godot.NET.Sdk/3.3.0">
  <PropertyGroup>
   # [keep these as they are]
  </PropertyGroup>
  <ItemGroup> # [add this]
     <Compile Remove="./addons/**/*.cs" />
  </ItemGroup>
</Project>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants