mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Clean up project file
This commit is contained in:
1 parent
baf4d541ff
commit
3a119f1515
2 files changed
+35
-13
No files matched your search
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
src/.vs
|
.vs
|
||||||
|
src/.vs
|
||||||
src/bin
|
src/bin
|
||||||
src/obj
|
src/obj
|
||||||
src/.editorconfig
|
src/.editorconfig
|
||||||
|
|||||||
+33
-12
@@ -4,18 +4,30 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<langVersion>preview</langVersion>
|
<LangVersion>preview</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Meta Data -->
|
<!-- Git Commit Hash Retrieval -->
|
||||||
|
<Target Name="GetGitCommitHash" BeforeTargets="BeforeBuild">
|
||||||
|
<Exec Command="git rev-parse --short HEAD"
|
||||||
|
ConsoleToMSBuild="true"
|
||||||
|
IgnoreExitCode="true"
|
||||||
|
StandardErrorImportance="low"
|
||||||
|
WorkingDirectory="$(MSBuildProjectDirectory)">
|
||||||
|
<Output TaskParameter="ConsoleOutput" PropertyName="CommitHash" />
|
||||||
|
</Exec>
|
||||||
|
<PropertyGroup Condition="'$(CommitHash)' == ''">
|
||||||
|
<CommitHash>unknown</CommitHash>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<!-- Build Metadata -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<CommitHash Condition="'$(CommitHash)' == ''">unknown</CommitHash>
|
<CommitHash Condition="'$(CommitHash)' == ''">unknown</CommitHash>
|
||||||
<BuildDate>$([System.DateTime]::UtcNow.ToString(MM.dd.yyyy))</BuildDate>
|
<BuildDate>$([System.DateTime]::UtcNow.ToString("MM.dd.yyyy HH:mm"))</BuildDate>
|
||||||
<IsCI Condition="'$(CI)' == 'true' or '$(GITHUB_ACTIONS)' == 'true' or '$(TF_BUILD)' == 'true'">true</IsCI>
|
|
||||||
<IsCI Condition="'$(IsCI)' == ''">false</IsCI>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Build Events -->
|
<!-- Assembly Metadata Attributes -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
|
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
|
||||||
<_Parameter1>CommitHash</_Parameter1>
|
<_Parameter1>CommitHash</_Parameter1>
|
||||||
@@ -25,27 +37,35 @@
|
|||||||
<_Parameter1>BuildDate</_Parameter1>
|
<_Parameter1>BuildDate</_Parameter1>
|
||||||
<_Parameter2>$(BuildDate)</_Parameter2>
|
<_Parameter2>$(BuildDate)</_Parameter2>
|
||||||
</AssemblyAttribute>
|
</AssemblyAttribute>
|
||||||
|
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
|
||||||
|
<_Parameter1>BuildConfiguration</_Parameter1>
|
||||||
|
<_Parameter2>$(Configuration)</_Parameter2>
|
||||||
|
</AssemblyAttribute>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<!-- Game Path Configuration -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<!-- Default to true, can be overridden with -p:CopyToGame=false -->
|
||||||
|
<CopyToGame Condition="'$(CopyToGame)' == ''">true</CopyToGame>
|
||||||
<ModPathFile>build\mod_folder_path</ModPathFile>
|
<ModPathFile>build\mod_folder_path</ModPathFile>
|
||||||
<GamePath Condition="Exists('$(ModPathFile)') and '$(IsCI)' != 'true'">$([System.IO.File]::ReadAllText('$(ModPathFile)').Trim())</GamePath>
|
<GamePath Condition="Exists('$(ModPathFile)') and '$(CopyToGame))' != 'true'">$([System.IO.File]::ReadAllText('$(ModPathFile)').Trim())</GamePath>
|
||||||
<ModsPath>$(GamePath)</ModsPath>
|
<ModsPath>$(GamePath)</ModsPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!-- Copy Mod to Game Folder -->
|
||||||
<Target Name="CopyModToGame" AfterTargets="PostBuildEvent"
|
<Target Name="CopyModToGame" AfterTargets="PostBuildEvent"
|
||||||
Condition="'$(GamePath)' != '' and Exists('$(GamePath)') and '$(IsCI)' != 'true'">
|
Condition="'$(GamePath)' != '' and Exists('$(GamePath)') and '$(CopyToGame))' != 'true'">
|
||||||
<Message Text="Copying mod to $(GamePath)" Importance="high" />
|
<Message Text="Copying mod to $(GamePath)" Importance="high" />
|
||||||
<Copy SourceFiles="$(TargetDir)$(AssemblyName).dll" DestinationFolder="$(GamePath)" SkipUnchangedFiles="true" />
|
<Copy SourceFiles="$(TargetDir)$(AssemblyName).dll" DestinationFolder="$(GamePath)" SkipUnchangedFiles="true" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="WarnIfNoGamePath" AfterTargets="PostBuildEvent"
|
<Target Name="WarnIfNoGamePath" AfterTargets="PostBuildEvent"
|
||||||
Condition="'$(GamePath)' == '' and '$(IsCI)' != 'true'">
|
Condition="'$(GamePath)' == '' and '$(CopyToGame))' != 'true'">
|
||||||
<Warning Text="Game path not found. Set game path in build\mod_folder_path." />
|
<Warning Text="Game path not found. Set game path in build\mod_folder_path." />
|
||||||
<Message Text="Mod was NOT copied to game folder!" Importance="high" />
|
<Message Text="Mod was NOT copied to game folder!" Importance="high" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<!-- Packages -->
|
<!-- NuGet Packages -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2025.11.18" />
|
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2025.11.18" />
|
||||||
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.0.1">
|
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.0.1">
|
||||||
@@ -55,8 +75,9 @@
|
|||||||
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.692" Private="false" ExcludeAssets="runtime;native" />
|
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.692" Private="false" ExcludeAssets="runtime;native" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Resources -->
|
<!-- Embedded Resources -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="Resources\**\*" />
|
<EmbeddedResource Include="Resources\**\*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
Reference in new issue
Block a user