错误NU1001:无法在VSTS上解析依赖关系System.Security.Securestring> = 4.0.0

时间:2016-10-09 08:22:51

标签: .net coreclr azure-pipelines

我能够在本地构建我的项目,但是当我在VSTS上构建它时,它会一直给我错误error NU1001: The dependency System.Security.Securestring >= 4.0.0 could not be resolved.并且我无法找出原因。

这是我的项目文件。有什么是过时的或错的吗?

global.json

{
  "projects": [ "src", "apps" ]
}

\ SRC \ S-Innovations.ServiceFabric.Gateway.Common \ project.json

{
  "title": "Common Library for S-Innoations Service Fabric Gateway",
  "version": "1.0.1-*",
  "name": "S-Innovations.ServiceFabric.Gateway.Common",

  "dependencies": {

  },

  "packOptions": {
    "owners": [ "Poul K. Sørensen" ],
    "tags": [ "S-Innovations ServiceFabric Gateway" ]
  },

  "frameworks": {
    "netstandard1.6": {
      "imports": "dnxcore50",
      "dependencies": {
        "NETStandard.Library": "1.6.0",
        "System.Net.Http": "4.1.0",
        "Microsoft.ServiceFabric.Services": "0.6.0-preview-01"
      }
    },
    "net452": {
      "dependencies": {
        "Microsoft.ServiceFabric.Services": "2.2.207"
      },
      "frameworkAssemblies": {
        "System.Net.Http": "4.0.0.0"
      }
    }
  },
  "scripts": {
    "postcompile": [
      //"nuget delete -Verbosity detailed -noninteractive -source %USERPROFILE%\\.nuget\\packages %project:name% %project:version%",
      //"nuget delete -Verbosity detailed -noninteractive -source c:\\localpackages %project:name% %project:version%",
      //"dotnet pack --no-build --configuration %compile:Configuration% -o ../../artifacts/",
      //"nuget add -Verbosity detailed -NonInteractive -source c:\\localpackages  ../../artifacts/%project:name%.%project:version%.nupkg"
    ]
  }
}

另外,这是我的构建日志

https://gist.github.com/pksorensen/29315c5631bbe177efc89e38d8434fb4

0 个答案:

没有答案