initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<Project>
|
||||
<!-- Generate C# file with the version of all the nupkgs bundled with Godot -->
|
||||
|
||||
<Target Name="SetPropertiesForGenerateGodotNupkgsVersions">
|
||||
<PropertyGroup>
|
||||
<GeneratedGodotNupkgsVersionsFile>$(IntermediateOutputPath)GodotNupkgsVersions.g.cs</GeneratedGodotNupkgsVersionsFile>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
|
||||
<Target Name="GenerateGodotNupkgsVersionsFile"
|
||||
DependsOnTargets="_GenerateGodotNupkgsVersionsFile"
|
||||
BeforeTargets="PrepareForBuild;CompileDesignTime;BeforeCompile;CoreCompile">
|
||||
<ItemGroup>
|
||||
<Compile Include="$(GeneratedGodotNupkgsVersionsFile)" />
|
||||
<FileWrites Include="$(GeneratedGodotNupkgsVersionsFile)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
<Target Name="_GenerateGodotNupkgsVersionsFile"
|
||||
DependsOnTargets="SetPropertiesForGenerateGodotNupkgsVersions"
|
||||
Inputs="$(MSBuildProjectFile);$(MSBuildThisFileDirectory);$(MSBuildProjectFile)\..\..\..\SdkPackageVersions.props"
|
||||
Outputs="$(GeneratedGodotNupkgsVersionsFile)">
|
||||
<PropertyGroup>
|
||||
<GenerateGodotNupkgsVersionsCode><![CDATA[
|
||||
namespace $(RootNamespace)
|
||||
{
|
||||
public class GeneratedGodotNupkgsVersions
|
||||
{
|
||||
public const string GodotNETSdk = "$(PackageVersion_Godot_NET_Sdk)"%3b
|
||||
public const string GodotSourceGenerators = "$(PackageVersion_Godot_SourceGenerators)"%3b
|
||||
public const string GodotSharp = "$(PackageVersion_GodotSharp)"%3b
|
||||
}
|
||||
}
|
||||
]]></GenerateGodotNupkgsVersionsCode>
|
||||
</PropertyGroup>
|
||||
<WriteLinesToFile Lines="$(GenerateGodotNupkgsVersionsCode)"
|
||||
File="$(GeneratedGodotNupkgsVersionsFile)"
|
||||
Overwrite="True" WriteOnlyWhenDifferent="True" />
|
||||
</Target>
|
||||
</Project>
|
Reference in New Issue
Block a user