豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 868 Bytes

File metadata and controls

21 lines (17 loc) · 868 Bytes
title NuGet Warning NU1503
description NU1503 warning code
author zhili1208
ms.author lzhi
ms.date 06/25/2018
ms.topic reference
ms.reviewer anangaur
f1_keywords
NU1503

NuGet Warning NU1503

Skipping restore for project 'c:\a.csproj'. The project file may be invalid or missing targets required for restore.

Issue

A dependency project doesn't import NuGet's restore targets. This is similar to NU1105 but here the project is skipped and ignored instead of causing all of restore to fail. In complex solutions there are often other types of projects that may not support restore.

Solution

This can happen for projects that do not import common props/targets which automatically import restore. If the project doesn't need to be restored this can be ignored. Otherwise, edit the affected project to add targets for restore.