Reproduction steps:
1. Open the attached “Repro.zip” project (or the 3D Core URP template from the Hub)
2. Check that the “Auto Refresh” is set to “Disabled” (Edit > Preferences > Asset Pipeline > Auto Refresh)
3. Create a new C# script, e.g. hello.cs
4. Add in any code modification, e.g. add a compile error by adding random text
5. Return back to the Editor and observe its behavior
Expected result: The Editor doesn’t recompile/reimport the Asset
Actual result: The Editor forces a recompile/reimport of the Script Asset
Reproducible with: 2021.3.27f1, 2022.3.3f1, 2023.1.1f1, 2023.2.0a20
Not Reproducible with: 2021.3.1f1
Reproducible on: Windows 10 Pro (22H2)
Not Reproducible on: MacOS in 2022/2023
Note: The reproduction is quite finicky, sometimes it required the Editor to be restarted until reproduction occurs
(Update: I found it reproducible everytime on Windows in 2022/2023, using the 3D Core URP project template)