File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 1- using System ;
1+ // Current ver: 1.0.0.2
2+
3+ using System ;
24using System . IO ;
35
46namespace 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 }
You can’t perform that action at this time.
0 commit comments