Skip to content

Commit 190e78f

Browse files
authored
Add workaround for RID-specific tool publishing (#49295)
1 parent 9d4685b commit 190e78f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ This change enables the creation of optimized, platform-specific .NET Tool packa
3939

4040
If you want to create tools for only a subset of platforms, use `ToolPackageRuntimeIdentifiers`. If you want to disable RID-specific tool packages entirely, you should conditionally include or exclude the `RuntimeIdentifiers` property in your project file.
4141

42+
Alternatively, if you want to maintain the previous behavior (framework-dependent, platform-agnostic .NET Tools) even when a `RuntimeIdentifier` is specified, add the following properties to your project file:
43+
44+
```xml
45+
<PropertyGroup>
46+
<CreateRidSpecificToolPackages>false</CreateRidSpecificToolPackages>
47+
<UseAppHost>false</UseAppHost>
48+
</PropertyGroup>
49+
```
50+
4251
## Affected APIs
4352

4453
None.

0 commit comments

Comments
 (0)