Skip to content

Commit 8ac5136

Browse files
committed
Adding solution items
1 parent 4267857 commit 8ac5136

File tree

8 files changed

+19
-4
lines changed

8 files changed

+19
-4
lines changed

DataCommander.Providers.OleDb/DataCommander.Providers.OleDb.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<UseApplicationTrust>false</UseApplicationTrust>
4747
<BootstrapperEnabled>true</BootstrapperEnabled>
4848
<NuGetPackageImportStamp>742b67de</NuGetPackageImportStamp>
49+
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
4950
</PropertyGroup>
5051
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
5152
<OutputPath>..\DataCommander\bin\Debug\</OutputPath>

DataCommander.Providers.Wmi/DataCommander.Providers.Wmi.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
4646
<UseApplicationTrust>false</UseApplicationTrust>
4747
<BootstrapperEnabled>true</BootstrapperEnabled>
48+
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
4849
</PropertyGroup>
4950
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
5051
<OutputPath>..\DataCommander\bin\Debug\</OutputPath>

DataCommander.Updater/DataCommander.Updater.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<PlatformTarget>AnyCPU</PlatformTarget>

DataCommander.sln

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundation.NetFramework-4.7
3636
EndProject
3737
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataCommander.Updater", "DataCommander.Updater\DataCommander.Updater.csproj", "{0B6B1DFC-696B-457A-A57E-A0BCBA0C463D}"
3838
EndProject
39+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DBA94D33-D30A-408A-96D9-9D573604D3AA}"
40+
ProjectSection(SolutionItems) = preProject
41+
.gitattributes = .gitattributes
42+
.gitignore = .gitignore
43+
LICENSE = LICENSE
44+
README.md = README.md
45+
Version.txt = Version.txt
46+
EndProjectSection
47+
EndProject
3948
Global
4049
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4150
ClientRelease|Any CPU = ClientRelease|Any CPU

DataCommander/Updater.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ await DeploymentApplication.DownloadUpdater(address, updaterDirectory, zipFileNa
4242
DeploymentApplication.ExtractZip(zipFileName, updaterDirectory);
4343

4444
var updaterExeFileName = Path.Combine(updaterDirectory, "DataCommander.Updater.exe");
45-
DeploymentApplication.StartUpdater(updaterExeFileName);
45+
var applicationExeFileName = Assembly.GetEntryAssembly().Location;
46+
DeploymentApplication.StartUpdater(updaterExeFileName, applicationExeFileName);
4647
_updateStarted = true;
4748
}
4849
else
4950
{
5051
var now = UniversalTime.Default.UtcNow;
51-
var when = now.Date.AddDays(1);
52+
var when = now.AddDays(1);
5253
DeploymentCommandRepository.Save(ApplicationName, new CheckForUpdates {When = when});
5354
}
5455
}

Foundation.NetFramework-4.7.1/Foundation.NetFramework-4.7.1.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<AssemblyName>Foundation.NetFramework-4.7.1</AssemblyName>
1212
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14+
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<DebugSymbols>true</DebugSymbols>

Foundation.NetStandard-2.0/Deployment/Application.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public static void ExtractZip(string zipFileName, string updaterDirectory)
5656
File.Delete(zipFileName);
5757
}
5858

59-
public static void StartUpdater(string updaterExeFileName)
59+
public static void StartUpdater(string updaterExeFileName, string applicationExeFileName)
6060
{
6161
var processStartInfo = new ProcessStartInfo();
6262
processStartInfo.FileName = updaterExeFileName;
63-
processStartInfo.Arguments = $"{Quote(Environment.CurrentDirectory)}";
63+
processStartInfo.Arguments = $"{Quote(applicationExeFileName)}";
6464
Process.Start(processStartInfo);
6565
}
6666

Version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.1

0 commit comments

Comments
 (0)