mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
upgrade<project>: upgrade to .net 5.0
This commit is contained in:
parent
a3f2c672b7
commit
24b175c331
4 changed files with 6 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net46</TargetFramework>
|
<TargetFramework>net5.0-windows</TargetFramework>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
|
|
|
@ -15,7 +15,8 @@ namespace SourceGit.UI {
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Version {
|
public string Version {
|
||||||
get {
|
get {
|
||||||
return "VERSION : " + FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion;
|
Assembly asm = Assembly.GetExecutingAssembly();
|
||||||
|
return "VERSION : " + asm.GetName().Version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -117,8 +117,7 @@ namespace SourceGit.UI {
|
||||||
new Typeface(content.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch),
|
new Typeface(content.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch),
|
||||||
content.FontSize,
|
content.FontSize,
|
||||||
Brushes.Black,
|
Brushes.Black,
|
||||||
new NumberSubstitution(),
|
VisualTreeHelper.GetDpi(this).PixelsPerDip);
|
||||||
TextFormattingMode.Ideal);
|
|
||||||
if (minWidth < formatter.Width) {
|
if (minWidth < formatter.Width) {
|
||||||
content.Document.PageWidth = formatter.Width + 16;
|
content.Document.PageWidth = formatter.Width + 16;
|
||||||
minWidth = formatter.Width;
|
minWidth = formatter.Width;
|
||||||
|
|
|
@ -212,8 +212,7 @@ namespace SourceGit.UI {
|
||||||
new Typeface(leftText.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch),
|
new Typeface(leftText.FontFamily, p.FontStyle, p.FontWeight, p.FontStretch),
|
||||||
leftText.FontSize,
|
leftText.FontSize,
|
||||||
Brushes.Black,
|
Brushes.Black,
|
||||||
new NumberSubstitution(),
|
VisualTreeHelper.GetDpi(this).PixelsPerDip);
|
||||||
TextFormattingMode.Ideal);
|
|
||||||
|
|
||||||
if (minWidth < formatter.Width) minWidth = formatter.Width;
|
if (minWidth < formatter.Width) minWidth = formatter.Width;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue