Skip to content

Commit

Permalink
feat(nuget): Check for dotnet-tools.json everywhere (#12475)
Browse files Browse the repository at this point in the history
  • Loading branch information
dignite committed Nov 8, 2021
1 parent 4b6270b commit 6167362
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/manager/nuget/extract.ts
Expand Up @@ -78,7 +78,7 @@ export async function extractPackageFile(
? registries.map((registry) => registry.url)
: undefined;

if (packageFile.endsWith('.config/dotnet-tools.json')) {
if (packageFile.endsWith('dotnet-tools.json')) {
const deps: PackageDependency[] = [];
let manifest: DotnetToolsManifest;

Expand Down
4 changes: 2 additions & 2 deletions lib/manager/nuget/index.ts
Expand Up @@ -9,7 +9,7 @@ export const defaultConfig = {
fileMatch: [
'\\.(?:cs|fs|vb)proj$',
'\\.(?:props|targets)$',
'\\.config\\/dotnet-tools\\.json$',
'(^|//)global\\.json$',
'(^|\\/)dotnet-tools\\.json$',
'(^|\\/)global\\.json$',
],
};
2 changes: 1 addition & 1 deletion lib/manager/nuget/readme.md
Expand Up @@ -2,4 +2,4 @@ The `nuget` configuration object is used to control settings for the NuGet packa
The NuGet package manager supports a SDK-style `.csproj`/`.fsproj`/`.vbproj`/`.props`/`.targets` format, as described [here](https://natemcmaster.com/blog/2017/03/09/vs2015-to-vs2017-upgrade/).
This means that .NET Core projects are all supported but any .NET Framework projects need to be updated to the new `.csproj`/`.fsproj`/`.vbproj`/`.props`/`.targets` format in order to be detected and supported by Renovate.

The NuGet manager also supports `global.json` and `.config/dotnet-tools.json` SDK files.
The NuGet manager also supports `global.json` and `dotnet-tools.json` SDK files.

0 comments on commit 6167362

Please sign in to comment.