Skip to content

Commit f0adb5a

Browse files
committed
Added icon to exe
1 parent 6677cb8 commit f0adb5a

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

DeleteJavaCheck/DeleteJavaCheck.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net6.0</TargetFramework>
6+
<AssemblyVersion>1.0.0.2</AssemblyVersion>
7+
<FileVersion>1.0.0.2</FileVersion>
8+
<ApplicationIcon>icon32.ico</ApplicationIcon>
69
</PropertyGroup>
710

811
<ItemGroup>
912
<None Remove="location.txt" />
1013
</ItemGroup>
1114

1215
<ItemGroup>
16+
<Content Include="icon32.ico" />
1317
<Content Include="location.txt">
1418
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
1519
</Content>

DeleteJavaCheck/Program.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Current ver: 1.0.0.2
2+
3+
using System;
24
using System.IO;
35

46
namespace DeleteJavaCheck;
@@ -11,17 +13,18 @@ static void Main(string[] args)
1113
{
1214
Console.WriteLine("DeleteJavaCheck Running");
1315

14-
String[] lines = File.ReadAllLines(@"location.txt");
16+
string[] lines = File.ReadAllLines(@"location.txt");
1517
for (int i = 0; i < lines.Length; i++)
1618
{
1719
if (lines[i][..1] != "#")
1820
{
19-
f = (lines[i])+"\\JavaCheck.jar";
21+
f = lines[i] + "\\JavaCheck.jar";
2022
if (File.Exists(f))
2123
{
2224
File.Delete(f);
2325
Console.WriteLine("File deleted!");
24-
} else
26+
}
27+
else
2528
{
2629
Console.WriteLine("File doesn't exist, and couldn't be deleted.");
2730
}

DeleteJavaCheck/icon32.ico

284 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)