Skip to content

Commit

Permalink
Update netsdk1145.md (#37768)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdykstra authored Oct 28, 2023
1 parent 7ad4f70 commit 07470bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/core/tools/sdk-errors/netsdk1145.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ f1_keywords:

**This article applies to:** ✔️ .NET 5.0.100 SDK and later versions

When the .NET SDK issues error NETSDK1145, the targeting or apphost pack is not installed and NuGet package restore is not supported. This is typically caused by having a newer SDK than the one included in Visual Studio for C++/CLI projects. Upgrade Visual Studio, remove _global.json_ if it specifies a certain SDK version, and uninstall the newer SDK. Alternatively, you could override the targeting or apphost version. Find the version that exists under the pack directory from the error message and matches the target framework of the project. Add the following to the project:
When the .NET SDK issues error NETSDK1145, the targeting or apphost pack is not installed and NuGet package restore is not supported. This is typically caused by having a newer SDK than the one included in Visual Studio for C++/CLI projects. Upgrade Visual Studio, remove _global.json_ if it specifies a certain SDK version, and uninstall the newer SDK. Alternatively, you could override the targeting or apphost version. Find the version that exists under the pack directory from the error message and matches the target framework of the project. Add the following XML to the project file (the `.csproj` file for the project):

For apphost pack
For apphost pack:

```xml
<ItemGroup>
Expand All @@ -23,7 +23,7 @@ For apphost pack
</ItemGroup>
```

For targeting pack
For targeting pack:

```xml
<ItemGroup>
Expand Down

0 comments on commit 07470bc

Please sign in to comment.