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

Godot tries to load .cs file even thoug no node needs it anymore 3.1.2 mono #35481

Closed
GetAGripGal opened this issue Jan 23, 2020 · 4 comments
Closed
Labels

Comments

@GetAGripGal
Copy link

I am using Godot mono 3.1.2

i moved a C# script to a different folder and connected the node to it. however now it doesn't build any more because it is trying to load the script from the other location even though its unused.

@JupiterRider
Copy link

I Can confirm that behaviour. As workaround, you can edit the csproj-File in your Project by Hand:

  <ItemGroup>
    <Compile Include="Properties\AssemblyInfo.cs" /> 
    <Compile Include="scripts\*.cs" /> 
  </ItemGroup>

Mine looks like that.
You need specify the path to new moved cs-Skript or use a wildcard like me.

@FeatherAntennae
Copy link

FeatherAntennae commented Jan 23, 2020

It's a known issue and a limitation of the current C# implementation. (See #12917 )

https://docs.godotengine.org/en/latest/getting_started/scripting/c_sharp/c_sharp_basics.html#current-gotchas-and-known-issues

@GetAGripGal
Copy link
Author

I Can confirm that behaviour. As workaround, you can edit the csproj-File in your Project by Hand:

  <ItemGroup>
    <Compile Include="Properties\AssemblyInfo.cs" /> 
    <Compile Include="scripts\*.cs" /> 
  </ItemGroup>

Mine looks like that.
You need specify the path to new moved cs-Skript or use a wildcard like me.

@JupiterRider Thanks man! that seemed to work!

@Calinou
Copy link
Member

Calinou commented Jan 25, 2020

Duplicate of #12917 – the underlying cause is the same.

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

No branches or pull requests

4 participants