Skip to content

Commit 2e9d66f

Browse files
markmark
authored andcommitted
Code cleanup
1 parent 11657a5 commit 2e9d66f

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

Beep/Beep.csproj

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,27 @@
1313
<FileAlignment>512</FileAlignment>
1414
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1515
<TargetFrameworkProfile />
16+
<PublishUrl>publish\</PublishUrl>
17+
<Install>true</Install>
18+
<InstallFrom>Disk</InstallFrom>
19+
<UpdateEnabled>false</UpdateEnabled>
20+
<UpdateMode>Foreground</UpdateMode>
21+
<UpdateInterval>7</UpdateInterval>
22+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
23+
<UpdatePeriodically>false</UpdatePeriodically>
24+
<UpdateRequired>false</UpdateRequired>
25+
<MapFileExtensions>true</MapFileExtensions>
26+
<ApplicationRevision>0</ApplicationRevision>
27+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
28+
<IsWebBootstrapper>false</IsWebBootstrapper>
29+
<UseApplicationTrust>false</UseApplicationTrust>
30+
<BootstrapperEnabled>true</BootstrapperEnabled>
1631
</PropertyGroup>
1732
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1833
<PlatformTarget>AnyCPU</PlatformTarget>
1934
<DebugSymbols>true</DebugSymbols>
2035
<DebugType>full</DebugType>
21-
<Optimize>false</Optimize>
36+
<Optimize>true</Optimize>
2237
<OutputPath>bin\Debug\</OutputPath>
2338
<DefineConstants>DEBUG;TRACE</DefineConstants>
2439
<ErrorReport>prompt</ErrorReport>
@@ -49,6 +64,18 @@
4964
<ItemGroup>
5065
<None Include="App.config" />
5166
</ItemGroup>
67+
<ItemGroup>
68+
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
69+
<Visible>False</Visible>
70+
<ProductName>Microsoft .NET Framework 4.8 %28x86 and x64%29</ProductName>
71+
<Install>true</Install>
72+
</BootstrapperPackage>
73+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
74+
<Visible>False</Visible>
75+
<ProductName>.NET Framework 3.5 SP1</ProductName>
76+
<Install>false</Install>
77+
</BootstrapperPackage>
78+
</ItemGroup>
5279
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
5380
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5481
Other similar extension points exist, see Microsoft.Common.targets.

Beep/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
{
33
using System.Media;
44

5-
class Program
5+
internal class Program
66
{
7-
static void Main(string[] args)
7+
private static void Main(string[] args)
88
{
99
SystemSounds.Beep.Play();
1010
}

Beep/Properties/AssemblyInfo.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

5-
// General Information about an assembly is controlled through the following
4+
// General Information about an assembly is controlled through the following
65
// set of attributes. Change these attribute values to modify the information
76
// associated with an assembly.
87
[assembly: AssemblyTitle("Beep")]
@@ -14,8 +13,8 @@
1413
[assembly: AssemblyTrademark("")]
1514
[assembly: AssemblyCulture("")]
1615

17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
16+
// Setting ComVisible to false makes the types in this assembly not visible
17+
// to COM components. If you need to access a type in this assembly from
1918
// COM, set the ComVisible attribute to true on that type.
2019
[assembly: ComVisible(false)]
2120

@@ -25,11 +24,11 @@
2524
// Version information for an assembly consists of the following four values:
2625
//
2726
// Major Version
28-
// Minor Version
27+
// Minor Version
2928
// Build Number
3029
// Revision
3130
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
31+
// You can specify all the values or you can default the Build and Revision Numbers
3332
// by using the '*' as shown below:
3433
// [assembly: AssemblyVersion("1.0.*")]
3534
[assembly: AssemblyVersion("1.0.0.0")]

0 commit comments

Comments
 (0)