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)
|
public static ApplicationDbScope FromFile(string file)
|
||||||
{
|
{
|
||||||
var dir = Path.GetDirectoryName(file);
|
var dir = Path.GetDirectoryName(file);
|
||||||
var fileName = Path.GetFileName(file);
|
|
||||||
|
|
||||||
if (!Directory.Exists(dir)) Directory.CreateDirectory(dir);
|
if (!Directory.Exists(dir)) Directory.CreateDirectory(dir);
|
||||||
if (!File.Exists(fileName))
|
if (!File.Exists(file))
|
||||||
{
|
{
|
||||||
#if NETCOREAPP3_0_OR_GREATER
|
#if NETCOREAPP3_0_OR_GREATER
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFrameworks>net6.0-windows;netcoreapp3.1;net35;net451</TargetFrameworks>
|
<TargetFrameworks>net6.0-windows;net35;net451</TargetFrameworks>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
<Authors>zmjack</Authors>
|
<Authors>zmjack</Authors>
|
||||||
|
|
|
@ -9,7 +9,13 @@ namespace PortProxyGUI
|
||||||
{
|
{
|
||||||
static class Program
|
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>
|
/// <summary>
|
||||||
/// The main entry point for the application.
|
/// The main entry point for the application.
|
||||||
|
|
Loading…
Reference in New Issue