【问题标题】:Nuget package restore repeatedly adding itself to project fileNuget 包还原重复将自身添加到项目文件中
【发布时间】:2014-12-01 13:52:47
【问题描述】:

通过阅读 this 和 Internet 上的其他资源,我了解到 Nuget 包还原可能不应该在解决方案或项目上明确设置。在过去的某个时候,这已在我当前的解决方案中启用,但不再启用。

我目前正在与集市行为作斗争,即在我的项目或解决方案中未启用包还原。但是,当我保存我的工作或尝试签入 TFS 时,VS 正在尝试将包还原添加到项目中。显然有一个隐藏的(或至少很难找到)设置来控制它 - 请有人指出我正确的方向吗?

【问题讨论】:

    标签: tfs visual-studio-2013 nuget nuget-package-restore


    【解决方案1】:

    Nuget 解决方案文件包含以下内容

    Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{8F66FD94-E98A-4D8C-A27B-E8B550DA7076}"
        ProjectSection(SolutionItems) = preProject
            .nuget\NuGet.Config = .nuget\NuGet.Config
            .nuget\NuGet.exe = .nuget\NuGet.exe
            .nuget\NuGet.targets = .nuget\NuGet.targets
        EndProjectSection
    EndProject
    

    【讨论】:

    • 原来是VS suo文件。
    • 至少你修好了:-D
    猜你喜欢
    • 1970-01-01
    • 2015-09-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-05
    • 2023-04-09
    • 2014-08-04
    • 2015-04-18
    相关资源
    最近更新 更多