Skip to content

NETSDK1047 - Nuget packages no longer updating #13278

@BornToBeRoot

Description

@BornToBeRoot

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

nuget

Package manager version

No response

Language version

.net8 / c#

Manifest location and content before the Dependabot update

The nuget packages are no longer updated. The config was working in the past. It looks like the last nuget PR was from 13.02.2025... everything else (dotnet-sdk, npm) is still working in this repo.

i have 12 csproj files. Here is 1 example:
https://github.com/BornToBeRoot/NETworkManager/blob/main/Source/NETworkManager/NETworkManager.csproj

Here is the affected repo: https://github.com/BornToBeRoot/NETworkManager

dependabot.yml content

version: 2
updates:
- package-ecosystem: "nuget"
  directory: "/Source"
  schedule:
    interval: weekly
  target-branch: main
  commit-message:
    prefix: "Dependency (dependabot/nuget):"
  labels:
  - ":heavy_check_mark: dependencies"
- package-ecosystem: "dotnet-sdk"
  directory: "/Source"
  ignore:
  - dependency-name: dotnet-sdk
    update-types:
    - "version-update:semver-major"
  schedule:
    interval: weekly
  target-branch: main
  commit-message:
    prefix: "Dependency (dependabot/dotnet-sdk):"
  labels:
  - ":heavy_check_mark: dependencies"
- package-ecosystem: "npm"
  directory: "/Website"
  schedule:
    interval: weekly
  target-branch: main
  commit-message:
    prefix: "Dependency (dependabot/npm):"
  labels:
  - ":heavy_check_mark: dependencies"

Example csproj:

<Project Sdk="Microsoft.NET.Sdk">
	
    <PropertyGroup>
        <OutputType>WinExe</OutputType>
        <TargetFramework>net10.0-windows10.0.22621.0</TargetFramework>
        <RuntimeIdentifier>win-x64</RuntimeIdentifier>
        <PlatformTarget>x64</PlatformTarget>
        <SelfContained>false</SelfContained>
...

Updated dependency

It applies to all nuget packes

What you expected to see, versus what you actually saw

No PR created. See logs. Was working in the past.

Native package manager behavior

It's still working via Visual Studio / nuget

Images of the diff or a link to the PR, issue, or logs

updater | 2025/10/11 00:38:09 INFO   No packages.config file found.
updater | 2025/10/11 00:38:09 INFO Temporarily removing `global.json` from `/home/dependabot/dependabot-updater/repo/Source`.
updater | 2025/10/11 00:38:10 INFO Restoring `global.json` to `/home/dependabot/dependabot-updater/repo/Source`.
updater | 2025/10/11 00:38:11 WARN   Error determining dependencies from `/home/dependabot/dependabot-updater/repo/Source/NETworkManager.Controls/NETworkManager.Controls.csproj`:
STDOUT:
  Determining projects to restore...
  Restored /home/dependabot/dependabot-updater/repo/Source/NETworkManager.Controls/NETworkManager.Controls.csproj (in 104 ms).
/usr/local/dotnet/current/sdk/8.0.414/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(284,5): error NETSDK1047: Assets file '/home/dependabot/dependabot-updater/repo/Source/NETworkManager.Controls/obj/project.assets.json' doesn't have a target for 'net8.0-windows10.0.22621/win-x64'. Ensure that restore has run and that you have included 'net8.0-windows10.0.22621' in the TargetFrameworks for your project. You may also need to include 'win-x64' in your project's RuntimeIdentifiers. [/home/dependabot/dependabot-updater/repo/Source/NETworkManager.Controls/NETworkManager.Controls.csproj]

Build FAILED.

/usr/local/dotnet/current/sdk/8.0.414/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(284,5): error NETSDK1047: Assets file '/home/dependabot/dependabot-updater/repo/Source/NETworkManager.Controls/obj/project.assets.json' doesn't have a target for 'net8.0-windows10.0.22621/win-x64'. Ensure that restore has run and that you have included 'net8.0-windows10.0.22621' in the TargetFrameworks for your project. You may also need to include 'win-x64' in your project's RuntimeIdentifiers. [/home/dependabot/dependabot-updater/repo/Source/NETworkManager.Controls/NETworkManager.Controls.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.22

Smallest manifest that reproduces the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions