-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathOxide.Core.csproj
More file actions
46 lines (46 loc) · 2.17 KB
/
Oxide.Core.csproj
File metadata and controls
46 lines (46 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<Import Project="..\netfx.props" />
<PropertyGroup>
<Version>2.0.0</Version>
<AssemblyName>Oxide.Core</AssemblyName>
<Authors>Oxide Team and Contributors</Authors>
<Copyright>(c) 2013-$([System.DateTime]::Now.Year) $(Authors)</Copyright>
<Description>Core component for the Oxide modding framework</Description>
<RepositoryUrl>https://github.com/OxideMod/Oxide.Core</RepositoryUrl>
<PackageIconUrl>icon.png</PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<TargetFrameworks>net35;net40;net45;net46;net48;netstandard2.0;netstandard2.1</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<NoWarn>NU1701</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Lib.Harmony" Version="2.3.1.1" />
<PackageReference Include="Oxide.Common" Version="2.0.38-develop" />
<PackageReference Include="Oxide.References" Version="2.0.*">
<PrivateAssets>contentfiles;analyzers;build</PrivateAssets>
</PackageReference>
<None Include="..\resources\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
<Target Name="AddGitMetadaAssemblyAttributes" BeforeTargets="CoreGenerateAssemblyInfo">
<Exec Command="git name-rev --name-only HEAD" WorkingDirectory="$(MSBuildProjectDirectory)" ConsoleToMSBuild="True">
<Output TaskParameter="ConsoleOutput" PropertyName="GitBranch" />
</Exec>
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="$(GitBranch) != ''">
<_Parameter1>GitBranch</_Parameter1>
<_Parameter2>$(GitBranch)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Target>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">
<ItemGroup>
<ReferencePath Condition="'%(FileName)' == 'Oxide.References'">
<Aliases>References</Aliases>
</ReferencePath>
</ItemGroup>
</Target>
</Project>