Skip to content

Commit

Permalink
Deprecate old version identification method
Browse files Browse the repository at this point in the history
  • Loading branch information
MirisWisdom committed Jul 9, 2019
1 parent a94e264 commit d7fddca
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
6 changes: 0 additions & 6 deletions src/AmaiSosu.GUI/AmaiSosu.GUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Messages.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Version.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>git describe --tags &gt; "$(ProjectDir)\Resources\Version.txt"</PreBuildEvent>
</PropertyGroup>
</Project>
13 changes: 1 addition & 12 deletions src/AmaiSosu.GUI/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,7 @@ public sealed class Main : INotifyPropertyChanged
/// <summary>
/// Git version.
/// </summary>
public string Version
{
get
{
using (var stream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream(FileNames.AmaiSosuVersion))
using (var reader = new StreamReader(stream ?? throw new FileNotFoundException()))
{
return reader.ReadToEnd().Trim();
}
}
}
public string Version => "build-0000";

/// <summary>
/// Installation path.
Expand Down
3 changes: 0 additions & 3 deletions src/AmaiSosu/AmaiSosu.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>FileNames.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Version.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
1 change: 0 additions & 1 deletion src/AmaiSosu/Resources/Version.txt

This file was deleted.

0 comments on commit d7fddca

Please sign in to comment.