This commit is contained in:
h z
2025-02-18 11:41:05 +00:00
commit dc3a5bbe28
6 changed files with 121 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
bin/
obj/
/packages/
riderModule.iml
/_ReSharper.Caches/

49
Polonium.Sdk.csproj Normal file
View File

@@ -0,0 +1,49 @@
<Project Sdk="Microsoft.Build.NoTargets/2.0.1">
<Import Project="Sdk/VersionInfo.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Polonium.Sdk</PackageId>
<Nullable>disable</Nullable>
<Version>$(PoloniumSdkVersion)</Version>
<Authors>Hangman</Authors>
<PackageType>MSBuildSdk</PackageType>
<PackageTags>MSBuildSdk</PackageTags>
<IncludeBuildOutput>false</IncludeBuildOutput>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<UsingGodotNETSdk>true</UsingGodotNETSdk>
</PropertyGroup>
<ItemGroup>
<None Include="Sdk/**/*" Pack="true" PackagePath="Sdk" />
</ItemGroup>
<Target Name="GetGodotSdk" BeforeTargets="CoreCompile" >
<RemoveDir Directories="Sdk/GodotSdk" Condition="Exists('Sdk/GodotSdk')" />
<MakeDir Directories="Sdk/GodotSdk" />
<DownloadFile
DestinationFolder="Sdk/GodotSdk"
SourceUrl="https://api.nuget.org/v3-flatcontainer/godot.net.sdk/$(GodotSdkVersion)/godot.net.sdk.$(GodotSdkVersion).nupkg"
/>
<Unzip DestinationFolder="Sdk/GodotSdk" SourceFiles="Sdk/GodotSdk/godot.net.sdk.$(GodotSdkVersion).nupkg" />
</Target>
<Target Name="CleanPreviousPackages" BeforeTargets="Build">
<Message Text="Cleaning Previous Packages " Importance="high" />
<Message Text="Cleaning " Importance="high" />
<ItemGroup>
<ExistingPackages Include="$(OutputPath)*.nupkg" />
</ItemGroup>
<Delete Files="@(ExistingPackages)" ContinueOnError="true" />
</Target>
<Target Name="CopyPackageToLocalFeed" AfterTargets="Pack">
<Message Text="Executing Copy Task" Importance="high" />
<Message Text="OutputPath: $(OutputPath)" Importance="high" />
<ItemGroup>
<NuGetPackages Include="$(OutputPath)*.nupkg" />
</ItemGroup>
<Message Text="Printing pkgs-" Importance="high" />
<Message Text="Pkgs: @(NuGetPackages)" Importance="high" />
<Copy SourceFiles="@(NuGetPackages)" DestinationFolder="/NuGetFeed" />
</Target>
</Project>

40
Polonium.Sdk.sln Normal file
View File

@@ -0,0 +1,40 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Polonium.Sdk", "Polonium.Sdk.csproj", "{2637A20D-9358-4010-B767-9569906194DC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Polonium", "..\Polonium\Polonium.csproj", "{D1A52D2F-A754-4F24-B949-BD535913D8C4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Polonium.Tasks", "..\Polonium.Tasks\Polonium.Tasks.csproj", "{906CC276-B1AF-441C-99AB-5B55F69C502E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Polonium.Generators", "..\Polonium.Generators\Polonium.Generators.csproj", "{1EEAD84F-94F1-49DF-A53A-A7EC6724A3A0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Polonium.Generators.Test", "..\Polonium.Generators.Test\Polonium.Generators.Test.csproj", "{D1D5E0B1-3FB9-4C6A-B3CB-993A1597AF2A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2637A20D-9358-4010-B767-9569906194DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2637A20D-9358-4010-B767-9569906194DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2637A20D-9358-4010-B767-9569906194DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2637A20D-9358-4010-B767-9569906194DC}.Release|Any CPU.Build.0 = Release|Any CPU
{D1A52D2F-A754-4F24-B949-BD535913D8C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1A52D2F-A754-4F24-B949-BD535913D8C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1A52D2F-A754-4F24-B949-BD535913D8C4}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{D1A52D2F-A754-4F24-B949-BD535913D8C4}.Release|Any CPU.Build.0 = Debug|Any CPU
{906CC276-B1AF-441C-99AB-5B55F69C502E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{906CC276-B1AF-441C-99AB-5B55F69C502E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{906CC276-B1AF-441C-99AB-5B55F69C502E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{906CC276-B1AF-441C-99AB-5B55F69C502E}.Release|Any CPU.Build.0 = Release|Any CPU
{1EEAD84F-94F1-49DF-A53A-A7EC6724A3A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EEAD84F-94F1-49DF-A53A-A7EC6724A3A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EEAD84F-94F1-49DF-A53A-A7EC6724A3A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EEAD84F-94F1-49DF-A53A-A7EC6724A3A0}.Release|Any CPU.Build.0 = Release|Any CPU
{D1D5E0B1-3FB9-4C6A-B3CB-993A1597AF2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1D5E0B1-3FB9-4C6A-B3CB-993A1597AF2A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1D5E0B1-3FB9-4C6A-B3CB-993A1597AF2A}.Release|Any CPU.ActiveCfg = Debug|Any CPU
{D1D5E0B1-3FB9-4C6A-B3CB-993A1597AF2A}.Release|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
EndGlobal

9
Sdk/Sdk.props Normal file
View File

@@ -0,0 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)VersionInfo.props" />
<Import Project="$(MSBuildThisFileDirectory)GodotSdk/Sdk/Sdk.props" />
<PropertyGroup>
<TargetFramework Condition="'$(TargetFramework)'==''">net9.0</TargetFramework>
<GodotSdkImportsMicrosoftNetSdk>true</GodotSdkImportsMicrosoftNetSdk>
<UsingPoloniumSdk>true</UsingPoloniumSdk>
</PropertyGroup>
</Project>

9
Sdk/Sdk.targets Normal file
View File

@@ -0,0 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)VersionInfo.props"/>
<Import Project="$(MSBuildThisFileDirectory)GodotSdk/Sdk/Sdk.targets" />
<ItemGroup>
<PackageReference Include="Polonium" Version="$(PoloniumVersion)" />
<PackageReference Include="Polonium.Generators" Version="$(PoloniumGeneratorsVersion)" />
<PackageReference Include="Polonium.Tasks" Version="$(PoloniumTasksVersion)" />
</ItemGroup>
</Project>

9
Sdk/VersionInfo.props Normal file
View File

@@ -0,0 +1,9 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<GodotSdkVersion>4.4.0-beta.3</GodotSdkVersion>
<PoloniumVersion>0.1.1-x</PoloniumVersion>
<PoloniumTasksVersion>0.1.1-x</PoloniumTasksVersion>
<PoloniumGeneratorsVersion>0.1.1-x</PoloniumGeneratorsVersion>
<PoloniumSdkVersion>0.0.1</PoloniumSdkVersion>
</PropertyGroup>
</Project>