Skip to content

Commit 61aebb3

Browse files
committed
fix snippets 5000 error
1 parent 22cd717 commit 61aebb3

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8.1"/></startup></configuration>

snippets/csharp/VS_Snippets_CFX/s_ueexceptionhandler/cs/cs.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
22
<PropertyGroup>
33
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
44
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -9,6 +9,8 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>CS</RootNamespace>
1111
<AssemblyName>CS</AssemblyName>
12+
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
13+
<TargetFrameworkProfile />
1214
</PropertyGroup>
1315
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1416
<DebugSymbols>true</DebugSymbols>
@@ -18,6 +20,7 @@
1820
<DefineConstants>DEBUG;TRACE</DefineConstants>
1921
<ErrorReport>prompt</ErrorReport>
2022
<WarningLevel>4</WarningLevel>
23+
<Prefer32Bit>false</Prefer32Bit>
2124
</PropertyGroup>
2225
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2326
<DebugType>pdbonly</DebugType>
@@ -26,6 +29,7 @@
2629
<DefineConstants>TRACE</DefineConstants>
2730
<ErrorReport>prompt</ErrorReport>
2831
<WarningLevel>4</WarningLevel>
32+
<Prefer32Bit>false</Prefer32Bit>
2933
</PropertyGroup>
3034
<ItemGroup>
3135
<Reference Include="System" />
@@ -41,6 +45,9 @@
4145
<ItemGroup>
4246
<Folder Include="Properties\" />
4347
</ItemGroup>
48+
<ItemGroup>
49+
<None Include="app.config" />
50+
</ItemGroup>
4451
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
4552
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
4653
Other similar extension points exist, see Microsoft.Common.targets.

snippets/csharp/VS_Snippets_CFX/s_ueexceptionhandler/cs/makefile

Lines changed: 0 additions & 3 deletions
This file was deleted.

snippets/csharp/VS_Snippets_CFX/s_ueexceptionhandler/cs/program.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@
77

88
namespace CS
99
{
10-
public class MyExceptionHandler: ExceptionHandler
10+
public class MyExceptionHandler : ExceptionHandler
1111
{
12-
// HandleException method override gives control to
13-
// your code.
14-
public override bool HandleException ( Exception ex )
15-
{
16-
// This method contains logic to decide whether
17-
// the exception is serious enough
18-
// to terminate the process.
19-
return ShouldTerminateProcess (ex);
20-
}
12+
// HandleException method override gives control to
13+
// your code.
14+
public override bool HandleException(Exception ex)
15+
{
16+
// This method contains logic to decide whether
17+
// the exception is serious enough
18+
// to terminate the process.
19+
return ShouldTerminateProcess(ex);
20+
}
2121

22-
public bool ShouldTerminateProcess (Exception ex)
23-
{
24-
// Write your logic here.
25-
return true;
26-
}
22+
public bool ShouldTerminateProcess(Exception ex)
23+
{
24+
// Write your logic here.
25+
return true;
26+
}
2727
}
28+
// </Snippet0>
2829

29-
// </Snippet0>
3030
class Program
3131
{
32-
static void Main(string[] args)
32+
static void Main()
3333
{
3434
// <Snippet1>
3535
// Create an instance of the MyExceptionHandler class.

0 commit comments

Comments
 (0)