Skip to content

Commit

Permalink
GitInfo systems added
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Mar 3, 2021
1 parent ad6462d commit 09efefe
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 14 deletions.
12 changes: 5 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[*]
charset = utf-8
end_of_line = crlf

[*.cs]

# CS4014: Task not awaited
Expand All @@ -7,10 +11,4 @@ dotnet_diagnostic.CS4014.severity = error
dotnet_diagnostic.CS1998.severity = silent

# CS1591: Missing XML comment for publicly visible type or member
dotnet_diagnostic.CS1591.severity = silent

# IDE0060: // Remove unused parameter
dotnet_diagnostic.IDE0060.severity = silent

# CS1066: // Optional parameter has no effect
dotnet_diagnostic.CS1066.severity = silent
dotnet_diagnostic.CS1591.severity = silent
21 changes: 17 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
</PropertyGroup>
<!-- To be redefined by GitInfo after restore. -->
<Target Name="GitVersion" />

<Target Name="SetVersion"
BeforeTargets="GetAssemblyVersion;GetPackageVersion"
DependsOnTargets="GitVersion"
Returns="$(PackageVersion)">
<PropertyGroup>
<DevLabel Condition="$(GitCommits) != '0' And $(GitSemVerDashLabel) != ''">.1-dev</DevLabel>
<AssemblyDevLabel Condition="$(GitCommits) != '0'">.1</AssemblyDevLabel>
<FileVersion>$(GitBaseVersionMajor).$(GitBaseVersionMinor).$(GitBaseVersionPatch)$(AssemblyDevLabel)</FileVersion>
<PackageVersion>$(GitBaseVersionMajor).$(GitBaseVersionMinor).$(GitBaseVersionPatch)$(DevLabel)$(GitSemVerDashLabel)</PackageVersion>
<Version>$(GitBaseVersionMajor).$(GitBaseVersionMinor).$(GitBaseVersionPatch)$(AssemblyDevLabel)</Version>
<InformationalVersion>$(PackageVersion)</InformationalVersion>
</PropertyGroup>
</Target>

</Project>
7 changes: 7 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@
<RepositoryUrl>https://github.com/Noggog/Mutagen.Bethesda.FormKeys</RepositoryUrl>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Loqui.Generation" Version="2.6.0" />
<PackageReference Include="Mutagen.Bethesda" Version="0.26.0" />
<PackageReference Include="GitInfo" Version="2.1.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NuGetizer" Version="0.6.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
Expand All @@ -13,11 +13,20 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Mutagen.Bethesda.Core" Version="0.26.0" />
<PackageReference Include="Mutagen.Bethesda.Oblivion" Version="0.26.0" />
<PackageReference Include="GitInfo" Version="2.1.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NuGetizer" Version="0.6.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
Expand All @@ -13,11 +13,20 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Mutagen.Bethesda.Core" Version="0.26.0" />
<PackageReference Include="Mutagen.Bethesda.Skyrim" Version="0.26.0" />
<PackageReference Include="GitInfo" Version="2.1.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NuGetizer" Version="0.6.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
Expand All @@ -13,11 +13,20 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Mutagen.Bethesda.Core" Version="0.26.0" />
<PackageReference Include="Mutagen.Bethesda.Skyrim" Version="0.26.0" />
<PackageReference Include="GitInfo" Version="2.1.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NuGetizer" Version="0.6.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
Expand Down
7 changes: 7 additions & 0 deletions Mutagen.Bethesda.FormKeys.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mutagen.Bethesda.FormKeys.S
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mutagen.Bethesda.FormKeys.Oblivion", "Mutagen.Bethesda.FormKeys.Oblivion\Mutagen.Bethesda.FormKeys.Oblivion.csproj", "{3BF16939-EC72-4FDE-8276-FC542E22BC37}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Files", "Solution Files", "{A1B4C3FA-0D01-40B6-82C8-1D1D3ED4F333}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down

0 comments on commit 09efefe

Please sign in to comment.