Skip to content

Commit

Permalink
Update docs to use GA version of the nuget packages
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomi7732 committed Mar 26, 2021
1 parent 6480fbe commit a325b2d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/MigrateTo2_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/EnableServiceProfilerForContainerApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/HostingStartupCLR3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/HostingStartupCLR3/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion examples/QuickStart3_0/QuickStart3_0.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.8.2" />
<PackageReference Include="Microsoft.ApplicationInsights.Profiler.AspNetCore" Version="2.2.0-*" />
<PackageReference Include="Microsoft.ApplicationInsights.Profiler.AspNetCore" Version="2.*" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/QuickStart3_0/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a325b2d

Please sign in to comment.