Skip to content

Commit

Permalink
add: setup automatic versionning (and remove Rider AssemblyInfo defau…
Browse files Browse the repository at this point in the history
…lts)
  • Loading branch information
ItsShamed committed Jun 13, 2022
1 parent d278a50 commit 1294105
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
22 changes: 20 additions & 2 deletions OsuPackImporter/OsuPackImporter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,35 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<OutputType>Exe</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<Nullable>enable</Nullable>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishReadyToRun>true</PublishReadyToRun>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<Company>Kirutsu</Company>
<AssemblyTitle>OsuPackImporter</AssemblyTitle>
<AssemblyName>OsuPackImporter</AssemblyName>
<ProductName>OsuPackImporter</ProductName>
<Copyright>Copyright © Kirutsu 2022. Licensed under the MIT license</Copyright>
</PropertyGroup>
<PropertyGroup>
<MinVerVerbosity>detailed</MinVerVerbosity>
</PropertyGroup>
<Target Name="OsuPackImporterVersionning" AfterTargets="MinVer">
<Message Importance="high" Text="Versionning build $(MinVerMajor).$(MinVerMinor).$(MinVerPatch)"/>
<PropertyGroup>
<AssemblyVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).0</AssemblyVersion>
<FileVersion>$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).0</FileVersion>
</PropertyGroup>
</Target>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="MinVer" Version="4.0.0" />
<PackageReference Include="MinVer" Version="4.1.0-rc.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="OsuParsers" Version="1.7.1" />
<PackageReference Include="SharpCompress" Version="0.31.0" />
<PackageReference Include="Spectre.Console" Version="0.44.0" />
Expand Down
20 changes: 10 additions & 10 deletions OsuPackImporter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OsuPackImporter")]
[assembly: AssemblyDescription("Import osu! beatmap packs as collections in the game")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Kirutsu")]
[assembly: AssemblyProduct("OsuPackImporter")]
[assembly: AssemblyCopyright("Copyright © Kirutsu 2022. Licensed under the MIT license")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// [assembly: AssemblyTitle("OsuPackImporter")]
// [assembly: AssemblyDescription("Import osu! beatmap packs as collections in the game")]
// [assembly: AssemblyConfiguration("")]
// [assembly: AssemblyCompany("Kirutsu")]
// [assembly: AssemblyProduct("OsuPackImporter")]
// [assembly: AssemblyCopyright("Copyright © Kirutsu 2022. Licensed under the MIT license")]
// [assembly: AssemblyTrademark("")]
// [assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand All @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.0")]
[assembly: AssemblyFileVersion("0.1.0")]
// [assembly: AssemblyVersion("0.1.0")]
// [assembly: AssemblyFileVersion("0.1.0")]

0 comments on commit 1294105

Please sign in to comment.