You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
The editor no longer needs to create temporary instances to get the default values. The initializer values of the exported properties are still evaluated at runtime. For example, in the following example, `GetInitialValue()` will be called when first looks for default values: ``` [Export] int MyValue = GetInitialValue(); ``` Exporting fields with a non-supported type now results in a compiler error rather than a runtime error when the script is used.
34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net5.0</TargetFramework>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- $(GodotProjectDir) would normally be defined by the Godot.NET.Sdk -->
|
|
<GodotProjectDir>$(MSBuildProjectDirectory)</GodotProjectDir>
|
|
<!-- For compiling GetGodotPropertyDefaultValues. -->
|
|
<DefineConstants>$(DefineConstants);TOOLS</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- The emitted files are not part of the compilation nor design.
|
|
They're only for peeking at the generated sources. Sometimes the
|
|
emitted files get corrupted, but that won't break anything. -->
|
|
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
|
|
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GeneratedFiles</CompilerGeneratedFilesOutputPath>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\..\glue\GodotSharp\GodotSharp\GodotSharp.csproj">
|
|
<Private>False</Private>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\Godot.SourceGenerators\Godot.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
|
|
</ItemGroup>
|
|
|
|
<!-- This file is imported automatically when using PackageReference to
|
|
reference Godot.SourceGenerators, but not when using ProjectReference -->
|
|
<Import Project="..\Godot.SourceGenerators\Godot.SourceGenerators.props" />
|
|
|
|
</Project>
|