简体   繁体   English

如何解决:Nuget Visual Studio 2019 消息 Project 'Default' not found

[英]How to solve: Nuget Visual Studio 2019 message Project 'Default' not found

I have an SSDT project and I open the Package Manager Console to use nuget to get a dacpac (in the repo already) and I get these errors:我有一个 SSDT 项目,我打开 Package 管理器控制台以使用 nuget 获取 dacpac(已经在 repo 中),我得到了这些错误:

PM> get-Package -ListAvailable -AllVersions -IncludePrerelease 
get-Package : Project 'Default' is not found.
At line:1 char:1
+ get-Package -ListAvailable -AllVersions -IncludePrerelease
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Default:String) [Get-Package], ItemNotFoundException
    + FullyQualifiedErrorId : NuGetProjectNotFound,NuGet.PackageManagement.PowerShellCmdlets.GetPackageCommand

I do not have a project called "default" (the projects are named after the databases they contain) and I cannot see a way to mark a project as Default.我没有一个名为“默认”的项目(这些项目以其包含的数据库命名)并且我看不到将项目标记为默认的方法。 OTOH I can and do have a project marked as the startup project. OTOH我可以并且确实有一个项目被标记为启动项目。

What is causing this error message and how can I solve it?是什么导致了此错误消息,我该如何解决?

This is a current limitation within Visual Studio SSDT projects.这是 Visual Studio SSDT 项目中的当前限制。 I opened a ticket in the Visual Studio Feedback Forum with the name我在 Visual Studio 反馈论坛中打开了一张票,名称为

VS 2019 Manage NuGet Packages should support Database project

VS 2019 Manage NuGet Packages should support Database project VS 2019 Manage NuGet 包应该支持数据库项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Visual Studio 2019 上使用 github nuget 包 - How to use github nuget packages on Visual Studio 2019 在 Visual Studio 2019 中重新安装 Nuget Package 管理器 - Reinstall Nuget Package Manager in Visual Studio 2019 Visual Studio 2019 中解决方案级别的“管理 Nuget 包”与项目级别的“管理 Nuget 包”有什么区别? - What is the difference between "Managing Nuget Packages" at the solution level in Visual Studio 2019 vs at the Project level? Visual Studio for Mac 2019 中的执行问题(NuGet 包) - Execution problems in visual studio for Mac 2019 (NuGet packages) Visual Studio 2019在调试后自动删除了nuget包 - Visual studio 2019 auto removed nuget packages after debug 迁移的Visual Studio Project找不到NuGet包 - Migrated Visual Studio Project not finding NuGet packages 如何将 Nuget 添加到 Visual Studio - How to add Nuget to visual studio 如何在Visual Studio中使用OpenCV Nuget包发布我的C#项目? - How to publish my C# project using OpenCV Nuget packages in Visual Studio? 如何使用NuGet从Visual Studio Project文件读取/写入设置? - How to read\write settings from a Visual Studio Project file using NuGet? 如何在visual studio中调试nuget包 - How to debug nuget package in visual studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM