From a325b2d25f24c47ca734f7695eed128b318679f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saar=20Shen=20=F0=9F=9A=BE?= Date: Fri, 26 Mar 2021 14:55:38 -0700 Subject: [PATCH] Update docs to use GA version of the nuget packages --- docs/MigrateTo2_0.md | 4 ++-- examples/EnableServiceProfilerForContainerApp/Dockerfile | 2 +- examples/HostingStartupCLR3/Dockerfile | 2 +- examples/HostingStartupCLR3/Readme.md | 2 +- examples/QuickStart3_0/QuickStart3_0.csproj | 2 +- examples/QuickStart3_0/Readme.md | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/MigrateTo2_0.md b/docs/MigrateTo2_0.md index e9291b4..3e9521e 100644 --- a/docs/MigrateTo2_0.md +++ b/docs/MigrateTo2_0.md @@ -7,13 +7,13 @@ There are break changes between 1.x and 2.0 for Application Insights Profiler bu * To use .NET Core CLI: ```shell -dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore --version 2.2.0-* +dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore --version 2.* ``` * To use package manager: ```shell -Install-Package Microsoft.ApplicationInsights.Profiler.AspNetCore -Version 2.2.0-* +Install-Package Microsoft.ApplicationInsights.Profiler.AspNetCore -Version 2.* ``` ## Update the configurations diff --git a/examples/EnableServiceProfilerForContainerApp/Dockerfile b/examples/EnableServiceProfilerForContainerApp/Dockerfile index 318c1fa..47f5a3a 100644 --- a/examples/EnableServiceProfilerForContainerApp/Dockerfile +++ b/examples/EnableServiceProfilerForContainerApp/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /app COPY . ./ # Adding a reference to hosting startup package -RUN dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore -v 2.2.0-* +RUN dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore -v 2.* # Restore & publish the app RUN dotnet publish -c Release -o out diff --git a/examples/HostingStartupCLR3/Dockerfile b/examples/HostingStartupCLR3/Dockerfile index 9c5317b..4df82da 100644 --- a/examples/HostingStartupCLR3/Dockerfile +++ b/examples/HostingStartupCLR3/Dockerfile @@ -6,7 +6,7 @@ COPY . ./ # Add additional nuget packages RUN dotnet add package Microsoft.ApplicationInsights.AspNetCore --no-restore -RUN dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore -v 2.2.0-* --no-restore +RUN dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore -v 2.* --no-restore # Restore RUN dotnet restore diff --git a/examples/HostingStartupCLR3/Readme.md b/examples/HostingStartupCLR3/Readme.md index 63b2251..b45def6 100644 --- a/examples/HostingStartupCLR3/Readme.md +++ b/examples/HostingStartupCLR3/Readme.md @@ -50,7 +50,7 @@ There are small tweaks needed to make it work. # Add reference to the latest stable version of Application Insights for ASP.NET Core. RUN dotnet add package Microsoft.ApplicationInsights.AspNetCore --no-restore # Adding reference to Microsoft.ApplicationInsights.Profiler -RUN dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore -v 2.2.0-* --no-restore +RUN dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore -v 2.* --no-restore ``` As you already know, invoking `dotnet add` does nothing but update the project file. And running `COPY . ./` next will overwrite the change. To deal with it, copy everything before adding packages and do not copy it again later. diff --git a/examples/QuickStart3_0/QuickStart3_0.csproj b/examples/QuickStart3_0/QuickStart3_0.csproj index ce67756..dfdc528 100644 --- a/examples/QuickStart3_0/QuickStart3_0.csproj +++ b/examples/QuickStart3_0/QuickStart3_0.csproj @@ -9,7 +9,7 @@ - + diff --git a/examples/QuickStart3_0/Readme.md b/examples/QuickStart3_0/Readme.md index bc8226b..b16b44e 100644 --- a/examples/QuickStart3_0/Readme.md +++ b/examples/QuickStart3_0/Readme.md @@ -23,7 +23,7 @@ The latest Application Insights (2.8+) is required to run on .NET Core 3.0. And ```shell dotnet add package Microsoft.ApplicationInsights.AspNetCore -dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore -v 2.2.0-* +dotnet add package Microsoft.ApplicationInsights.Profiler.AspNetCore -v 2.* ``` ### Update the code in `Startup.cs` to enable application insights and the profiler