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

[Editor]: Stop Loading .Net Project Assembly when TOOLS is not Defined #98153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Delsin-Yu
Copy link
Contributor

@Delsin-Yu Delsin-Yu commented Oct 13, 2024

Related #78513
Closes #98124

As mentioned here, the TOOLS compiler symbol is crucial for C# editor functionality; the absence of TOOLS can lead to data loss and editor malfunctions (all C# script exports become null and Ineditable) without a proper error message.

This PR ensures that the LoadProjectAssembly fails when the TOOLS compiler symbol does not exist and prints a useful guidance message for the user on addressing the issue.

QQ20241014-5139.mp4

@Delsin-Yu Delsin-Yu requested review from a team as code owners October 13, 2024 21:32
@Delsin-Yu Delsin-Yu force-pushed the dotnet-warn-missing-tool-preprocessor branch from f7c0772 to 83d121d Compare October 13, 2024 21:40
@Delsin-Yu Delsin-Yu force-pushed the dotnet-warn-missing-tool-preprocessor branch from 83d121d to 7e74575 Compare October 13, 2024 21:43
@Chaosus Chaosus added this to the 4.4 milestone Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[.Net] All Script Exports Becomes Null and Ineditable when TOOLS is Not Defined
2 participants