From 040760342e061713c9453e07cee889390f496ca8 Mon Sep 17 00:00:00 2001 From: Asugakoisi <51259305+Asugakoisi@users.noreply.github.com> Date: Fri, 27 Mar 2020 17:56:22 +0900 Subject: [PATCH 1/3] Update assemblyinstaller.cs --- .../AssemblyInstaller/CS/assemblyinstaller.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/samples/snippets/csharp/VS_Snippets_CLR/AssemblyInstaller/CS/assemblyinstaller.cs b/samples/snippets/csharp/VS_Snippets_CLR/AssemblyInstaller/CS/assemblyinstaller.cs index c6e6cffab75..bf3e2b4d6a2 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/AssemblyInstaller/CS/assemblyinstaller.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR/AssemblyInstaller/CS/assemblyinstaller.cs @@ -37,13 +37,10 @@ static void Main() // Commit the 'MyAssembly' assembly. myAssemblyInstaller.Commit( mySavedState ); } - catch (ArgumentException) - { - } catch (Exception e) { Console.WriteLine( e.Message ); } } } -// \ No newline at end of file +// From 85e5b59955d44805baa820b09699088307b112e8 Mon Sep 17 00:00:00 2001 From: Asugakoisi <51259305+Asugakoisi@users.noreply.github.com> Date: Tue, 31 Mar 2020 03:37:32 +0900 Subject: [PATCH 2/3] Update assemblyinstaller.vb --- .../VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb b/samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb index 38c41997e35..be17bf73a95 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb @@ -33,10 +33,9 @@ Class AssemblyInstaller_Example ' Commit the 'MyAssembly' assembly. myAssemblyInstaller.Commit(mySavedState) - Catch e As ArgumentException Catch e As Exception Console.WriteLine(e.Message) End Try End Sub End Class -' \ No newline at end of file +' From d42e1f4eedb81a68c47f542d8e05b4f74b754900 Mon Sep 17 00:00:00 2001 From: Asugakoisi <51259305+Asugakoisi@users.noreply.github.com> Date: Tue, 31 Mar 2020 03:39:41 +0900 Subject: [PATCH 3/3] Update assemblyinstaller.cpp --- .../AssemblyInstaller/CPP/assemblyinstaller.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/samples/snippets/cpp/VS_Snippets_CLR/AssemblyInstaller/CPP/assemblyinstaller.cpp b/samples/snippets/cpp/VS_Snippets_CLR/AssemblyInstaller/CPP/assemblyinstaller.cpp index cb4c8b91c6c..cc5af7108ce 100644 --- a/samples/snippets/cpp/VS_Snippets_CLR/AssemblyInstaller/CPP/assemblyinstaller.cpp +++ b/samples/snippets/cpp/VS_Snippets_CLR/AssemblyInstaller/CPP/assemblyinstaller.cpp @@ -33,9 +33,6 @@ int main() // Commit the 'MyAssembly' assembly. myAssemblyInstaller->Commit( mySavedState ); } - catch ( ArgumentException^ ) - { - } catch ( Exception^ e ) { Console::WriteLine( e->Message );