From ecb446982614a2f145bc41361291b67d98b34e58 Mon Sep 17 00:00:00 2001 From: "Tom \"Calm like a Bomb\" Morello" Date: Mon, 30 Sep 2024 06:12:40 -0500 Subject: [PATCH 1/5] WWI-Development-VS-Code Created a branch of my own for setting up World Wide Importers in VS Code & Visual Studio 2022. --- .../wide-world-importers/wwi-sample.sln | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/samples/databases/wide-world-importers/wwi-sample.sln b/samples/databases/wide-world-importers/wwi-sample.sln index 38289175c8..3c5b0426ed 100644 --- a/samples/databases/wide-world-importers/wwi-sample.sln +++ b/samples/databases/wide-world-importers/wwi-sample.sln @@ -11,6 +11,10 @@ Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "WideWorldImporters", "wwi-s EndProject Project("{159641D6-6404-4A2A-AE62-294DE0FE8301}") = "Daily ETL", "wwi-ssis\WWI-SSIS\Daily ETL.dtproj", "{925A4107-F621-4697-955C-1EB222C4AB3C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wwi-app", "wwi-app\wwi-app.csproj", "{6906F917-3781-423C-9B29-A7D1DCE7EE0D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wwi-azure-functions", "wwi-azure-functions\wwi-azure-functions.csproj", "{CEFEBC2F-1BF5-452C-89FF-9BD1892D5DA6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -51,6 +55,18 @@ Global {925A4107-F621-4697-955C-1EB222C4AB3C}.Development|Any CPU.Build.0 = Development {925A4107-F621-4697-955C-1EB222C4AB3C}.Release|Any CPU.ActiveCfg = Development {925A4107-F621-4697-955C-1EB222C4AB3C}.Release|Any CPU.Build.0 = Development + {6906F917-3781-423C-9B29-A7D1DCE7EE0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6906F917-3781-423C-9B29-A7D1DCE7EE0D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6906F917-3781-423C-9B29-A7D1DCE7EE0D}.Development|Any CPU.ActiveCfg = Debug|Any CPU + {6906F917-3781-423C-9B29-A7D1DCE7EE0D}.Development|Any CPU.Build.0 = Debug|Any CPU + {6906F917-3781-423C-9B29-A7D1DCE7EE0D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6906F917-3781-423C-9B29-A7D1DCE7EE0D}.Release|Any CPU.Build.0 = Release|Any CPU + {CEFEBC2F-1BF5-452C-89FF-9BD1892D5DA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CEFEBC2F-1BF5-452C-89FF-9BD1892D5DA6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CEFEBC2F-1BF5-452C-89FF-9BD1892D5DA6}.Development|Any CPU.ActiveCfg = Debug|Any CPU + {CEFEBC2F-1BF5-452C-89FF-9BD1892D5DA6}.Development|Any CPU.Build.0 = Debug|Any CPU + {CEFEBC2F-1BF5-452C-89FF-9BD1892D5DA6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CEFEBC2F-1BF5-452C-89FF-9BD1892D5DA6}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 1afc006cdc0ac60675e481652c9b3170d920adb9 Mon Sep 17 00:00:00 2001 From: "Tom \"Calm like a Bomb\" Morello" Date: Wed, 2 Oct 2024 00:40:23 -0500 Subject: [PATCH 2/5] VS Code & Visual Studio 2022 updates Saving the updates I made to be able to run these examples in both VS Code & Visual Studio Community 2022 to be able to run and execute each project and build it. --- .../applications/iot-connected-car/App.config | 24 +++++++++---------- .../DataGenerator/DataGenerator.csproj | 3 ++- .../Properties/Resources.Designer.cs | 16 ++++++------- .../Properties/Settings.Designer.cs | 22 +++++++---------- .../WinFormsClient/WinFormsClient.csproj | 3 ++- .../wwi-app/wwi-app.csproj | 8 ++----- 6 files changed, 35 insertions(+), 41 deletions(-) diff --git a/samples/applications/iot-connected-car/App.config b/samples/applications/iot-connected-car/App.config index 7040d5a510..0055dc5d69 100644 --- a/samples/applications/iot-connected-car/App.config +++ b/samples/applications/iot-connected-car/App.config @@ -1,7 +1,7 @@ - + - + @@ -18,15 +18,15 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/samples/applications/iot-connected-car/DataGenerator/DataGenerator.csproj b/samples/applications/iot-connected-car/DataGenerator/DataGenerator.csproj index 56057d7a71..c2299b3a09 100644 --- a/samples/applications/iot-connected-car/DataGenerator/DataGenerator.csproj +++ b/samples/applications/iot-connected-car/DataGenerator/DataGenerator.csproj @@ -9,8 +9,9 @@ Properties DataGenerator DataGenerator - v4.5.2 + v4.8 512 + true diff --git a/samples/applications/iot-connected-car/WinFormsClient/Properties/Resources.Designer.cs b/samples/applications/iot-connected-car/WinFormsClient/Properties/Resources.Designer.cs index 6d43c482d7..0b60deafdf 100644 --- a/samples/applications/iot-connected-car/WinFormsClient/Properties/Resources.Designer.cs +++ b/samples/applications/iot-connected-car/WinFormsClient/Properties/Resources.Designer.cs @@ -10,8 +10,8 @@ namespace Client.Properties { using System; - - + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// @@ -19,19 +19,19 @@ namespace Client.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { - + private static global::System.Resources.ResourceManager resourceMan; - + private static global::System.Globalization.CultureInfo resourceCulture; - + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } - + /// /// Returns the cached ResourceManager instance used by this class. /// @@ -45,7 +45,7 @@ internal Resources() { return resourceMan; } } - + /// /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. diff --git a/samples/applications/iot-connected-car/WinFormsClient/Properties/Settings.Designer.cs b/samples/applications/iot-connected-car/WinFormsClient/Properties/Settings.Designer.cs index 6ec15e636f..c0c8deb1c0 100644 --- a/samples/applications/iot-connected-car/WinFormsClient/Properties/Settings.Designer.cs +++ b/samples/applications/iot-connected-car/WinFormsClient/Properties/Settings.Designer.cs @@ -8,21 +8,17 @@ // //------------------------------------------------------------------------------ -namespace Client.Properties -{ - - +namespace Client.Properties { + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { + + public static Settings Default { + get { return defaultInstance; } } diff --git a/samples/applications/iot-connected-car/WinFormsClient/WinFormsClient.csproj b/samples/applications/iot-connected-car/WinFormsClient/WinFormsClient.csproj index a69b731265..38f3d55db7 100644 --- a/samples/applications/iot-connected-car/WinFormsClient/WinFormsClient.csproj +++ b/samples/applications/iot-connected-car/WinFormsClient/WinFormsClient.csproj @@ -9,9 +9,10 @@ Properties Client Client - v4.5.2 + v4.8 512 true + AnyCPU diff --git a/samples/databases/wide-world-importers/wwi-app/wwi-app.csproj b/samples/databases/wide-world-importers/wwi-app/wwi-app.csproj index ef139dc607..bfca1d4480 100644 --- a/samples/databases/wide-world-importers/wwi-app/wwi-app.csproj +++ b/samples/databases/wide-world-importers/wwi-app/wwi-app.csproj @@ -14,14 +14,10 @@ - - - - + - + - From f66dcf81443fe7797f713c663c8a06c8fa59b1d1 Mon Sep 17 00:00:00 2001 From: "Tom \"Calm like a Bomb\" Morello" Date: Wed, 2 Oct 2024 01:02:18 -0500 Subject: [PATCH 3/5] NuGet package deprecation removals and update version installs --- .../databases/wide-world-importers/wwi-app/wwi-app.csproj | 6 ++---- .../wwi-azure-functions/wwi-azure-functions.csproj | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/samples/databases/wide-world-importers/wwi-app/wwi-app.csproj b/samples/databases/wide-world-importers/wwi-app/wwi-app.csproj index bfca1d4480..ca1749fcfe 100644 --- a/samples/databases/wide-world-importers/wwi-app/wwi-app.csproj +++ b/samples/databases/wide-world-importers/wwi-app/wwi-app.csproj @@ -14,11 +14,9 @@ - - - + - + diff --git a/samples/databases/wide-world-importers/wwi-azure-functions/wwi-azure-functions.csproj b/samples/databases/wide-world-importers/wwi-azure-functions/wwi-azure-functions.csproj index c5a3f4b794..fe5616f118 100644 --- a/samples/databases/wide-world-importers/wwi-azure-functions/wwi-azure-functions.csproj +++ b/samples/databases/wide-world-importers/wwi-azure-functions/wwi-azure-functions.csproj @@ -5,8 +5,7 @@ wwi_azure_functions - - + From fbf0adbd7ef9e85a7cedff78a0dcdf381b568040 Mon Sep 17 00:00:00 2001 From: "Tom \"Calm like a Bomb\" Morello" Date: Wed, 2 Oct 2024 01:39:53 -0500 Subject: [PATCH 4/5] Update App.config Added a single space to single line closing tags to keep consistency across all tags. --- .../applications/iot-connected-car/App.config | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/samples/applications/iot-connected-car/App.config b/samples/applications/iot-connected-car/App.config index 0055dc5d69..a91b941664 100644 --- a/samples/applications/iot-connected-car/App.config +++ b/samples/applications/iot-connected-car/App.config @@ -1,32 +1,32 @@ - + - + - - - - - - - - - + + + + + + + + + - - - - - - - - - - + + + + + + + + + + From e5e2a909427395a820b2337700c2ef36b6cfd1e3 Mon Sep 17 00:00:00 2001 From: "Tom \"Calm like a Bomb\" Morello" Date: Tue, 8 Oct 2024 00:44:39 -0500 Subject: [PATCH 5/5] Adding workspace file to be able to load in both VS Code & Visual Studio 2022. --- sql-server-samples.code-workspace | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sql-server-samples.code-workspace diff --git a/sql-server-samples.code-workspace b/sql-server-samples.code-workspace new file mode 100644 index 0000000000..362d7c25bb --- /dev/null +++ b/sql-server-samples.code-workspace @@ -0,0 +1,7 @@ +{ + "folders": [ + { + "path": "." + } + ] +} \ No newline at end of file