From 2f7ef76fe870068d835c7d88a4184f6564581edf Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2026 13:56:18 -0700 Subject: [PATCH 1/7] Upgrade projects to .NET 10 --- .../ObservableCollection.csproj | 61 +++--------- .../Compose/consoleapplication5.csproj | 61 ++---------- .../Overview/consoleapplication1.csproj | 63 ++----------- .../classlibrary1/classlibrary1.csproj | 60 ++---------- .../consoleapplication7.csproj | 65 +++---------- .../consoleapplication3.csproj | 59 ++---------- .../Overview/PackageDigitalSignature.csproj | 52 +++-------- .../Package/GetPart/PackageRead.csproj | 50 ++-------- .../Package/Overview/PackageWrite.csproj | 52 +++-------- .../Overview/streamreadwrite.csproj | 69 ++------------ .../Collation/Overview/XpsCreate.csproj | 45 ++------- .../EnumerateSubsetOfPrintQueues.csproj | 40 ++------ .../.ctor/ClonePrinter.csproj | 41 ++------ ...ntObjectPropertiesWithoutReflection.csproj | 40 ++------ .../DiagnoseProblematicPrintJob.csproj | 39 ++------ .../Commit/Management_PrintTicket.csproj | 42 ++------- .../PrinterStatusSurvey.csproj | 39 ++------ .../Overview/PrintServerCreate.csproj | 55 ++--------- .../Overview/fixedaddress.csproj | 62 ++----------- .../SafeHandle/Overview/safehandle.csproj | 60 ++---------- .../.ctor/securestringctor.csproj | 70 ++------------ .../compiletoassembly1.csproj | 66 ++----------- .../SynchronizingObjectCS1.csproj | 93 ++----------------- .../System/Console/Overview/setfont1.csproj | 55 ++--------- .../Convert/IsDBNull/IsDBNull_To_NA_CS.csproj | 86 ++++------------- .../Overview/customexceptioncs.csproj | 55 ++--------- .../Overview/locationtrackercs.csproj | 55 ++--------- .../System/IntPtr/Overview/example.csproj | 48 ++-------- .../System/IntPtr/ToPointer/example.csproj | 48 ++-------- .../String/Overview/instantiate1.csproj | 55 ++--------- 30 files changed, 273 insertions(+), 1413 deletions(-) diff --git a/snippets/csharp/System.Collections.ObjectModel/ObservableCollectionT/BlockReentrancy/ObservableCollection.csproj b/snippets/csharp/System.Collections.ObjectModel/ObservableCollectionT/BlockReentrancy/ObservableCollection.csproj index 8bc22b9e63e..f12f158f63b 100644 --- a/snippets/csharp/System.Collections.ObjectModel/ObservableCollectionT/BlockReentrancy/ObservableCollection.csproj +++ b/snippets/csharp/System.Collections.ObjectModel/ObservableCollectionT/BlockReentrancy/ObservableCollection.csproj @@ -1,65 +1,34 @@ - + + - Debug - AnyCPU - {ECFDBD90-E649-439C-86B1-4BCDD513E831} + WinExe + net10.0-windows + true + false ObservableCollection ObservableCollection - 4 - winexe - 1.0.0.* - - v4.8 - - - 10.0.20821 - - - true - full - false - .\bin\Debug\ - DEBUG;TRACE - false - - - false - true - .\bin\Release\ - TRACE - false + - - - - - - - - 4.0 - - - - + + - + + + MyApp.xaml - Code Window1.xaml - Code - - + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj index 3747dcc3555..6316f8c0256 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj @@ -1,62 +1,19 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {DE662508-F48E-46B8-8643-25194F143A5D} Exe - Properties + net10.0 + false ConsoleApplication5 ConsoleApplication5 - v4.8 - - - 512 - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - + - + - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj index bd52794c54f..2bf549f562c 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj @@ -1,64 +1,19 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {C52CD85F-DF08-4098-939E-530E96CFA764} Exe - Properties + net10.0 + false ConsoleApplication1 ConsoleApplication1 - v4.8 - - - 512 - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - - - - - - - + - + - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj index bcb0eb1d62e..78a111470ce 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj @@ -1,58 +1,18 @@ - - + + - Debug - AnyCPU - 8.0.30703 - 2.0 - {172E13FE-D215-4965-BC10-4C5862FFF253} - Library - Properties + net10.0 + false ClassLibrary1 ClassLibrary1 - v4.8 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false + - - - - - - - - + + - - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj index 3e3d5ea4ba2..bb3555c6084 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj @@ -1,64 +1,23 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {1A7B8943-6B33-4EFA-9172-2DAF9764E4F6} Exe - Properties + net10.0 + false ConsoleApplication7 ConsoleApplication7 - v4.8 - - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 + - - - - - - - - + + - - + + - - {172E13FE-D215-4965-BC10-4C5862FFF253} - ClassLibrary1 - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj b/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj index ff39dacde7c..f4afd887c68 100644 --- a/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj +++ b/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj @@ -1,58 +1,19 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {F3A57ADA-50F0-44A1-977F-57421561D677} Exe - Properties + net10.0 + false ConsoleApplication3 ConsoleApplication3 - v4.8 - - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 + - - - - - - - - + + - - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj b/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj index 54ca270581f..425e78124d6 100644 --- a/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj +++ b/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj @@ -1,51 +1,21 @@ - + + - PackageDigitalSignature + Exe + net10.0-windows + true + false SDKSample - exe - MSBuild - False - .\ - Debug - AnyCPU - 10.0.20821 - 2.0 - {3B97ACD1-C138-4AB8-B971-0BAAB389DD1C} - v4.8 - - - - true - full - false - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - TRACE - prompt - 4 + PackageDigitalSignature - - - - - 4.0 - - - - - - + + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.IO.Packaging/Package/GetPart/PackageRead.csproj b/snippets/csharp/System.IO.Packaging/Package/GetPart/PackageRead.csproj index 73338b415f0..efa0a7a3307 100644 --- a/snippets/csharp/System.IO.Packaging/Package/GetPart/PackageRead.csproj +++ b/snippets/csharp/System.IO.Packaging/Package/GetPart/PackageRead.csproj @@ -1,46 +1,16 @@ - + + - PackageRead + Exe + net10.0-windows + true + false SDKSample - exe - Debug - MSBuild - False - .\ - AnyCPU - 2.0 - {311B1331-9C08-414D-8BFD-1304C8DCF3AE} - v4.8 - - 10.0.20821 - - - true - full - false - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - TRACE - prompt - 4 + PackageRead - - - - - 4.0 - - - - - + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.IO.Packaging/Package/Overview/PackageWrite.csproj b/snippets/csharp/System.IO.Packaging/Package/Overview/PackageWrite.csproj index 893fd402d1c..a2d5427099e 100644 --- a/snippets/csharp/System.IO.Packaging/Package/Overview/PackageWrite.csproj +++ b/snippets/csharp/System.IO.Packaging/Package/Overview/PackageWrite.csproj @@ -1,51 +1,21 @@ - + + - PackageWrite + Exe + net10.0-windows + true + false SDKSample - exe - Debug - MSBuild - False - - .\ - AnyCPU - 2.0 - {311B1331-9C08-414D-8BFD-1304C8DCF3AE} - v4.8 - - 10.0.20821 - - - true - full - false - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - TRACE - prompt - 4 + PackageWrite - - - - - 4.0 - - - - - + + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj b/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj index 0d0225c6a67..ab2cba3987f 100644 --- a/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj +++ b/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj @@ -1,70 +1,15 @@ - - + + - Debug - AnyCPU - 9.0.30729 - 2.0 - {21033C36-54BA-40C3-8AF4-AE1BFB9F37B7} Exe - Properties + net10.0 + false StreamReadWrite StreamReadWrite - v4.8 - 512 - - - - - 3.5 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - 3.5 - - - 3.5 - - - 3.5 - - - - + - - - - - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Printing/Collation/Overview/XpsCreate.csproj b/snippets/csharp/System.Printing/Collation/Overview/XpsCreate.csproj index 025d5a8f6ef..8bceecca84d 100644 --- a/snippets/csharp/System.Printing/Collation/Overview/XpsCreate.csproj +++ b/snippets/csharp/System.Printing/Collation/Overview/XpsCreate.csproj @@ -1,43 +1,18 @@ - + + - Debug - AnyCPU - {68EFFB82-30B5-4136-91C7-84D80D0789D2} Exe - 4 + net10.0-windows + true + true + false + false XpsCreate XpsCreate - v4.8 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - - 10.0.20821 - - - true - full - false - .\ - DEBUG;TRACE - prompt - - - pdbonly - true - .\ - TRACE - prompt + - - - - - - - - - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Printing/EnumeratedPrintQueueTypes/Overview/EnumerateSubsetOfPrintQueues.csproj b/snippets/csharp/System.Printing/EnumeratedPrintQueueTypes/Overview/EnumerateSubsetOfPrintQueues.csproj index 21fc18f2564..9c144fe3b75 100644 --- a/snippets/csharp/System.Printing/EnumeratedPrintQueueTypes/Overview/EnumerateSubsetOfPrintQueues.csproj +++ b/snippets/csharp/System.Printing/EnumeratedPrintQueueTypes/Overview/EnumerateSubsetOfPrintQueues.csproj @@ -1,40 +1,16 @@ - + + - Debug - AnyCPU - 2.0 Exe + net10.0-windows + true + false SDKSample EnumerateSubsetOfPrintQueues - v4.8 - - 10.0.20821 - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Printing/LocalPrintServer/.ctor/ClonePrinter.csproj b/snippets/csharp/System.Printing/LocalPrintServer/.ctor/ClonePrinter.csproj index e97980eeaa2..a5db21cddd5 100644 --- a/snippets/csharp/System.Printing/LocalPrintServer/.ctor/ClonePrinter.csproj +++ b/snippets/csharp/System.Printing/LocalPrintServer/.ctor/ClonePrinter.csproj @@ -1,41 +1,16 @@ - + + - Debug - AnyCPU - 2.0 Exe + net10.0-windows + true + false SDKSample ClonePrinter - v4.8 - - 10.0.20821 - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Printing/LocalPrintServer/GetDefaultPrintQueue/GetPrintObjectPropertiesWithoutReflection.csproj b/snippets/csharp/System.Printing/LocalPrintServer/GetDefaultPrintQueue/GetPrintObjectPropertiesWithoutReflection.csproj index 68825e67577..ab658f0f09f 100644 --- a/snippets/csharp/System.Printing/LocalPrintServer/GetDefaultPrintQueue/GetPrintObjectPropertiesWithoutReflection.csproj +++ b/snippets/csharp/System.Printing/LocalPrintServer/GetDefaultPrintQueue/GetPrintObjectPropertiesWithoutReflection.csproj @@ -1,40 +1,16 @@ - + + - Debug - AnyCPU - 2.0 Exe + net10.0-windows + true + false SDKSample IteratePrintObjectProperites - v4.8 - - 10.0.20821 - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Printing/PrintJobStatus/Overview/DiagnoseProblematicPrintJob.csproj b/snippets/csharp/System.Printing/PrintJobStatus/Overview/DiagnoseProblematicPrintJob.csproj index 67d5360662a..3597b066c88 100644 --- a/snippets/csharp/System.Printing/PrintJobStatus/Overview/DiagnoseProblematicPrintJob.csproj +++ b/snippets/csharp/System.Printing/PrintJobStatus/Overview/DiagnoseProblematicPrintJob.csproj @@ -1,39 +1,16 @@ - + + - Debug - AnyCPU Exe + net10.0-windows + true + false SDKSample DiagnoseProblematicPrintJob - v4.8 - - 10.0.20821 - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Printing/PrintQueue/Commit/Management_PrintTicket.csproj b/snippets/csharp/System.Printing/PrintQueue/Commit/Management_PrintTicket.csproj index 73a437cf94f..b652737fd87 100644 --- a/snippets/csharp/System.Printing/PrintQueue/Commit/Management_PrintTicket.csproj +++ b/snippets/csharp/System.Printing/PrintQueue/Commit/Management_PrintTicket.csproj @@ -1,42 +1,16 @@ - + + - Debug - AnyCPU - {BA64FE91-6E41-4C9A-B6B6-21896266F287} Exe + net10.0-windows + true + false PrintTicketSample printticket - x86 - v4.8 - - 10.0.20821 - - true - full - false - bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Printing/PrintQueue/HasPaperProblem/PrinterStatusSurvey.csproj b/snippets/csharp/System.Printing/PrintQueue/HasPaperProblem/PrinterStatusSurvey.csproj index 1436d68cdd3..b187e60e3a2 100644 --- a/snippets/csharp/System.Printing/PrintQueue/HasPaperProblem/PrinterStatusSurvey.csproj +++ b/snippets/csharp/System.Printing/PrintQueue/HasPaperProblem/PrinterStatusSurvey.csproj @@ -1,39 +1,16 @@ - + + - Debug - AnyCPU Exe + net10.0-windows + true + false SDKSample PrinterStatusSurvey - v4.8 - - 10.0.20821 - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - + - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Printing/PrintServer/Overview/PrintServerCreate.csproj b/snippets/csharp/System.Printing/PrintServer/Overview/PrintServerCreate.csproj index 5bf8749eddd..1e81b2ade09 100644 --- a/snippets/csharp/System.Printing/PrintServer/Overview/PrintServerCreate.csproj +++ b/snippets/csharp/System.Printing/PrintServer/Overview/PrintServerCreate.csproj @@ -1,55 +1,16 @@ - + + - Debug - AnyCPU - 2.0 - {68EFFB82-30B5-4136-91C7-84D80D0789D2} Exe - Properties + net10.0-windows + true + false PrintServerCreate PrintServerCreate - v4.8 - - 10.0.20821 - - true - full - false - .\ - - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - .\ - - TRACE - prompt - 4 - - + - - - False - F:\WCP.binaries.x86chk\ReachFramework.dll - - - - - False - F:\WCP.binaries.x86chk\System.Printing.dll - - - - False - F:\WCP.binaries.x86chk\WindowsBase.dll - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj b/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj index d44dfb6d29d..df8f5ae4682 100644 --- a/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj +++ b/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj @@ -1,62 +1,16 @@ - - + + - Debug - AnyCPU - 9.0.30729 - 2.0 - {752F452A-6301-4638-87F0-8E61651C032E} Exe - Properties + net10.0 + true + false FixedAddressCS FixedAddressCS - v4.8 - 512 - - - - - 3.5 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - 3.5 - - + - - - - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj b/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj index 65cc8591318..e55a5f755b3 100644 --- a/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj +++ b/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj @@ -1,61 +1,19 @@ - + + - Debug - AnyCPU - 8.0.50727 - 2.0 - {FF6F594E-BE65-473D-A37F-AB48973BFC42} Exe - Properties + net10.0 + false SafeHandle SafeHandle - - - - - 2.0 - v4.8 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - true - false - - - - - - + - + - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj b/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj index b4233d07b00..f771f2df003 100644 --- a/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj +++ b/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj @@ -1,70 +1,16 @@ - - + + - Debug - AnyCPU - 9.0.30729 - 2.0 - {91A71E6E-384D-46ED-A883-9BACCECC6BD3} Exe - Properties + net10.0 + true + false SecureStringCtor SecureStringCtor - v4.8 - 512 - - - - - 3.5 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - 3.5 - - - 3.5 - - - 3.5 - - - - + - - - - - - \ No newline at end of file + + diff --git a/snippets/csharp/System.Text.RegularExpressions/Regex/CompileToAssembly/compiletoassembly1.csproj b/snippets/csharp/System.Text.RegularExpressions/Regex/CompileToAssembly/compiletoassembly1.csproj index dd2ea21cee1..2fdd52a1a99 100644 --- a/snippets/csharp/System.Text.RegularExpressions/Regex/CompileToAssembly/compiletoassembly1.csproj +++ b/snippets/csharp/System.Text.RegularExpressions/Regex/CompileToAssembly/compiletoassembly1.csproj @@ -1,70 +1,16 @@ - - + + - Debug - AnyCPU - 9.0.30729 - 2.0 - {1957EC0D-7051-4928-B01D-C3B81A9DBC02} Exe - Properties + net10.0 + false CompileToAssembly1 CompileToAssembly1 - v4.8 - 512 RegexCompilationTest - - - - - 3.5 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - 3.5 - - - 3.5 - - - 3.5 - - - - + - - - - - + \ No newline at end of file diff --git a/snippets/csharp/System.Timers/Timer/SynchronizingObject/SynchronizingObjectCS1.csproj b/snippets/csharp/System.Timers/Timer/SynchronizingObject/SynchronizingObjectCS1.csproj index 73f56063022..f0152fe2afb 100644 --- a/snippets/csharp/System.Timers/Timer/SynchronizingObject/SynchronizingObjectCS1.csproj +++ b/snippets/csharp/System.Timers/Timer/SynchronizingObject/SynchronizingObjectCS1.csproj @@ -1,51 +1,15 @@ - - - + + - Debug - AnyCPU - {038DD537-738D-43FA-8F2F-07953C8E0CD6} WinExe - Properties + net10.0-windows + true + false + false SynchronizingObjectCS1 SynchronizingObjectCS1 - v4.8 - 512 - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - + Form @@ -54,45 +18,6 @@ Form1.cs - - - - - - - - - \ No newline at end of file + + diff --git a/snippets/csharp/System/Console/Overview/setfont1.csproj b/snippets/csharp/System/Console/Overview/setfont1.csproj index 95080bb0ed9..f08d73e743c 100644 --- a/snippets/csharp/System/Console/Overview/setfont1.csproj +++ b/snippets/csharp/System/Console/Overview/setfont1.csproj @@ -1,57 +1,16 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {2A6CBB81-3FC3-4ED9-9C58-7448107FC93B} Exe - Properties + net10.0 + true + false SetFont1 SetFont1 - v4.8 - - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - + - - + diff --git a/snippets/csharp/System/Convert/IsDBNull/IsDBNull_To_NA_CS.csproj b/snippets/csharp/System/Convert/IsDBNull/IsDBNull_To_NA_CS.csproj index 8eaaa7d43e5..2e6faac0c2a 100644 --- a/snippets/csharp/System/Convert/IsDBNull/IsDBNull_To_NA_CS.csproj +++ b/snippets/csharp/System/Convert/IsDBNull/IsDBNull_To_NA_CS.csproj @@ -1,60 +1,15 @@ - - + + - Debug - AnyCPU - 9.0.30729 - 2.0 - {8F2F06DD-9568-426A-8FBE-6D45C8912695} WinExe - Properties + net10.0-windows + true + false + false IsDBNull_To_NA_CS IsDBNull_To_NA_CS - v4.8 - 512 - - - - - 3.5 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - 3.5 - - - 3.5 - - - 3.5 - - - - - - - + Form @@ -62,29 +17,24 @@ Form1.cs + + Resources.resx + + + + Form1.cs + Designer ResXFileCodeGenerator Resources.Designer.cs - Designer - - True - Resources.resx - True - + - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj b/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj index a7f3b06ae9a..b7f95a357ce 100644 --- a/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj +++ b/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj @@ -1,58 +1,17 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {BDB62AB0-B111-482A-B5AD-300D496AD016} Exe - Properties + net10.0 + false CustomExceptionCS CustomExceptionCS - v4.8 - - 512 - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj b/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj index d856876a3c3..66650c15007 100644 --- a/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj +++ b/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj @@ -1,58 +1,17 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {32879432-D9F6-44C9-90F5-DE5AD01A573B} Exe - Properties + net10.0 + false LocationTrackerCS LocationTrackerCS - v4.8 - - 512 - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System/IntPtr/Overview/example.csproj b/snippets/csharp/System/IntPtr/Overview/example.csproj index f6c4cca7e87..1e5066f2968 100644 --- a/snippets/csharp/System/IntPtr/Overview/example.csproj +++ b/snippets/csharp/System/IntPtr/Overview/example.csproj @@ -1,48 +1,16 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {855ED19F-5D0D-4B58-B74B-BEB678069018} Exe + net10.0 + true + false Examples Example - v4.8 - - 512 - - - x86 - false - none - false - .\ - 4 - true - - x86 - none - true - .\ - 4 - - - - - - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System/IntPtr/ToPointer/example.csproj b/snippets/csharp/System/IntPtr/ToPointer/example.csproj index f6c4cca7e87..1e5066f2968 100644 --- a/snippets/csharp/System/IntPtr/ToPointer/example.csproj +++ b/snippets/csharp/System/IntPtr/ToPointer/example.csproj @@ -1,48 +1,16 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {855ED19F-5D0D-4B58-B74B-BEB678069018} Exe + net10.0 + true + false Examples Example - v4.8 - - 512 - - - x86 - false - none - false - .\ - 4 - true - - x86 - none - true - .\ - 4 - - - - - - + - - - \ No newline at end of file + + diff --git a/snippets/csharp/System/String/Overview/instantiate1.csproj b/snippets/csharp/System/String/Overview/instantiate1.csproj index 82e20f1646c..5afc1ef9d41 100644 --- a/snippets/csharp/System/String/Overview/instantiate1.csproj +++ b/snippets/csharp/System/String/Overview/instantiate1.csproj @@ -1,55 +1,16 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {8F1DA585-550B-46EC-A054-8E512965B7B1} Exe - Properties + net10.0 + true + false Instantiation Instantiation - v4.8 - - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - + - - - - - - \ No newline at end of file + + From 5a39a30b2a23f1e2fed17fbc44d9882f67a8f743 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:36:46 -0700 Subject: [PATCH 2/7] Apply suggestion from @gewarren --- snippets/csharp/System/IntPtr/Overview/example.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/snippets/csharp/System/IntPtr/Overview/example.csproj b/snippets/csharp/System/IntPtr/Overview/example.csproj index 1e5066f2968..256a783bc23 100644 --- a/snippets/csharp/System/IntPtr/Overview/example.csproj +++ b/snippets/csharp/System/IntPtr/Overview/example.csproj @@ -9,8 +9,5 @@ Example - - - From 7991442a5fd558e781eb1fb2edf1345a0abfbd8c Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:36:56 -0700 Subject: [PATCH 3/7] Apply suggestion from @gewarren --- snippets/csharp/System/String/Overview/instantiate1.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/snippets/csharp/System/String/Overview/instantiate1.csproj b/snippets/csharp/System/String/Overview/instantiate1.csproj index 5afc1ef9d41..38b2eb64df8 100644 --- a/snippets/csharp/System/String/Overview/instantiate1.csproj +++ b/snippets/csharp/System/String/Overview/instantiate1.csproj @@ -9,8 +9,5 @@ Instantiation - - - From 770682bb72106a9d6f232545a6d83c1046a5ca2c Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:37:28 -0700 Subject: [PATCH 4/7] Apply suggestion from @gewarren --- .../Overview/fixedaddress.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj b/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj index df8f5ae4682..5806a7dbd59 100644 --- a/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj +++ b/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj @@ -9,8 +9,5 @@ FixedAddressCS - - - From 49e8a0d8cc4c5c704b2aca91041f9f8104828bff Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:37:51 -0700 Subject: [PATCH 5/7] Apply suggestion from @gewarren --- .../System.Security/SecureString/.ctor/securestringctor.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj b/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj index f771f2df003..c2deee6e6af 100644 --- a/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj +++ b/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj @@ -9,8 +9,5 @@ SecureStringCtor - - - From dbbcdfe0aacdcd3f536efb59fd21e544fbecaf78 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:43:00 -0700 Subject: [PATCH 6/7] remove unnecessary compile items --- .../Compose/consoleapplication5.csproj | 4 ---- .../Overview/consoleapplication1.csproj | 4 ---- .../DirectoryCatalog/classlibrary1/classlibrary1.csproj | 4 ---- .../consoleapplication7/consoleapplication7.csproj | 4 ---- .../ExportAttribute/consoleapplication3.csproj | 4 ---- .../Overview/PackageDigitalSignature.csproj | 8 ++------ .../StreamWriter/Overview/streamreadwrite.csproj | 4 ---- .../SafeHandle/Overview/safehandle.csproj | 4 ---- snippets/csharp/System/Console/Overview/setfont1.csproj | 4 ---- .../System/Exception/Overview/customexceptioncs.csproj | 6 ------ .../System/IObservableT/Overview/locationtrackercs.csproj | 6 ------ snippets/csharp/System/IntPtr/Overview/example.csproj | 4 ---- 12 files changed, 2 insertions(+), 54 deletions(-) diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj index 6316f8c0256..90270c0dae0 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj @@ -8,10 +8,6 @@ ConsoleApplication5 - - - - diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj index 2bf549f562c..b583bb4ccaf 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj @@ -8,10 +8,6 @@ ConsoleApplication1 - - - - diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj index 78a111470ce..46479feeba3 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj @@ -7,10 +7,6 @@ ClassLibrary1 - - - - diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj index bb3555c6084..8208ae5607f 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj @@ -8,10 +8,6 @@ ConsoleApplication7 - - - - diff --git a/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj b/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj index f4afd887c68..69d473889d9 100644 --- a/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj +++ b/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj @@ -8,10 +8,6 @@ ConsoleApplication3 - - - - diff --git a/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj b/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj index 425e78124d6..2ed441d2897 100644 --- a/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj +++ b/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj @@ -10,12 +10,8 @@ - - - - - - + + diff --git a/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj b/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj index ab2cba3987f..400ea29ae69 100644 --- a/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj +++ b/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj @@ -8,8 +8,4 @@ StreamReadWrite - - - - diff --git a/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj b/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj index e55a5f755b3..a2573050cef 100644 --- a/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj +++ b/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj @@ -8,10 +8,6 @@ SafeHandle - - - - diff --git a/snippets/csharp/System/Console/Overview/setfont1.csproj b/snippets/csharp/System/Console/Overview/setfont1.csproj index f08d73e743c..ab36c242ad3 100644 --- a/snippets/csharp/System/Console/Overview/setfont1.csproj +++ b/snippets/csharp/System/Console/Overview/setfont1.csproj @@ -9,8 +9,4 @@ SetFont1 - - - - diff --git a/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj b/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj index b7f95a357ce..b70b51b126f 100644 --- a/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj +++ b/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj @@ -8,10 +8,4 @@ CustomExceptionCS - - - - - - diff --git a/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj b/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj index 66650c15007..0ad72aa38bd 100644 --- a/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj +++ b/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj @@ -8,10 +8,4 @@ LocationTrackerCS - - - - - - diff --git a/snippets/csharp/System/IntPtr/Overview/example.csproj b/snippets/csharp/System/IntPtr/Overview/example.csproj index 1e5066f2968..ba9e5ddf727 100644 --- a/snippets/csharp/System/IntPtr/Overview/example.csproj +++ b/snippets/csharp/System/IntPtr/Overview/example.csproj @@ -9,8 +9,4 @@ Example - - - - From 2652480723dbdde767e9cb83f6052f95b8165aad Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 3 Aug 2026 09:41:26 -0700 Subject: [PATCH 7/7] fix compile errors --- .../Compose/consoleapplication5.csproj | 4 ++++ .../Overview/consoleapplication1.csproj | 4 ++++ .../classlibrary1/classlibrary1.csproj | 4 ++++ .../consoleapplication7/consoleapplication7.csproj | 4 ++++ .../ExportAttribute/consoleapplication3.csproj | 4 ++++ .../Overview/PackageDigitalSignature.cs | 3 --- .../Overview/PackageDigitalSignature.csproj | 1 + .../StreamWriter/Overview/streamreadwrite.csproj | 4 ++++ .../Collation/Overview/XpsCreate.cs | 14 +++++++------- .../Overview/fixedaddress.csproj | 4 ++++ .../SafeHandle/Overview/safehandle.csproj | 5 +++++ .../SecureString/.ctor/securestringctor.csproj | 4 ++++ .../CompileToAssembly/compiletoassembly1.csproj | 1 + .../csharp/System/Console/Overview/setfont1.csproj | 4 ++++ snippets/csharp/System/Convert/IsDBNull/Form1.cs | 2 +- .../Convert/IsDBNull/IsDBNull_To_NA_CS.csproj | 2 +- .../Exception/Overview/customexceptioncs.csproj | 7 +++++++ .../IObservableT/Overview/locationtrackercs.csproj | 6 ++++++ .../csharp/System/IntPtr/Overview/example.csproj | 4 ++++ .../System/String/Overview/instantiate1.csproj | 4 ++++ .../callbackbehaviorattribute/cs/client.slnx | 4 ++++ 21 files changed, 77 insertions(+), 12 deletions(-) create mode 100644 snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.slnx diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj index 90270c0dae0..bdb2856c17a 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Compose/consoleapplication5.csproj @@ -12,4 +12,8 @@ + + + + diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj index b583bb4ccaf..96f51775830 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/CompositionContainer/Overview/consoleapplication1.csproj @@ -12,4 +12,8 @@ + + + + diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj index 46479feeba3..59164a77c15 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/classlibrary1/classlibrary1.csproj @@ -11,4 +11,8 @@ + + + + diff --git a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj index 8208ae5607f..267accc085c 100644 --- a/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj +++ b/snippets/csharp/System.ComponentModel.Composition.Hosting/DirectoryCatalog/consoleapplication7/consoleapplication7.csproj @@ -16,4 +16,8 @@ + + + + diff --git a/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj b/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj index 69d473889d9..55a05923a6d 100644 --- a/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj +++ b/snippets/csharp/System.ComponentModel.Composition/ExportAttribute/consoleapplication3.csproj @@ -12,4 +12,8 @@ + + + + diff --git a/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.cs b/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.cs index 1e13e83f19f..69857845e72 100644 --- a/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.cs +++ b/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.cs @@ -21,9 +21,6 @@ class PackageDigitalSignatureSample "http://schemas.microsoft.com/opc/2006/06/sample/document"; private static string _sampleResourceRelationshipType = "http://schemas.microsoft.com/xps/2005/06/required-resource"; - private static string _digitalSignatureUri = - "/package/services/digital-signature/_rels/origin.psdsor.rels"; - // ------------------------------ Main ------------------------------- public static void Main() { diff --git a/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj b/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj index 2ed441d2897..d9ad4f6ed9b 100644 --- a/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj +++ b/snippets/csharp/System.IO.Packaging/CertificateEmbeddingOption/Overview/PackageDigitalSignature.csproj @@ -10,6 +10,7 @@ + diff --git a/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj b/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj index 400ea29ae69..571244b1df9 100644 --- a/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj +++ b/snippets/csharp/System.IO/StreamWriter/Overview/streamreadwrite.csproj @@ -8,4 +8,8 @@ StreamReadWrite + + + + diff --git a/snippets/csharp/System.Printing/Collation/Overview/XpsCreate.cs b/snippets/csharp/System.Printing/Collation/Overview/XpsCreate.cs index 99b4c94629a..885b9a3d00c 100644 --- a/snippets/csharp/System.Printing/Collation/Overview/XpsCreate.cs +++ b/snippets/csharp/System.Printing/Collation/Overview/XpsCreate.cs @@ -134,9 +134,9 @@ private void AddPackageContent( // Commit the FixedDocumentSequence documentSequenceWriter.Commit(); } - catch (XpsPackagingException xpsException) + catch (XpsPackagingException) { - throw xpsException; + throw; } }// end:AddPackageContent() // @@ -183,9 +183,9 @@ private void AddDocumentContent(IXpsFixedDocumentWriter fixedDocumentWriter) // Commit Page 2. fixedPageWriter.Commit(); } - catch (XpsPackagingException xpsException) + catch (XpsPackagingException) { - throw xpsException; + throw; } }// end:AddDocumentContent() // @@ -240,9 +240,9 @@ private Dictionary> resources.Add("XpsFont", xpsFonts); return resources; } - catch (XpsPackagingException xpsException) + catch (XpsPackagingException) { - throw xpsException; + throw; } }// end:AddPageResources() // @@ -431,7 +431,7 @@ private void WriteObfuscatedStream( // XOR the first 32 bytes of the source // resource stream with GUID byte. byte[] buf = new byte[obfuscatedByte]; - filestream.Read(buf, 0, obfuscatedByte); + filestream.ReadExactly(buf, 0, obfuscatedByte); for (int i = 0; i < obfuscatedByte; i++) { diff --git a/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj b/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj index 5806a7dbd59..0effab2d421 100644 --- a/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj +++ b/snippets/csharp/System.Runtime.CompilerServices/FixedAddressValueTypeAttribute/Overview/fixedaddress.csproj @@ -9,5 +9,9 @@ FixedAddressCS + + + + diff --git a/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj b/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj index a2573050cef..74a2429159b 100644 --- a/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj +++ b/snippets/csharp/System.Runtime.InteropServices/SafeHandle/Overview/safehandle.csproj @@ -6,10 +6,15 @@ false SafeHandle SafeHandle + $(NoWarn);SYSLIB0003;SYSLIB0004;SYSLIB0006 + + + + diff --git a/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj b/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj index c2deee6e6af..ab50bf72d50 100644 --- a/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj +++ b/snippets/csharp/System.Security/SecureString/.ctor/securestringctor.csproj @@ -9,5 +9,9 @@ SecureStringCtor + + + + diff --git a/snippets/csharp/System.Text.RegularExpressions/Regex/CompileToAssembly/compiletoassembly1.csproj b/snippets/csharp/System.Text.RegularExpressions/Regex/CompileToAssembly/compiletoassembly1.csproj index 2fdd52a1a99..ef536a5075a 100644 --- a/snippets/csharp/System.Text.RegularExpressions/Regex/CompileToAssembly/compiletoassembly1.csproj +++ b/snippets/csharp/System.Text.RegularExpressions/Regex/CompileToAssembly/compiletoassembly1.csproj @@ -7,6 +7,7 @@ CompileToAssembly1 CompileToAssembly1 RegexCompilationTest + $(NoWarn);SYSLIB0036 diff --git a/snippets/csharp/System/Console/Overview/setfont1.csproj b/snippets/csharp/System/Console/Overview/setfont1.csproj index ab36c242ad3..7c2c2a0a29d 100644 --- a/snippets/csharp/System/Console/Overview/setfont1.csproj +++ b/snippets/csharp/System/Console/Overview/setfont1.csproj @@ -9,4 +9,8 @@ SetFont1 + + + + diff --git a/snippets/csharp/System/Convert/IsDBNull/Form1.cs b/snippets/csharp/System/Convert/IsDBNull/Form1.cs index 4509e1d9790..04c539969aa 100644 --- a/snippets/csharp/System/Convert/IsDBNull/Form1.cs +++ b/snippets/csharp/System/Convert/IsDBNull/Form1.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Data.SqlClient; +using Microsoft.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; diff --git a/snippets/csharp/System/Convert/IsDBNull/IsDBNull_To_NA_CS.csproj b/snippets/csharp/System/Convert/IsDBNull/IsDBNull_To_NA_CS.csproj index 2e6faac0c2a..98875577544 100644 --- a/snippets/csharp/System/Convert/IsDBNull/IsDBNull_To_NA_CS.csproj +++ b/snippets/csharp/System/Convert/IsDBNull/IsDBNull_To_NA_CS.csproj @@ -34,7 +34,7 @@ - + diff --git a/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj b/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj index b70b51b126f..046c0cf1eaa 100644 --- a/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj +++ b/snippets/csharp/System/Exception/Overview/customexceptioncs.csproj @@ -6,6 +6,13 @@ false CustomExceptionCS CustomExceptionCS + $(NoWarn);SYSLIB0024;SYSLIB0051 + + + + + + diff --git a/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj b/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj index 0ad72aa38bd..249c21ed87b 100644 --- a/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj +++ b/snippets/csharp/System/IObservableT/Overview/locationtrackercs.csproj @@ -8,4 +8,10 @@ LocationTrackerCS + + + + + + diff --git a/snippets/csharp/System/IntPtr/Overview/example.csproj b/snippets/csharp/System/IntPtr/Overview/example.csproj index ba9e5ddf727..4e5f49435f8 100644 --- a/snippets/csharp/System/IntPtr/Overview/example.csproj +++ b/snippets/csharp/System/IntPtr/Overview/example.csproj @@ -9,4 +9,8 @@ Example + + + + diff --git a/snippets/csharp/System/String/Overview/instantiate1.csproj b/snippets/csharp/System/String/Overview/instantiate1.csproj index 38b2eb64df8..1420d1628fc 100644 --- a/snippets/csharp/System/String/Overview/instantiate1.csproj +++ b/snippets/csharp/System/String/Overview/instantiate1.csproj @@ -9,5 +9,9 @@ Instantiation + + + + diff --git a/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.slnx b/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.slnx new file mode 100644 index 00000000000..03f56c1194f --- /dev/null +++ b/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.slnx @@ -0,0 +1,4 @@ + + + +