From 35b9e26f3a6b1952639e7fc124cb5038c6a2c515 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 20 Sep 2023 16:26:46 +0300 Subject: [PATCH 01/19] adding nuget single example --- nuget-example/single-example/Program.cs | 2 ++ nuget-example/single-example/single-example.csproj | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 nuget-example/single-example/Program.cs create mode 100644 nuget-example/single-example/single-example.csproj diff --git a/nuget-example/single-example/Program.cs b/nuget-example/single-example/Program.cs new file mode 100644 index 000000000..3751555cb --- /dev/null +++ b/nuget-example/single-example/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/nuget-example/single-example/single-example.csproj b/nuget-example/single-example/single-example.csproj new file mode 100644 index 000000000..d25092c1a --- /dev/null +++ b/nuget-example/single-example/single-example.csproj @@ -0,0 +1,11 @@ + + + + Exe + net7.0 + single_example + enable + enable + + + From 99a5a1e35ff55103ea92e552016211b01293e3e4 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Tue, 26 Sep 2023 14:59:12 +0300 Subject: [PATCH 02/19] changed dir name --- {nuget-example => nuget-examples}/MyLogger/MyLogger.sln | 0 .../MyLogger/MyLogger/MyLogger.cs | 0 .../MyLogger/MyLogger/MyLogger.csproj | 0 .../MyLogger/MyLogger/MyLogger.nuspec | 0 .../MyLogger/MyLogger/Properties/AssemblyInfo.cs | 0 .../TeamCity-Config/NuGet/plugin-settings.xml | 0 .../TeamCity-Config/NuGet/project-config.xml | 0 {nuget-example => nuget-examples}/multi-example/api/Multi2.cs | 0 .../multi-example/api/Properties/AssemblyInfo.cs | 0 .../multi-example/api/api.csproj | 0 .../multi-example/api/api.nuspec | 0 .../multi-example/api/packages.config | 0 .../multi-example/core/Multi1.cs | 0 .../multi-example/core/Properties/AssemblyInfo.cs | 0 .../multi-example/core/core.csproj | 0 .../multi-example/core/core.nuspec | 0 .../multi-example/core/packages.config | 0 .../multi-example/multi-example.sln | 0 .../multi-example/services/Multi3.cs | 0 .../multi-example/services/Properties/AssemblyInfo.cs | 0 .../multi-example/services/packages.config | 0 .../multi-example/services/services.csproj | 0 .../multi-example/services/services.nuspec | 0 {nuget-example => nuget-examples}/single-example/Program.cs | 0 .../single-example/single-example.csproj | 4 ++++ 25 files changed, 4 insertions(+) rename {nuget-example => nuget-examples}/MyLogger/MyLogger.sln (100%) rename {nuget-example => nuget-examples}/MyLogger/MyLogger/MyLogger.cs (100%) rename {nuget-example => nuget-examples}/MyLogger/MyLogger/MyLogger.csproj (100%) rename {nuget-example => nuget-examples}/MyLogger/MyLogger/MyLogger.nuspec (100%) rename {nuget-example => nuget-examples}/MyLogger/MyLogger/Properties/AssemblyInfo.cs (100%) rename {nuget-example => nuget-examples}/TeamCity-Config/NuGet/plugin-settings.xml (100%) rename {nuget-example => nuget-examples}/TeamCity-Config/NuGet/project-config.xml (100%) rename {nuget-example => nuget-examples}/multi-example/api/Multi2.cs (100%) rename {nuget-example => nuget-examples}/multi-example/api/Properties/AssemblyInfo.cs (100%) rename {nuget-example => nuget-examples}/multi-example/api/api.csproj (100%) rename {nuget-example => nuget-examples}/multi-example/api/api.nuspec (100%) rename {nuget-example => nuget-examples}/multi-example/api/packages.config (100%) rename {nuget-example => nuget-examples}/multi-example/core/Multi1.cs (100%) rename {nuget-example => nuget-examples}/multi-example/core/Properties/AssemblyInfo.cs (100%) rename {nuget-example => nuget-examples}/multi-example/core/core.csproj (100%) rename {nuget-example => nuget-examples}/multi-example/core/core.nuspec (100%) rename {nuget-example => nuget-examples}/multi-example/core/packages.config (100%) rename {nuget-example => nuget-examples}/multi-example/multi-example.sln (100%) rename {nuget-example => nuget-examples}/multi-example/services/Multi3.cs (100%) rename {nuget-example => nuget-examples}/multi-example/services/Properties/AssemblyInfo.cs (100%) rename {nuget-example => nuget-examples}/multi-example/services/packages.config (100%) rename {nuget-example => nuget-examples}/multi-example/services/services.csproj (100%) rename {nuget-example => nuget-examples}/multi-example/services/services.nuspec (100%) rename {nuget-example => nuget-examples}/single-example/Program.cs (100%) rename {nuget-example => nuget-examples}/single-example/single-example.csproj (76%) diff --git a/nuget-example/MyLogger/MyLogger.sln b/nuget-examples/MyLogger/MyLogger.sln similarity index 100% rename from nuget-example/MyLogger/MyLogger.sln rename to nuget-examples/MyLogger/MyLogger.sln diff --git a/nuget-example/MyLogger/MyLogger/MyLogger.cs b/nuget-examples/MyLogger/MyLogger/MyLogger.cs similarity index 100% rename from nuget-example/MyLogger/MyLogger/MyLogger.cs rename to nuget-examples/MyLogger/MyLogger/MyLogger.cs diff --git a/nuget-example/MyLogger/MyLogger/MyLogger.csproj b/nuget-examples/MyLogger/MyLogger/MyLogger.csproj similarity index 100% rename from nuget-example/MyLogger/MyLogger/MyLogger.csproj rename to nuget-examples/MyLogger/MyLogger/MyLogger.csproj diff --git a/nuget-example/MyLogger/MyLogger/MyLogger.nuspec b/nuget-examples/MyLogger/MyLogger/MyLogger.nuspec similarity index 100% rename from nuget-example/MyLogger/MyLogger/MyLogger.nuspec rename to nuget-examples/MyLogger/MyLogger/MyLogger.nuspec diff --git a/nuget-example/MyLogger/MyLogger/Properties/AssemblyInfo.cs b/nuget-examples/MyLogger/MyLogger/Properties/AssemblyInfo.cs similarity index 100% rename from nuget-example/MyLogger/MyLogger/Properties/AssemblyInfo.cs rename to nuget-examples/MyLogger/MyLogger/Properties/AssemblyInfo.cs diff --git a/nuget-example/TeamCity-Config/NuGet/plugin-settings.xml b/nuget-examples/TeamCity-Config/NuGet/plugin-settings.xml similarity index 100% rename from nuget-example/TeamCity-Config/NuGet/plugin-settings.xml rename to nuget-examples/TeamCity-Config/NuGet/plugin-settings.xml diff --git a/nuget-example/TeamCity-Config/NuGet/project-config.xml b/nuget-examples/TeamCity-Config/NuGet/project-config.xml similarity index 100% rename from nuget-example/TeamCity-Config/NuGet/project-config.xml rename to nuget-examples/TeamCity-Config/NuGet/project-config.xml diff --git a/nuget-example/multi-example/api/Multi2.cs b/nuget-examples/multi-example/api/Multi2.cs similarity index 100% rename from nuget-example/multi-example/api/Multi2.cs rename to nuget-examples/multi-example/api/Multi2.cs diff --git a/nuget-example/multi-example/api/Properties/AssemblyInfo.cs b/nuget-examples/multi-example/api/Properties/AssemblyInfo.cs similarity index 100% rename from nuget-example/multi-example/api/Properties/AssemblyInfo.cs rename to nuget-examples/multi-example/api/Properties/AssemblyInfo.cs diff --git a/nuget-example/multi-example/api/api.csproj b/nuget-examples/multi-example/api/api.csproj similarity index 100% rename from nuget-example/multi-example/api/api.csproj rename to nuget-examples/multi-example/api/api.csproj diff --git a/nuget-example/multi-example/api/api.nuspec b/nuget-examples/multi-example/api/api.nuspec similarity index 100% rename from nuget-example/multi-example/api/api.nuspec rename to nuget-examples/multi-example/api/api.nuspec diff --git a/nuget-example/multi-example/api/packages.config b/nuget-examples/multi-example/api/packages.config similarity index 100% rename from nuget-example/multi-example/api/packages.config rename to nuget-examples/multi-example/api/packages.config diff --git a/nuget-example/multi-example/core/Multi1.cs b/nuget-examples/multi-example/core/Multi1.cs similarity index 100% rename from nuget-example/multi-example/core/Multi1.cs rename to nuget-examples/multi-example/core/Multi1.cs diff --git a/nuget-example/multi-example/core/Properties/AssemblyInfo.cs b/nuget-examples/multi-example/core/Properties/AssemblyInfo.cs similarity index 100% rename from nuget-example/multi-example/core/Properties/AssemblyInfo.cs rename to nuget-examples/multi-example/core/Properties/AssemblyInfo.cs diff --git a/nuget-example/multi-example/core/core.csproj b/nuget-examples/multi-example/core/core.csproj similarity index 100% rename from nuget-example/multi-example/core/core.csproj rename to nuget-examples/multi-example/core/core.csproj diff --git a/nuget-example/multi-example/core/core.nuspec b/nuget-examples/multi-example/core/core.nuspec similarity index 100% rename from nuget-example/multi-example/core/core.nuspec rename to nuget-examples/multi-example/core/core.nuspec diff --git a/nuget-example/multi-example/core/packages.config b/nuget-examples/multi-example/core/packages.config similarity index 100% rename from nuget-example/multi-example/core/packages.config rename to nuget-examples/multi-example/core/packages.config diff --git a/nuget-example/multi-example/multi-example.sln b/nuget-examples/multi-example/multi-example.sln similarity index 100% rename from nuget-example/multi-example/multi-example.sln rename to nuget-examples/multi-example/multi-example.sln diff --git a/nuget-example/multi-example/services/Multi3.cs b/nuget-examples/multi-example/services/Multi3.cs similarity index 100% rename from nuget-example/multi-example/services/Multi3.cs rename to nuget-examples/multi-example/services/Multi3.cs diff --git a/nuget-example/multi-example/services/Properties/AssemblyInfo.cs b/nuget-examples/multi-example/services/Properties/AssemblyInfo.cs similarity index 100% rename from nuget-example/multi-example/services/Properties/AssemblyInfo.cs rename to nuget-examples/multi-example/services/Properties/AssemblyInfo.cs diff --git a/nuget-example/multi-example/services/packages.config b/nuget-examples/multi-example/services/packages.config similarity index 100% rename from nuget-example/multi-example/services/packages.config rename to nuget-examples/multi-example/services/packages.config diff --git a/nuget-example/multi-example/services/services.csproj b/nuget-examples/multi-example/services/services.csproj similarity index 100% rename from nuget-example/multi-example/services/services.csproj rename to nuget-examples/multi-example/services/services.csproj diff --git a/nuget-example/multi-example/services/services.nuspec b/nuget-examples/multi-example/services/services.nuspec similarity index 100% rename from nuget-example/multi-example/services/services.nuspec rename to nuget-examples/multi-example/services/services.nuspec diff --git a/nuget-example/single-example/Program.cs b/nuget-examples/single-example/Program.cs similarity index 100% rename from nuget-example/single-example/Program.cs rename to nuget-examples/single-example/Program.cs diff --git a/nuget-example/single-example/single-example.csproj b/nuget-examples/single-example/single-example.csproj similarity index 76% rename from nuget-example/single-example/single-example.csproj rename to nuget-examples/single-example/single-example.csproj index d25092c1a..5001d9996 100644 --- a/nuget-example/single-example/single-example.csproj +++ b/nuget-examples/single-example/single-example.csproj @@ -8,4 +8,8 @@ enable + + + + From 155468c0aef260813461b5148595df03013bb5ae Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Tue, 26 Sep 2023 16:54:34 +0300 Subject: [PATCH 03/19] adding dotnet examples --- .../ClassLibrary1/ClassLibrary1.csproj | 15 +++++++++ .../SharedProject1/SharedProject1.projitems | 13 ++++++++ .../SharedProject1/SharedProject1.shproj | 13 ++++++++ .../multi-example/TestApp1/TestApp1.csproj | 31 +++++++++++++++++++ .../multi-example/TestSolution.sln | 31 +++++++++++++++++++ .../single-example/Program.cs | 0 .../single-example/single-example.csproj | 0 7 files changed, 103 insertions(+) create mode 100644 dotnet-examples/multi-example/ClassLibrary1/ClassLibrary1.csproj create mode 100644 dotnet-examples/multi-example/SharedProject1/SharedProject1.projitems create mode 100644 dotnet-examples/multi-example/SharedProject1/SharedProject1.shproj create mode 100644 dotnet-examples/multi-example/TestApp1/TestApp1.csproj create mode 100644 dotnet-examples/multi-example/TestSolution.sln rename {nuget-examples => dotnet-examples}/single-example/Program.cs (100%) rename {nuget-examples => dotnet-examples}/single-example/single-example.csproj (100%) diff --git a/dotnet-examples/multi-example/ClassLibrary1/ClassLibrary1.csproj b/dotnet-examples/multi-example/ClassLibrary1/ClassLibrary1.csproj new file mode 100644 index 000000000..775427ce2 --- /dev/null +++ b/dotnet-examples/multi-example/ClassLibrary1/ClassLibrary1.csproj @@ -0,0 +1,15 @@ + + + + netstandard2.0 + AnyCPU;x64 + Some Compnay + Some product + Some copyright + 1.0.0 + + + + + + diff --git a/dotnet-examples/multi-example/SharedProject1/SharedProject1.projitems b/dotnet-examples/multi-example/SharedProject1/SharedProject1.projitems new file mode 100644 index 000000000..266b8837a --- /dev/null +++ b/dotnet-examples/multi-example/SharedProject1/SharedProject1.projitems @@ -0,0 +1,13 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + true + 64bb14a4-9a54-4444-8b83-e8405a1b83a2 + + + SharedProject1 + + + + diff --git a/dotnet-examples/multi-example/SharedProject1/SharedProject1.shproj b/dotnet-examples/multi-example/SharedProject1/SharedProject1.shproj new file mode 100644 index 000000000..0b201723d --- /dev/null +++ b/dotnet-examples/multi-example/SharedProject1/SharedProject1.shproj @@ -0,0 +1,13 @@ + + + + 64bb14a4-9a54-4444-8b83-e8405a1b83a2 + 14.0 + + + + + + + + diff --git a/dotnet-examples/multi-example/TestApp1/TestApp1.csproj b/dotnet-examples/multi-example/TestApp1/TestApp1.csproj new file mode 100644 index 000000000..e95c43630 --- /dev/null +++ b/dotnet-examples/multi-example/TestApp1/TestApp1.csproj @@ -0,0 +1,31 @@ + + + + Exe + netcoreapp3.1 + Some Company + 1.0.0 + Some product + Foobar + Frederik + AnyCPU;x64 + + + + bin\x64\Release\ + + + + bin\x64\Release\ + + + + + + + + + + + + diff --git a/dotnet-examples/multi-example/TestSolution.sln b/dotnet-examples/multi-example/TestSolution.sln new file mode 100644 index 000000000..1f834792b --- /dev/null +++ b/dotnet-examples/multi-example/TestSolution.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.32106.194 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApp1", "TestApp1\TestApp1.csproj", "{757C1D5A-BAA9-453F-B612-A0571390976B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{D9C89660-69F8-46E2-B9C4-78E9B505E8B1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {757C1D5A-BAA9-453F-B612-A0571390976B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {757C1D5A-BAA9-453F-B612-A0571390976B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {757C1D5A-BAA9-453F-B612-A0571390976B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {757C1D5A-BAA9-453F-B612-A0571390976B}.Release|Any CPU.Build.0 = Release|Any CPU + {D9C89660-69F8-46E2-B9C4-78E9B505E8B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D9C89660-69F8-46E2-B9C4-78E9B505E8B1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D9C89660-69F8-46E2-B9C4-78E9B505E8B1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D9C89660-69F8-46E2-B9C4-78E9B505E8B1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D8547989-C4F7-4FCC-95BB-F7478F7D2484} + EndGlobalSection +EndGlobal diff --git a/nuget-examples/single-example/Program.cs b/dotnet-examples/single-example/Program.cs similarity index 100% rename from nuget-examples/single-example/Program.cs rename to dotnet-examples/single-example/Program.cs diff --git a/nuget-examples/single-example/single-example.csproj b/dotnet-examples/single-example/single-example.csproj similarity index 100% rename from nuget-examples/single-example/single-example.csproj rename to dotnet-examples/single-example/single-example.csproj From 5aae2637b4f1ef81a3d94f5f335f26eae4f53c62 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Tue, 26 Sep 2023 16:58:16 +0300 Subject: [PATCH 04/19] changing nuget examples --- .../multi-example/api/Multi2.cs | 0 .../api/Properties/AssemblyInfo.cs | 0 .../multi-example/api/api.csproj | 0 .../multi-example/api/api.nuspec | 0 .../multi-example/api/packages.config | 0 .../multi-example/core/Multi1.cs | 0 .../core/Properties/AssemblyInfo.cs | 0 .../multi-example/core/core.csproj | 0 .../multi-example/core/core.nuspec | 0 .../multi-example/core/packages.config | 0 .../multi-example/multi-example.sln | 0 .../multi-example/services/Multi3.cs | 0 .../services/Properties/AssemblyInfo.cs | 0 .../multi-example/services/packages.config | 0 .../multi-example/services/services.csproj | 0 .../multi-example/services/services.nuspec | 0 nuget-examples/MyLogger/MyLogger.sln | 20 -- nuget-examples/MyLogger/MyLogger/MyLogger.cs | 16 -- .../MyLogger/MyLogger/MyLogger.csproj | 53 ------ .../MyLogger/MyLogger/MyLogger.nuspec | 13 -- .../MyLogger/Properties/AssemblyInfo.cs | 36 ---- .../TeamCity-Config/NuGet/plugin-settings.xml | 3 - .../TeamCity-Config/NuGet/project-config.xml | 172 ------------------ 23 files changed, 313 deletions(-) rename {nuget-examples => nuget-example}/multi-example/api/Multi2.cs (100%) rename {nuget-examples => nuget-example}/multi-example/api/Properties/AssemblyInfo.cs (100%) rename {nuget-examples => nuget-example}/multi-example/api/api.csproj (100%) rename {nuget-examples => nuget-example}/multi-example/api/api.nuspec (100%) rename {nuget-examples => nuget-example}/multi-example/api/packages.config (100%) rename {nuget-examples => nuget-example}/multi-example/core/Multi1.cs (100%) rename {nuget-examples => nuget-example}/multi-example/core/Properties/AssemblyInfo.cs (100%) rename {nuget-examples => nuget-example}/multi-example/core/core.csproj (100%) rename {nuget-examples => nuget-example}/multi-example/core/core.nuspec (100%) rename {nuget-examples => nuget-example}/multi-example/core/packages.config (100%) rename {nuget-examples => nuget-example}/multi-example/multi-example.sln (100%) rename {nuget-examples => nuget-example}/multi-example/services/Multi3.cs (100%) rename {nuget-examples => nuget-example}/multi-example/services/Properties/AssemblyInfo.cs (100%) rename {nuget-examples => nuget-example}/multi-example/services/packages.config (100%) rename {nuget-examples => nuget-example}/multi-example/services/services.csproj (100%) rename {nuget-examples => nuget-example}/multi-example/services/services.nuspec (100%) delete mode 100644 nuget-examples/MyLogger/MyLogger.sln delete mode 100644 nuget-examples/MyLogger/MyLogger/MyLogger.cs delete mode 100644 nuget-examples/MyLogger/MyLogger/MyLogger.csproj delete mode 100644 nuget-examples/MyLogger/MyLogger/MyLogger.nuspec delete mode 100644 nuget-examples/MyLogger/MyLogger/Properties/AssemblyInfo.cs delete mode 100644 nuget-examples/TeamCity-Config/NuGet/plugin-settings.xml delete mode 100644 nuget-examples/TeamCity-Config/NuGet/project-config.xml diff --git a/nuget-examples/multi-example/api/Multi2.cs b/nuget-example/multi-example/api/Multi2.cs similarity index 100% rename from nuget-examples/multi-example/api/Multi2.cs rename to nuget-example/multi-example/api/Multi2.cs diff --git a/nuget-examples/multi-example/api/Properties/AssemblyInfo.cs b/nuget-example/multi-example/api/Properties/AssemblyInfo.cs similarity index 100% rename from nuget-examples/multi-example/api/Properties/AssemblyInfo.cs rename to nuget-example/multi-example/api/Properties/AssemblyInfo.cs diff --git a/nuget-examples/multi-example/api/api.csproj b/nuget-example/multi-example/api/api.csproj similarity index 100% rename from nuget-examples/multi-example/api/api.csproj rename to nuget-example/multi-example/api/api.csproj diff --git a/nuget-examples/multi-example/api/api.nuspec b/nuget-example/multi-example/api/api.nuspec similarity index 100% rename from nuget-examples/multi-example/api/api.nuspec rename to nuget-example/multi-example/api/api.nuspec diff --git a/nuget-examples/multi-example/api/packages.config b/nuget-example/multi-example/api/packages.config similarity index 100% rename from nuget-examples/multi-example/api/packages.config rename to nuget-example/multi-example/api/packages.config diff --git a/nuget-examples/multi-example/core/Multi1.cs b/nuget-example/multi-example/core/Multi1.cs similarity index 100% rename from nuget-examples/multi-example/core/Multi1.cs rename to nuget-example/multi-example/core/Multi1.cs diff --git a/nuget-examples/multi-example/core/Properties/AssemblyInfo.cs b/nuget-example/multi-example/core/Properties/AssemblyInfo.cs similarity index 100% rename from nuget-examples/multi-example/core/Properties/AssemblyInfo.cs rename to nuget-example/multi-example/core/Properties/AssemblyInfo.cs diff --git a/nuget-examples/multi-example/core/core.csproj b/nuget-example/multi-example/core/core.csproj similarity index 100% rename from nuget-examples/multi-example/core/core.csproj rename to nuget-example/multi-example/core/core.csproj diff --git a/nuget-examples/multi-example/core/core.nuspec b/nuget-example/multi-example/core/core.nuspec similarity index 100% rename from nuget-examples/multi-example/core/core.nuspec rename to nuget-example/multi-example/core/core.nuspec diff --git a/nuget-examples/multi-example/core/packages.config b/nuget-example/multi-example/core/packages.config similarity index 100% rename from nuget-examples/multi-example/core/packages.config rename to nuget-example/multi-example/core/packages.config diff --git a/nuget-examples/multi-example/multi-example.sln b/nuget-example/multi-example/multi-example.sln similarity index 100% rename from nuget-examples/multi-example/multi-example.sln rename to nuget-example/multi-example/multi-example.sln diff --git a/nuget-examples/multi-example/services/Multi3.cs b/nuget-example/multi-example/services/Multi3.cs similarity index 100% rename from nuget-examples/multi-example/services/Multi3.cs rename to nuget-example/multi-example/services/Multi3.cs diff --git a/nuget-examples/multi-example/services/Properties/AssemblyInfo.cs b/nuget-example/multi-example/services/Properties/AssemblyInfo.cs similarity index 100% rename from nuget-examples/multi-example/services/Properties/AssemblyInfo.cs rename to nuget-example/multi-example/services/Properties/AssemblyInfo.cs diff --git a/nuget-examples/multi-example/services/packages.config b/nuget-example/multi-example/services/packages.config similarity index 100% rename from nuget-examples/multi-example/services/packages.config rename to nuget-example/multi-example/services/packages.config diff --git a/nuget-examples/multi-example/services/services.csproj b/nuget-example/multi-example/services/services.csproj similarity index 100% rename from nuget-examples/multi-example/services/services.csproj rename to nuget-example/multi-example/services/services.csproj diff --git a/nuget-examples/multi-example/services/services.nuspec b/nuget-example/multi-example/services/services.nuspec similarity index 100% rename from nuget-examples/multi-example/services/services.nuspec rename to nuget-example/multi-example/services/services.nuspec diff --git a/nuget-examples/MyLogger/MyLogger.sln b/nuget-examples/MyLogger/MyLogger.sln deleted file mode 100644 index a71699508..000000000 --- a/nuget-examples/MyLogger/MyLogger.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Express 2012 for Windows Desktop -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyLogger", "MyLogger\MyLogger.csproj", "{EB7DD549-6605-4378-9B1D-1BCEFEE20610}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EB7DD549-6605-4378-9B1D-1BCEFEE20610}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EB7DD549-6605-4378-9B1D-1BCEFEE20610}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EB7DD549-6605-4378-9B1D-1BCEFEE20610}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EB7DD549-6605-4378-9B1D-1BCEFEE20610}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/nuget-examples/MyLogger/MyLogger/MyLogger.cs b/nuget-examples/MyLogger/MyLogger/MyLogger.cs deleted file mode 100644 index 3c8f84550..000000000 --- a/nuget-examples/MyLogger/MyLogger/MyLogger.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MyLogger -{ - public class MyLogger - { - public void log(String message) - { - Console.WriteLine("[MyLogger]" + message); - } - } -} diff --git a/nuget-examples/MyLogger/MyLogger/MyLogger.csproj b/nuget-examples/MyLogger/MyLogger/MyLogger.csproj deleted file mode 100644 index f7e79d6fa..000000000 --- a/nuget-examples/MyLogger/MyLogger/MyLogger.csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {EB7DD549-6605-4378-9B1D-1BCEFEE20610} - Library - Properties - MyLogger - MyLogger - v4.5 - 512 - - - 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/nuget-examples/MyLogger/MyLogger/MyLogger.nuspec b/nuget-examples/MyLogger/MyLogger/MyLogger.nuspec deleted file mode 100644 index 08ac31acd..000000000 --- a/nuget-examples/MyLogger/MyLogger/MyLogger.nuspec +++ /dev/null @@ -1,13 +0,0 @@ - - - - MyLogger - 1.0.0.0 - $title$ - JFrog - JFrog - false - JFrog custom logger - Copyright 2013 - - diff --git a/nuget-examples/MyLogger/MyLogger/Properties/AssemblyInfo.cs b/nuget-examples/MyLogger/MyLogger/Properties/AssemblyInfo.cs deleted file mode 100644 index 6fd4fcb81..000000000 --- a/nuget-examples/MyLogger/MyLogger/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("MyLogger")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("MyLogger")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("41afa0ed-e690-4efa-9a8f-caa98182ce2d")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/nuget-examples/TeamCity-Config/NuGet/plugin-settings.xml b/nuget-examples/TeamCity-Config/NuGet/plugin-settings.xml deleted file mode 100644 index 677e924ad..000000000 --- a/nuget-examples/TeamCity-Config/NuGet/plugin-settings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/nuget-examples/TeamCity-Config/NuGet/project-config.xml b/nuget-examples/TeamCity-Config/NuGet/project-config.xml deleted file mode 100644 index 3d23b5ab1..000000000 --- a/nuget-examples/TeamCity-Config/NuGet/project-config.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From fd6dc31d4e7fe79b3b7f4f58502e47823f1b5602 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 27 Sep 2023 10:53:08 +0300 Subject: [PATCH 05/19] deleting all old NuGet projects in nuget-examples --- nuget-example/multi-example/api/Multi2.cs | 16 ----- .../api/Properties/AssemblyInfo.cs | 36 ---------- nuget-example/multi-example/api/api.csproj | 59 ----------------- nuget-example/multi-example/api/api.nuspec | 13 ---- .../multi-example/api/packages.config | 4 -- nuget-example/multi-example/core/Multi1.cs | 16 ----- .../core/Properties/AssemblyInfo.cs | 36 ---------- nuget-example/multi-example/core/core.csproj | 65 ------------------- nuget-example/multi-example/core/core.nuspec | 13 ---- .../multi-example/core/packages.config | 6 -- nuget-example/multi-example/multi-example.sln | 32 --------- .../multi-example/services/Multi3.cs | 16 ----- .../services/Properties/AssemblyInfo.cs | 36 ---------- .../multi-example/services/packages.config | 5 -- .../multi-example/services/services.csproj | 62 ------------------ .../multi-example/services/services.nuspec | 13 ---- 16 files changed, 428 deletions(-) delete mode 100644 nuget-example/multi-example/api/Multi2.cs delete mode 100644 nuget-example/multi-example/api/Properties/AssemblyInfo.cs delete mode 100644 nuget-example/multi-example/api/api.csproj delete mode 100644 nuget-example/multi-example/api/api.nuspec delete mode 100644 nuget-example/multi-example/api/packages.config delete mode 100644 nuget-example/multi-example/core/Multi1.cs delete mode 100644 nuget-example/multi-example/core/Properties/AssemblyInfo.cs delete mode 100644 nuget-example/multi-example/core/core.csproj delete mode 100644 nuget-example/multi-example/core/core.nuspec delete mode 100644 nuget-example/multi-example/core/packages.config delete mode 100644 nuget-example/multi-example/multi-example.sln delete mode 100644 nuget-example/multi-example/services/Multi3.cs delete mode 100644 nuget-example/multi-example/services/Properties/AssemblyInfo.cs delete mode 100644 nuget-example/multi-example/services/packages.config delete mode 100644 nuget-example/multi-example/services/services.csproj delete mode 100644 nuget-example/multi-example/services/services.nuspec diff --git a/nuget-example/multi-example/api/Multi2.cs b/nuget-example/multi-example/api/Multi2.cs deleted file mode 100644 index cd958d319..000000000 --- a/nuget-example/multi-example/api/Multi2.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace multi2 -{ - public class Multi2 - { - static void Main(string[] args) - { - new MyLogger.MyLogger().log("Hello from Multi2!"); - } - } -} diff --git a/nuget-example/multi-example/api/Properties/AssemblyInfo.cs b/nuget-example/multi-example/api/Properties/AssemblyInfo.cs deleted file mode 100644 index 4c358ab8c..000000000 --- a/nuget-example/multi-example/api/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("multi2")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("multi2")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("396b8676-2faf-4ba4-8da7-4a15ff6ca467")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/nuget-example/multi-example/api/api.csproj b/nuget-example/multi-example/api/api.csproj deleted file mode 100644 index c8fc95710..000000000 --- a/nuget-example/multi-example/api/api.csproj +++ /dev/null @@ -1,59 +0,0 @@ - - - - - Debug - AnyCPU - {B8CD21CA-85E4-404A-8263-8E8A2B2834F6} - Library - Properties - api - api - v4.5 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\MyLogger.1.0.0.0\lib\net45\MyLogger.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/nuget-example/multi-example/api/api.nuspec b/nuget-example/multi-example/api/api.nuspec deleted file mode 100644 index 7debff871..000000000 --- a/nuget-example/multi-example/api/api.nuspec +++ /dev/null @@ -1,13 +0,0 @@ - - - - $id$ - $version$ - $title$ - JFrog - JFrog - false - JFrog API - Copyright 2013 - - \ No newline at end of file diff --git a/nuget-example/multi-example/api/packages.config b/nuget-example/multi-example/api/packages.config deleted file mode 100644 index bd528f174..000000000 --- a/nuget-example/multi-example/api/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/nuget-example/multi-example/core/Multi1.cs b/nuget-example/multi-example/core/Multi1.cs deleted file mode 100644 index 6cec53ff5..000000000 --- a/nuget-example/multi-example/core/Multi1.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace multi1 -{ - public class Multi1 - { - static void Main(string[] args) - { - new MyLogger.MyLogger().log("Hello from Multi1!"); - } - } -} diff --git a/nuget-example/multi-example/core/Properties/AssemblyInfo.cs b/nuget-example/multi-example/core/Properties/AssemblyInfo.cs deleted file mode 100644 index fd856cf21..000000000 --- a/nuget-example/multi-example/core/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("multi1")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("multi1")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("2ccad176-be28-4504-b350-6527724a5072")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/nuget-example/multi-example/core/core.csproj b/nuget-example/multi-example/core/core.csproj deleted file mode 100644 index a6d3c1caf..000000000 --- a/nuget-example/multi-example/core/core.csproj +++ /dev/null @@ -1,65 +0,0 @@ - - - - - Debug - AnyCPU - {AFCF5EBB-BC6A-42C7-AC40-38548680B845} - Library - Properties - core - core - v4.5 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\MyLogger.1.0.0.0\lib\net45\MyLogger.dll - - - ..\packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll - - - ..\packages\Ninject.3.0.1.10\lib\net45-full\Ninject.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/nuget-example/multi-example/core/core.nuspec b/nuget-example/multi-example/core/core.nuspec deleted file mode 100644 index facccbca9..000000000 --- a/nuget-example/multi-example/core/core.nuspec +++ /dev/null @@ -1,13 +0,0 @@ - - - - $id$ - $version$ - $title$ - JFrog - JFrog - false - JFrog Core - Copyright 2013 - - \ No newline at end of file diff --git a/nuget-example/multi-example/core/packages.config b/nuget-example/multi-example/core/packages.config deleted file mode 100644 index f393023cd..000000000 --- a/nuget-example/multi-example/core/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/nuget-example/multi-example/multi-example.sln b/nuget-example/multi-example/multi-example.sln deleted file mode 100644 index 4ced12af4..000000000 --- a/nuget-example/multi-example/multi-example.sln +++ /dev/null @@ -1,32 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Express 2012 for Windows Desktop -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "core", "core\core.csproj", "{AFCF5EBB-BC6A-42C7-AC40-38548680B845}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "api", "api\api.csproj", "{B8CD21CA-85E4-404A-8263-8E8A2B2834F6}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "services", "services\services.csproj", "{0FAC1A5D-F94E-4AF9-B7D9-AC1278F4C48B}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {AFCF5EBB-BC6A-42C7-AC40-38548680B845}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AFCF5EBB-BC6A-42C7-AC40-38548680B845}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AFCF5EBB-BC6A-42C7-AC40-38548680B845}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AFCF5EBB-BC6A-42C7-AC40-38548680B845}.Release|Any CPU.Build.0 = Release|Any CPU - {B8CD21CA-85E4-404A-8263-8E8A2B2834F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B8CD21CA-85E4-404A-8263-8E8A2B2834F6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B8CD21CA-85E4-404A-8263-8E8A2B2834F6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B8CD21CA-85E4-404A-8263-8E8A2B2834F6}.Release|Any CPU.Build.0 = Release|Any CPU - {0FAC1A5D-F94E-4AF9-B7D9-AC1278F4C48B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0FAC1A5D-F94E-4AF9-B7D9-AC1278F4C48B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0FAC1A5D-F94E-4AF9-B7D9-AC1278F4C48B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0FAC1A5D-F94E-4AF9-B7D9-AC1278F4C48B}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/nuget-example/multi-example/services/Multi3.cs b/nuget-example/multi-example/services/Multi3.cs deleted file mode 100644 index 8d7dfa8d7..000000000 --- a/nuget-example/multi-example/services/Multi3.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace multi3 -{ - public class Multi3 - { - static void Main(string[] args) - { - new MyLogger.MyLogger().log("Hello from Multi3!"); - } - } -} diff --git a/nuget-example/multi-example/services/Properties/AssemblyInfo.cs b/nuget-example/multi-example/services/Properties/AssemblyInfo.cs deleted file mode 100644 index f7e7cdc88..000000000 --- a/nuget-example/multi-example/services/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("multi3")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("multi3")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("b56beabc-1bd3-4841-b212-ad21a5da441c")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/nuget-example/multi-example/services/packages.config b/nuget-example/multi-example/services/packages.config deleted file mode 100644 index 247912ba1..000000000 --- a/nuget-example/multi-example/services/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/nuget-example/multi-example/services/services.csproj b/nuget-example/multi-example/services/services.csproj deleted file mode 100644 index 2d968cca9..000000000 --- a/nuget-example/multi-example/services/services.csproj +++ /dev/null @@ -1,62 +0,0 @@ - - - - - Debug - AnyCPU - {0FAC1A5D-F94E-4AF9-B7D9-AC1278F4C48B} - Library - Properties - services - services - v4.5 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\MyLogger.1.0.0.0\lib\net45\MyLogger.dll - - - ..\packages\Ninject.3.0.1.10\lib\net45-full\Ninject.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/nuget-example/multi-example/services/services.nuspec b/nuget-example/multi-example/services/services.nuspec deleted file mode 100644 index 7c055ef21..000000000 --- a/nuget-example/multi-example/services/services.nuspec +++ /dev/null @@ -1,13 +0,0 @@ - - - - $id$ - $version$ - $title$ - JFrog - JFrog - false - JFrog Services - Copyright 2013 - - \ No newline at end of file From 06d4753052c1ca570f270cced8fc5679e79561f5 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 27 Sep 2023 12:07:34 +0300 Subject: [PATCH 06/19] adding readme --- dotnet-examples/README.md | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 dotnet-examples/README.md diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md new file mode 100644 index 000000000..c621b9f38 --- /dev/null +++ b/dotnet-examples/README.md @@ -0,0 +1,52 @@ +# .NET examples + +## Overview +Artifactory provides full support for managing .NET/NuGet packages and ensures optimal and reliable access to nuget.org. It also allows aggregating multiple .NET/NuGet registries under a virtual repository Artifactory, which provides access to all your .NET/NuGet packages through a single URL for both upload and download. +To work with .Net/NuGet repositories you need to use [JFrog CLI](https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory) and having your .Net/NuGet project configured to an Artifactory server. + +You may store exhaustive build information in Artifactory by running your .NET/NuGet builds with JFrog CLI. JFrog CLI collects build-info from your build agents and then publishes it to Artifactory. Once published, the build info can be viewed in the Build Browser under Builds. For more details on .NET/NuGet build integration using JFrog CLI, please refer to [Building .NET/NuGet Packages](https://jfrog.com/help/r/jfrog-cli/building-nuget-packages) in the JFrog CLI User Guide + +## This Example +This examples demonstrates how to build a .NET/NuGet project using JFrog CLI. The build does the following: + +1. Downloads its .NET dependencies from Artifactory. +2. Packs and uploads the built package to Artifactory. +3. Records and publishes build-info to Artifactory. + +## Prerequisite +* Install .NET Core 3.1 SDK or a later version - for full support you must have .NET CLI on your machine +* Make sure the **dotnet** command is in your PATH (you can check by executing 'dotnet --version' and get a version number as a response). +* Install [JFrog CLI](https://jfrog.com/getcli/) +* Make sure your JFrog CLI version is 2.25.3 or above + +# Creating Repositories +Create the following repositories on your Artifactory instance: + +1. A remote dotnet/nuget repository. Make sure the repository has *https://www.nuget.org/* configured as its URL (this is the default when creating the repository). +2. A local dotnet/nuget repository. +3. A virtual repository: + - Include the remote and local repositories as part of the new virtual repository. + - Set the new local repository as the **Default Deployment Repository** of the new virtual repository. + +## Running the Example +'cd' to the root project directory + +```console +Configure Artifactory: +> jf c add --url= [credentials flags] + +Configure the project's repositories: +> jf dotnet-config --repo-resolve= + +Build the project with dotnet and resolve the project dependencies from Artifactory. +> jf dotnet restore --build-name=my-build --build-number=1 + +Collect environment variables and add them to the build info. +> jf rt bce my-build 1 + +Publish the build info to Artifactory. +> jf rt bp my-build 1 + +Execute 'audit' scan command. +> jf audit +``` From 1825a835a4a4bb0d8d16413e4602d6300fce9627 Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:52:43 +0300 Subject: [PATCH 07/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index c621b9f38..baa4eb347 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -1,7 +1,7 @@ # .NET examples ## Overview -Artifactory provides full support for managing .NET/NuGet packages and ensures optimal and reliable access to nuget.org. It also allows aggregating multiple .NET/NuGet registries under a virtual repository Artifactory, which provides access to all your .NET/NuGet packages through a single URL for both upload and download. +Artifactory provides full support for managing .NET/NuGet packages and ensures optimal and reliable access to nuget.org. It also allows aggregating multiple NuGet registries under a virtual repository Artifactory, which provides access to all your .NET/NuGet packages through a single URL for both upload and download. To work with .Net/NuGet repositories you need to use [JFrog CLI](https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory) and having your .Net/NuGet project configured to an Artifactory server. You may store exhaustive build information in Artifactory by running your .NET/NuGet builds with JFrog CLI. JFrog CLI collects build-info from your build agents and then publishes it to Artifactory. Once published, the build info can be viewed in the Build Browser under Builds. For more details on .NET/NuGet build integration using JFrog CLI, please refer to [Building .NET/NuGet Packages](https://jfrog.com/help/r/jfrog-cli/building-nuget-packages) in the JFrog CLI User Guide From 2a5c4aca1adc1c83d4ac808519a85449b7d0a7c6 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Mon, 2 Oct 2023 11:53:36 +0300 Subject: [PATCH 08/19] added command to console commands --- dotnet-examples/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index c621b9f38..21e1933d5 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -38,15 +38,18 @@ Configure Artifactory: Configure the project's repositories: > jf dotnet-config --repo-resolve= +Restores the dependencies and tools of the project from Artifactory +> jf dotnet restore --build-name=my-build --build-number=1 + +Execute 'audit' scan command. +> jf audit + Build the project with dotnet and resolve the project dependencies from Artifactory. -> jf dotnet restore --build-name=my-build --build-number=1 +> jf dotnet pack Collect environment variables and add them to the build info. > jf rt bce my-build 1 Publish the build info to Artifactory. > jf rt bp my-build 1 - -Execute 'audit' scan command. -> jf audit ``` From ac5f8cd6fd7942d686251daa9261c7eaa8f1a480 Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:54:03 +0300 Subject: [PATCH 09/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index baa4eb347..28e83c9a8 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -2,7 +2,7 @@ ## Overview Artifactory provides full support for managing .NET/NuGet packages and ensures optimal and reliable access to nuget.org. It also allows aggregating multiple NuGet registries under a virtual repository Artifactory, which provides access to all your .NET/NuGet packages through a single URL for both upload and download. -To work with .Net/NuGet repositories you need to use [JFrog CLI](https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory) and having your .Net/NuGet project configured to an Artifactory server. +To work with NuGet repositories you need to use [JFrog CLI](https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory) and have your .Net/NuGet project configured to an Artifactory server. You may store exhaustive build information in Artifactory by running your .NET/NuGet builds with JFrog CLI. JFrog CLI collects build-info from your build agents and then publishes it to Artifactory. Once published, the build info can be viewed in the Build Browser under Builds. For more details on .NET/NuGet build integration using JFrog CLI, please refer to [Building .NET/NuGet Packages](https://jfrog.com/help/r/jfrog-cli/building-nuget-packages) in the JFrog CLI User Guide From 82805301af53ddf8e86c07709e6883461e658779 Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:54:15 +0300 Subject: [PATCH 10/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index 28e83c9a8..68a6bd803 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -7,7 +7,7 @@ To work with NuGet repositories you need to use [JFrog CLI](https://www.jfrog.co You may store exhaustive build information in Artifactory by running your .NET/NuGet builds with JFrog CLI. JFrog CLI collects build-info from your build agents and then publishes it to Artifactory. Once published, the build info can be viewed in the Build Browser under Builds. For more details on .NET/NuGet build integration using JFrog CLI, please refer to [Building .NET/NuGet Packages](https://jfrog.com/help/r/jfrog-cli/building-nuget-packages) in the JFrog CLI User Guide ## This Example -This examples demonstrates how to build a .NET/NuGet project using JFrog CLI. The build does the following: +These examples demonstrate how to build a .NET/NuGet project using JFrog CLI. The build does the following: 1. Downloads its .NET dependencies from Artifactory. 2. Packs and uploads the built package to Artifactory. From 178666fd07065bd0fb279f13c008b7d01aa436ea Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:55:03 +0300 Subject: [PATCH 11/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index 68a6bd803..d1e25fdd0 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -9,7 +9,7 @@ You may store exhaustive build information in Artifactory by running your .NET/N ## This Example These examples demonstrate how to build a .NET/NuGet project using JFrog CLI. The build does the following: -1. Downloads its .NET dependencies from Artifactory. +1. Downloads its NuGet dependencies from Artifactory. 2. Packs and uploads the built package to Artifactory. 3. Records and publishes build-info to Artifactory. From e54a82016a80e70faffc798987d4301b439592de Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:55:16 +0300 Subject: [PATCH 12/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index d1e25fdd0..1532fc0b2 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -22,7 +22,7 @@ These examples demonstrate how to build a .NET/NuGet project using JFrog CLI. Th # Creating Repositories Create the following repositories on your Artifactory instance: -1. A remote dotnet/nuget repository. Make sure the repository has *https://www.nuget.org/* configured as its URL (this is the default when creating the repository). +1. A remote NuGet repository. Make sure the repository has *https://www.nuget.org/* configured as its URL (this is the default when creating the repository). 2. A local dotnet/nuget repository. 3. A virtual repository: - Include the remote and local repositories as part of the new virtual repository. From e3bc1389cd1b3d034af97a3e4a9e294dc0010b53 Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:55:23 +0300 Subject: [PATCH 13/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index 1532fc0b2..b3bd00bb0 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -23,7 +23,7 @@ These examples demonstrate how to build a .NET/NuGet project using JFrog CLI. Th Create the following repositories on your Artifactory instance: 1. A remote NuGet repository. Make sure the repository has *https://www.nuget.org/* configured as its URL (this is the default when creating the repository). -2. A local dotnet/nuget repository. +2. A local NuGet repository. 3. A virtual repository: - Include the remote and local repositories as part of the new virtual repository. - Set the new local repository as the **Default Deployment Repository** of the new virtual repository. From 3df8a3596adcc52de4c77139b1ea0b4e5cd43474 Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:55:55 +0300 Subject: [PATCH 14/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index b3bd00bb0..900e517f2 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -24,7 +24,7 @@ Create the following repositories on your Artifactory instance: 1. A remote NuGet repository. Make sure the repository has *https://www.nuget.org/* configured as its URL (this is the default when creating the repository). 2. A local NuGet repository. -3. A virtual repository: +3. A virtual NuGet repository: - Include the remote and local repositories as part of the new virtual repository. - Set the new local repository as the **Default Deployment Repository** of the new virtual repository. From d6b74b8f8b1c9d2ba78052100bf43913618723f5 Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:56:09 +0300 Subject: [PATCH 15/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index 900e517f2..5b995ea35 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -36,7 +36,7 @@ Configure Artifactory: > jf c add --url= [credentials flags] Configure the project's repositories: -> jf dotnet-config --repo-resolve= +> jf dotnet-config --repo-resolve= Build the project with dotnet and resolve the project dependencies from Artifactory. > jf dotnet restore --build-name=my-build --build-number=1 From ab9dc09768875ff3ad0cdcd20de42aa30eb8fbc3 Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:59:17 +0300 Subject: [PATCH 16/19] Update dotnet-examples/multi-example/TestApp1/TestApp1.csproj Co-authored-by: Yahav Itzhak --- dotnet-examples/multi-example/TestApp1/TestApp1.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/dotnet-examples/multi-example/TestApp1/TestApp1.csproj b/dotnet-examples/multi-example/TestApp1/TestApp1.csproj index e95c43630..a5420bf61 100644 --- a/dotnet-examples/multi-example/TestApp1/TestApp1.csproj +++ b/dotnet-examples/multi-example/TestApp1/TestApp1.csproj @@ -9,6 +9,7 @@ Foobar Frederik AnyCPU;x64 + false From d0621eed3aa2d0e66eb2d41569afad35d343ee49 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Mon, 2 Oct 2023 12:33:11 +0300 Subject: [PATCH 17/19] fixed PR issues --- dotnet-examples/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index 7fad24590..b08402fb5 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -45,7 +45,10 @@ Execute 'audit' scan command. > jf audit Build the project with dotnet and resolve the project dependencies from Artifactory. -> jf dotnet pack +> dotnet pack + +Upload the packages to a NuGet repository in Artifactory: +> jf rt u --build-name=my-build --build-number=1 --module=jfrog-nuget-example Collect environment variables and add them to the build info. > jf rt bce my-build 1 From bb96bdc5898f87c75d3c4338f57c64ddb4d9f13a Mon Sep 17 00:00:00 2001 From: Eran Turgeman <81029514+eranturgeman@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:48:59 +0300 Subject: [PATCH 18/19] Update dotnet-examples/README.md Co-authored-by: Yahav Itzhak --- dotnet-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index b08402fb5..ff7021f44 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -48,7 +48,7 @@ Build the project with dotnet and resolve the project dependencies from Artifact > dotnet pack Upload the packages to a NuGet repository in Artifactory: -> jf rt u --build-name=my-build --build-number=1 --module=jfrog-nuget-example +> jf rt u "*.nupkg" / --build-name=my-build --build-number=1 Collect environment variables and add them to the build info. > jf rt bce my-build 1 From b72a2d400c82c6ef5246e79d0004a4107ea463f6 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Mon, 2 Oct 2023 15:53:20 +0300 Subject: [PATCH 19/19] fixed PR issues --- dotnet-examples/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotnet-examples/README.md b/dotnet-examples/README.md index b08402fb5..9fd74b344 100644 --- a/dotnet-examples/README.md +++ b/dotnet-examples/README.md @@ -6,14 +6,14 @@ To work with NuGet repositories you need to use [JFrog CLI](https://www.jfrog.co You may store exhaustive build information in Artifactory by running your .NET/NuGet builds with JFrog CLI. JFrog CLI collects build-info from your build agents and then publishes it to Artifactory. Once published, the build info can be viewed in the Build Browser under Builds. For more details on .NET/NuGet build integration using JFrog CLI, please refer to [Building .NET/NuGet Packages](https://jfrog.com/help/r/jfrog-cli/building-nuget-packages) in the JFrog CLI User Guide -## This Example +## These Examples These examples demonstrate how to build a .NET/NuGet project using JFrog CLI. The build does the following: 1. Downloads its NuGet dependencies from Artifactory. 2. Packs and uploads the built package to Artifactory. 3. Records and publishes build-info to Artifactory. -## Prerequisite +## Prerequisites * Install .NET Core 3.1 SDK or a later version - for full support you must have .NET CLI on your machine * Make sure the **dotnet** command is in your PATH (you can check by executing 'dotnet --version' and get a version number as a response). * Install [JFrog CLI](https://jfrog.com/getcli/) @@ -28,8 +28,8 @@ Create the following repositories on your Artifactory instance: - Include the remote and local repositories as part of the new virtual repository. - Set the new local repository as the **Default Deployment Repository** of the new virtual repository. -## Running the Example -'cd' to the root project directory +## Running the Examples +'cd' to one of the project's root directory and run the build using one of the following commands: ```console Configure Artifactory: