mirror of
https://github.com/TheJordanDev/PEAK-JordanMod.git
synced 2026-10-17 08:05:25 +02:00
Project Setup
This commit is contained in:
58
Directory.Build.props
Normal file
58
Directory.Build.props
Normal file
@@ -0,0 +1,58 @@
|
||||
<Project>
|
||||
<!--
|
||||
This is a special file that contains shared configuration
|
||||
for all project files in subdirectories.
|
||||
-->
|
||||
|
||||
<!-- Import our shared user configuration file -->
|
||||
<Import
|
||||
Project="$(SolutionRoot)Config.Build.user.props"
|
||||
Condition="Exists('$(SolutionRoot)Config.Build.user.props')"
|
||||
/>
|
||||
|
||||
<!-- Primary configuration for the project -->
|
||||
<PropertyGroup>
|
||||
<!-- Use latest C# version. -->
|
||||
<LangVersion>latest</LangVersion>
|
||||
<!-- See: https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references -->
|
||||
<Nullable>enable</Nullable>
|
||||
<!-- Build, and other generated files go nicely into artifacts/ directory. -->
|
||||
<UseArtifactsOutput>true</UseArtifactsOutput>
|
||||
<!-- Enable debug symbols. This will show source code line numbers in stack traces. -->
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>embedded</DebugType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
||||
<!-- Substitute full path to this directory with ./, hiding it from debug symbols. -->
|
||||
<PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=./</PathMap>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Custom props -->
|
||||
<PropertyGroup>
|
||||
<!-- Define a variable that points to this directory. -->
|
||||
<SolutionRoot>$(MSBuildThisFileDirectory)</SolutionRoot>
|
||||
<!-- Default values for game files. -->
|
||||
<PathBeforeSteam Condition="'$([MSBuild]::IsOSUnixLike())' == 'true'">$(HOME)/.local/share/</PathBeforeSteam>
|
||||
<PathBeforeSteam Condition="'$([MSBuild]::IsOSUnixLike())' != 'true'">$(MSBuildProgramFiles32)/</PathBeforeSteam>
|
||||
<PeakGameRootDir Condition="$(PeakGameRootDir) == ''">$(PathBeforeSteam)Steam/steamapps/common/PEAK/</PeakGameRootDir>
|
||||
<PeakPluginsDir Condition="$(PeakPluginsDir) == ''">$(PeakGameRootDir)/BepInEx/plugins/</PeakPluginsDir>
|
||||
<ManagedDir>$(PeakGameRootDir)/PEAK_Data/Managed/</ManagedDir>
|
||||
<ProjectPluginDir>$(PeakPluginsDir)\$(AssemblyName)</ProjectPluginDir>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- <Target Name="CopyToGamePlugins" AfterTargets="Build">
|
||||
<ItemGroup>
|
||||
<BuiltFiles Include="$(TargetPath)" />
|
||||
<BuiltFiles Include="$(TargetDir)$(TargetName).pdb" Condition="Exists('$(TargetDir)$(TargetName).pdb')" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<ProjectPluginDir>$(PeakPluginsDir)\$(MSBuildProjectName)</ProjectPluginDir>
|
||||
</PropertyGroup>
|
||||
|
||||
<Copy SourceFiles="@(BuiltFiles)" DestinationFolder="$(ProjectPluginDir)" SkipUnchangedFiles="true" />
|
||||
<Message Text="Copied plugin files to: $(ProjectPluginDir)" Importance="high" />
|
||||
</Target> -->
|
||||
|
||||
<Import Project="$(SolutionRoot)Config.Build.targets" Condition="Exists('$(SolutionRoot)Config.Build.targets')" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user