0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 08:10:45 -05:00
modules/project/SPT.Common/SPT.Common.csproj
2024-05-21 19:10:17 +01:00

54 lines
1.9 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.0.0.0</Version>
<TargetFramework>net471</TargetFramework>
<AssemblyName>spt-common</AssemblyName>
<Configuration>Release</Configuration>
</PropertyGroup>
<PropertyGroup>
<Company>SPT</Company>
<Copyright>Copyright @ SPT 2024</Copyright>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Net.http" />
<Reference Include="bsg.componentace.compression.libs.zlib" HintPath="..\Shared\Managed\bsg.componentace.compression.libs.zlib.dll" Private="False" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" ExcludeAssets="runtime" PrivateAssets="all">
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>
<!-- Modified version of the BepInEx.PluginInfoProps plugin info generator -->
<Target Name="AddGeneratedFile" BeforeTargets="BeforeCompile;CoreCompile" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)GeneratedFile.cs">
<PropertyGroup>
<BepInExPluginVersion Condition="'$(BepInExPluginVersion)' == ''">$(Version)</BepInExPluginVersion>
<GeneratedText>
// --- Autogenerated file ---
// ----- Do not modify! -----
namespace $(RootNamespace)
{
public static class SPTPluginInfo
{
public const string PLUGIN_VERSION = "$(BepInExPluginVersion)"%3B
}
}
</GeneratedText>
<GeneratedFilePath>.\SPTPluginInfo.cs</GeneratedFilePath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(GeneratedFilePath)" />
<FileWrites Include="$(GeneratedFilePath)" />
</ItemGroup>
<WriteLinesToFile Lines="$(GeneratedText)" File="$(GeneratedFilePath)" Overwrite="true" />
</Target>
</Project>