Skip to content

Commit e532a67

Browse files
committed
Code Cleanup; Removed build info for the _build project from the solution, to fix a warning in the build process; Removed version info and version related info from the package config, because it is set by the build tool now
1 parent 7a0c322 commit e532a67

7 files changed

Lines changed: 15 additions & 15 deletions

File tree

.nuke/parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "./build.schema.json",
2+
"$schema": "/build.schema.json",
33
"Solution": "src/WGet.Net.sln"
44
}

doxygen/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = WGet.NET
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = 4.0.0
51+
PROJECT_NUMBER = 0.0.0
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

src/WGet.NET/Components/WinGet.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public async Task ExportSettingsToFileAsync(string file)
277277
/// </exception>
278278
public List<WinGetAdminSetting> GetAdminSettings()
279279
{
280-
List<WinGetAdminSetting> adminSettings = new List<WinGetAdminSetting>();
280+
List<WinGetAdminSetting> adminSettings = new();
281281

282282
string settingsJson = ExportSettings();
283283

@@ -287,7 +287,7 @@ public List<WinGetAdminSetting> GetAdminSettings()
287287
return adminSettings;
288288
}
289289

290-
AdminSettingBuilder builder = new AdminSettingBuilder();
290+
AdminSettingBuilder builder = new();
291291
foreach (KeyValuePair<string, bool> entry in settings.AdminSettings)
292292
{
293293
builder.Clear();
@@ -317,7 +317,7 @@ public List<WinGetAdminSetting> GetAdminSettings()
317317
/// </exception>
318318
public async Task<List<WinGetAdminSetting>> GetAdminSettingsAsync()
319319
{
320-
List<WinGetAdminSetting> adminSettings = new List<WinGetAdminSetting>();
320+
List<WinGetAdminSetting> adminSettings = new();
321321

322322
string settingsJson = await ExportSettingsAsync();
323323

@@ -331,7 +331,7 @@ public async Task<List<WinGetAdminSetting>> GetAdminSettingsAsync()
331331
return adminSettings;
332332
}
333333

334-
AdminSettingBuilder builder = new AdminSettingBuilder();
334+
AdminSettingBuilder builder = new();
335335
foreach (KeyValuePair<string, bool> entry in settings.AdminSettings)
336336
{
337337
builder.Clear();

src/WGet.NET/WGet.NET.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
<RepositoryUrl>https://github.com/basicx-StrgV/WGet.NET</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
1313
<PackageTags>winget, winget-cli, dotnet, dotnetcore, dotnet-core, dotnet-standard, dotnet-framework, library, windows, wrapper, package-manager</PackageTags>
14-
<PackageReleaseNotes>https://github.com/basicx-StrgV/WGet.NET/releases/tag/4.0.0</PackageReleaseNotes>
14+
<PackageReleaseNotes>---</PackageReleaseNotes>
1515
<Description>A winget wrapper library for .Net.
1616
Easily install, update, uninstall and more, from your application. </Description>
1717
<Copyright>basicx-StrgV</Copyright>
1818
<SignAssembly>false</SignAssembly>
1919
<RootNamespace>WGetNET</RootNamespace>
20-
<Version>4.0.0</Version>
20+
<Version>0.0.0</Version>
2121
<Deterministic>false</Deterministic>
22-
<AssemblyVersion>4.0.0.0</AssemblyVersion>
22+
<AssemblyVersion>0.0.0.0</AssemblyVersion>
2323
<AssemblyName>WGet.NET</AssemblyName>
2424
<PackageId>WGet.NET</PackageId>
2525
<Product>WGet.NET</Product>

src/WGet.Net.sln

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ Global
3333
{E95FDAF2-A9E8-4BDF-94FF-0C72561E32E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
3434
{E95FDAF2-A9E8-4BDF-94FF-0C72561E32E2}.Release|Any CPU.Build.0 = Release|Any CPU
3535
{24811039-65CA-46B2-A324-422F5522CD05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
36-
{24811039-65CA-46B2-A324-422F5522CD05}.Debug|Any CPU.Build.0 = Debug|Any CPU
3736
{24811039-65CA-46B2-A324-422F5522CD05}.Release|Any CPU.ActiveCfg = Release|Any CPU
38-
{24811039-65CA-46B2-A324-422F5522CD05}.Release|Any CPU.Build.0 = Release|Any CPU
3937
EndGlobalSection
4038
GlobalSection(SolutionProperties) = preSolution
4139
HideSolutionNode = FALSE

src/build/Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Build : NukeBuild
103103
Assert.Fail($"The doxyfile does not exist ({_doxyfile})");
104104
}
105105

106-
DoxygenHandler doxygen = new DoxygenHandler(_doxyfile, doxygenExe, _doxygenWorkingDir);
106+
DoxygenHandler doxygen = new(_doxyfile, doxygenExe, _doxygenWorkingDir);
107107

108108
bool result = doxygen.GenerateDocs(Version);
109109

src/build/DoxygenHandler.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private bool UpdateDoxyfile(string projectVersion)
7070

7171
private int ExecuteDoxygen()
7272
{
73-
ProcessStartInfo startInfo = new ProcessStartInfo()
73+
ProcessStartInfo startInfo = new()
7474
{
7575
FileName = _doxygen,
7676
Arguments = $"\"{_doxyfile}\"",
@@ -81,8 +81,10 @@ private int ExecuteDoxygen()
8181
RedirectStandardOutput = true,
8282
};
8383

84-
Process doxygenProc = new Process();
85-
doxygenProc.StartInfo = startInfo;
84+
Process doxygenProc = new()
85+
{
86+
StartInfo = startInfo
87+
};
8688

8789
doxygenProc.Start();
8890

0 commit comments

Comments
 (0)