godotengine / godotengine/godot

The .csproj file (.NET) changes randomly - GodotTargetPlatform changed to android

Open
#112,082 1 comment 0 reactions 0 assignees View on GitHub
bug needs testing topic:dotnet
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

The problem occurs random in 4.5.stable.mono and 4.4.1.stable.mono.
I work in Godot with Forward+
I work with Visual Studio 2022 and the new VS 2026 (Insider) version
I also use Resharper for Visual Studio.

### System information

Godot v4.5.stable.mono - Windows 11 (build 26200) & Windows 10 - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 5080 (NVIDIA; 32.0.15.8157) - AMD Ryzen 9 9950X3D 16-Core Processor (32 threads) - 61.58 GiB memory

### Issue description

The .csproj file changes randomly - GodotTargetPlatform changed to android

Parts of my .csproj are deleted and the GodotTargetPlatform is changed to android.

Befor:
```

net8.0
true













```

After:
```

net8.0
net9.0
true

```

This often happens when I change something in the code via Visual Studio while the Godot Engine is open in the background.

Image

### Steps to reproduce

Unfortunately, I can't reproduce it; it only happens once every 1-2 days.
All I know is that when it happens, I'm working with Visual Studio.

### Minimal reproduction project (MRP)

Unfortunately, I can't reproduce it; it only happens once every 1-2 days.
It is a .NET-specific problem.

Contributor guide

Open the contributing guide

Research direction

Start with the shown .csproj and investigate how Godot and Visual Studio modify it while the project is open. The issue has no reliable reproduction, so first establish which operation changes or deletes the project entries and why GodotTargetPlatform becomes android. Done means reproducing the mutation and preventing unintended .csproj changes without breaking the Android target configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.