[英]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.