PortProxyGUI.1.4.0
This commit is contained in:
parent
edfa5e87e3
commit
ae85166efa
|
@ -15,10 +15,9 @@ namespace PortProxyGUI.Data
|
|||
public static ApplicationDbScope FromFile(string file)
|
||||
{
|
||||
var dir = Path.GetDirectoryName(file);
|
||||
var fileName = Path.GetFileName(file);
|
||||
|
||||
if (!Directory.Exists(dir)) Directory.CreateDirectory(dir);
|
||||
if (!File.Exists(fileName))
|
||||
if (!File.Exists(file))
|
||||
{
|
||||
#if NETCOREAPP3_0_OR_GREATER
|
||||
#else
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFrameworks>net6.0-windows;netcoreapp3.1;net35;net451</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0-windows;net35;net451</TargetFrameworks>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<Authors>zmjack</Authors>
|
||||
|
|
|
@ -9,7 +9,13 @@ namespace PortProxyGUI
|
|||
{
|
||||
static class Program
|
||||
{
|
||||
public static readonly ApplicationDbScope Database = ApplicationDbScope.FromFile(ApplicationDbScope.AppDbFile);
|
||||
public static readonly ApplicationDbScope Database = ApplicationDbScope.FromFile(
|
||||
Path.Combine(
|
||||
Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
|
||||
"PortProxyGUI"
|
||||
), "config.db"
|
||||
));
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
|
|
Loading…
Reference in New Issue