标签: azure-artifacts

如何卸载"Microsoft .NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1"?

我在卸载时遇到问题Microsoft .NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1.我在Windows 7中,在Programs and Features窗口中.当我点击uninstall,它带来了一个对话框,其中的选项repair,uninstall以及cancel.单击时uninstall,弹出"打开文件"窗口.

我已经google了一下,看看是否有一个文件我可以下载以满足这个"打开文件"窗口.我找不到任何地方.以下是我所看到的一些事情,但我无法理解哪一个可能适合.

https://www.microsoft.com/net/download

我试图卸载它的原因是因为我在Visual Studio 2015社区遇到了很多麻烦,这是故障排除过程的一部分.

.net visual-studio azure-pipelines-release-pipeline azure-artifacts

82
推荐指数
1
解决办法
2万
查看次数

Nuget Package - feed(VSTS):尝试添加源时抛出异常'System.AggregateException'

我在Package Release hub(VSTS)中创建了一个新的feed,安装了凭据,然后添加了包源.

现在,我使用Visual Studio 2015将Micrososft.Aspnet.mvc安装到项目中,但是它会出现以下错误:

Exception 'System.AggregateException' thrown when trying to add source
'https://mysite.pkgs.visualstudio.com/DefaultCollection/_packaging/MyLogUtils/nuget/v3/index.json'.
Please verify all your online package sources are available.    
Run Code Online (Sandbox Code Playgroud)

我需要正常安装NuGet包,所以我从VSTS中删除了Feed.但问题仍然存在.如何解决这个问题?

visual-studio nuget nuget-package azure-devops azure-artifacts

36
推荐指数
4
解决办法
2万
查看次数

用户没有完成此操作的权限。你需要有“AddPackage”

我收到一个错误:

User XXX lacks permission to complete this action. You need to have 'AddPackage'
Run Code Online (Sandbox Code Playgroud)

尝试将 nuget 包推送到 Azure DevOps 工件时。我是管理员 这是阶段:

  - stage:
    displayName: 'Release'
    condition: succeeded()
    jobs:
      - job: 'Publish'
        displayName: 'Publish nuGet Package'
        steps:
          - download: current
            artifact: $(PIPELINE_ARTIFACT_NAME)
            displayName: 'Download pipeline artifact'
          - script: ls $(PATH_PIPELINE_ARTIFACT_NAME)
            displayName: 'Display contents of downloaded articacts path'
          - task: NuGetAuthenticate@0
            displayName: 'Authenticate in NuGet feed'
          - script: dotnet nuget push $(PATH_PIPELINE_ARTIFACT_NAME)/**/*.nupkg --source $(NUGET_FEED) --api-key $(NUGET_API_KEY)
            displayName: 'Uploads nuGet packages'
Run Code Online (Sandbox Code Playgroud)

和确切的错误:

error: …
Run Code Online (Sandbox Code Playgroud)

nuget azure-devops azure-pipelines azure-artifacts

33
推荐指数
8
解决办法
2万
查看次数

如何使 Nuget 恢复工作更快?

我们正在使用VSTS托管构建服务器构建 CD 管道。恢复Nuget需要3分钟以上。这时间太长了。

我怎样才能让它运行得更快?我们可以使用任何类型的缓存系统吗?

nuget nuget-package nuget-package-restore azure-devops azure-artifacts

15
推荐指数
1
解决办法
5728
查看次数

Azure DevOps 项目管道无法从不同项目中的工件源访问 NuGet 包

2020 年 2 月 20 日更新

概括

Azure DevOps 管道构建无法从我们在 Artifacts 下的私有源中找到 NuGet 包。

我们的 Azure DevOps 环境

在 Azure 中,我们有我们的公司“空间”:dev.azure.com/OurCompany

在此之下,我们有多个项目,例如,想象一下这三个:

  • 绿色:这包含某种类型的应用程序
  • 蓝色:这包含不同类型的应用程序
  • 红色:这包含我们的“通用”辅助代码

红色的

RED 保存了我们所有常见的帮助程序代码,这些代码都是 GREEN 和 BLUE 应用程序使用的 DLL。这些以 NuGet 包的形式提供。

在 RED 的 Artifacts 下,我们看到了一个名为“OurCompany”的“组织范围提要”。我们知道我们不能使用它,因为这些 NuGet 包需要对 OurCompany 中的每个人可用,这意味着不仅在 Azure 上,而且在我们公司网络(我们运行 Visual Studio 的地方)中的桌面计算机上。我认为“组织范围内的提要”不会暴露给我们的企业网络。

因此,我们在 RED 的 Artifacts 下创建了一个新的 Feed。当我查看权限时,我看到以下条目:

  • {我}:(所有者)
  • [OurCompany]\Project Collection Adminstrators : (所有者)
  • [RED]\项目管理员:(所有者)
  • RED 构建服务(我们的公司):(贡献者)
  • 项目集合构建服务(OurCompany):(贡献者)
  • [RED]\贡献者(贡献者)

公司的

因此,回到 Corporate,我们将 NuGet 包源添加到我们的 Visual Studio,然后它可以从 Azure 中提取 NuGet 包。

绿色和蓝色

在这里,我们有我们的产品。我们创建了一个构建管道,并添加了一个 NuGet …

nuget-package-restore devops azure-devops azure-pipelines azure-artifacts

14
推荐指数
2
解决办法
5853
查看次数

从另一个管道 Azure 下载管道工件

我对这个管道非常陌生,我正在尝试构建一种自动化的方法来.msi为我的应用程序构建安装程序文件。

我有 2 个项目.Net CorePython所以我创建了 2 个管道。.Net Core 管道将构建文件并将其保存在某个位置,Python 管道使用这些文件(来自位置)作为其依赖项并构建一个新.msi文件,管道中的最后一部分newsetup.py构建.msi我将传递该位置的文件.Net Core 管道的输出文件。

我得到的错误是Artifact dropcli was not found for build 150.

.Net Core管道脚本:

- task: VSBuild@1
  inputs:
    solution: '$(solution)'
    msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(Build.ArtifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'
    
- task: PublishPipelineArtifact@1
  inputs:
   targetPath: '$(Pipeline.Workspace)'
   artifact: 'dropcli'
   publishLocation: 'pipeline'

- task: VSTest@2
  inputs:
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'
Run Code Online (Sandbox Code Playgroud)

Python管道脚本:

- task: DownloadPipelineArtifact@2
  inputs:
    buildType: 'current'
    artifactName: …
Run Code Online (Sandbox Code Playgroud)

azure azure-devops azure-pipelines azure-artifacts

14
推荐指数
1
解决办法
2万
查看次数

从 Azure DevOps Python Artifacts feed 安装 pip 不起作用

当我尝试从 Azure DevOps Artifacts 源安装包时,出现错误:

Looking in indexes: https://pypi.org/simple, https://pkgs.dev.azure.com/company/company_Software/_packaging/PyPI/pypi/simple/
ERROR: Could not find a version that satisfies the requirement as-api (from versions: none)
ERROR: No matching distribution found for as-api
Run Code Online (Sandbox Code Playgroud)

由于使用pip install -vvv可能会产生机密信息,因此我无法在此处提供完整日志。请随时提出有关日志的任何具体问题。与此同时,我可以看到有希望的消息,例如:

Found index url https://pkgs.dev.azure.com/company/company_Software/_packaging/PyPI/pypi/simple/
Getting credentials from keyring for https://pkgs.dev.azure.com/company/company_Software/_packaging/PyPI/pypi/simple/
Run Code Online (Sandbox Code Playgroud)

还有一些有问题的消息?:

Status code 302 not in (200, 203, 300, 301)
Skipping link: not a file: ...
Given no hashes to check 0 links for project 'as-api': discarding no candidates
Run Code Online (Sandbox Code Playgroud)

复制细节

virtualenv .venv
.\.venv\Scripts\activate
python …
Run Code Online (Sandbox Code Playgroud)

python pip azure azure-devops azure-artifacts

11
推荐指数
3
解决办法
7925
查看次数

如何在Visual Studio团队服务构建和发布管理中使用私有npm包feed

我开始在我的visual studio团队服务帐户上使用私有npm提要,按照他们的指南并添加了一个.npmrc文件

registry=https://ascend-xyz.pkgs.visualstudio.com/_packaging/AscendNPMFeed/npm/registry
always-auth=true
Run Code Online (Sandbox Code Playgroud)

问题是构建管道现在不起作用,因为它需要来自这个私有包的一些包.

告诉npm它可以使用visual studio团队服务上的构建访问令牌进行身份验证的正确设置是什么?

我是否需要设置环境变量,调用npm login或someting作为构建步骤?

azure-pipelines azure-pipelines-release-pipeline azure-artifacts

10
推荐指数
1
解决办法
4856
查看次数

响应状态代码不表示成功:azure-pipeline 上的任务“恢复”中的 401

我有以下错误:

\n\n
error : Unable to load the service index for source https://privateLibrary.com/private/_packaging/privateOrganitation/nuget/v3/index.json. [/home/vsts/work/1/s/Local.Proyect.Core/Local.Proyect.Core.csproj]\n       /usr/share/dotnet/sdk/3.0.101/NuGet.targets(123,5): \nerror :   Response status code does not indicate success: 401 (Unauthorized). [/home/vsts/work/1/s/Local.Proyect.Core/Local.Proyect.Core.csproj]\n
Run Code Online (Sandbox Code Playgroud)\n\n

我的 azure-pipeline.yml:

\n\n
variables:\n  buildConfiguration: \'Release\'\n  localProyectName: \'Local.Proyect.Core\'\n  localProyectCoreDirectory: \'./Local.Proyect.Core\'\n\n\ntrigger:\n branches:\n   include:\n     - master\n\nsteps:\n- task: UseDotNet@2\n  inputs:\n    packageType: \'sdk\'\n- task: DotNetCoreCLI@2\n  displayName: \'dotnet restore\'\n  inputs:\n    command: restore\n    projects: \'**/$(localProyectName).csproj\'\n    feedsToUse: config\n    nugetConfigPath: $(localProyectCoreDirectory)/NuGet.Config\n    arguments: --force\n\n- task: DotNetCoreCLI@2\n  displayName: \'Build All\'\n  inputs:\n    projects: \'**/$(localProyectName).csproj\'\n    arguments: \'--no-restore --configuration $(buildConfiguration)\'\n\n- script: dotnet publish --configuration $(buildConfiguration) …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc asp.net-core azure-pipelines azure-artifacts

10
推荐指数
1
解决办法
5万
查看次数

NuGet Push 抛出 PackageExistsAsDeletedException

我正在测试 VSTS 托管的 NuGet 提要,并创建了一个 NuPkg 并将其发布到该提要中,名称如下: SomeComponent.2.1.0.npkg

我想重新测试我对发布定义所做的更改,所以我从提要中删除了包,并清空了回收站。

但是现在当我尝试发布时收到错误:

Error: An unexpected error occurred while trying to push the package with VstsNuGetPush.exe. Exit code(1) and error(Error:
Microsoft.VisualStudio.Services.NuGet.WebApi.Exceptions.PackageExistsAsDeletedException: The version 2.1.0 of SomeComponent has been deleted. It cannot be restored or pushed.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown --- …
Run Code Online (Sandbox Code Playgroud)

nuget azure-pipelines-release-pipeline azure-artifacts

8
推荐指数
1
解决办法
2874
查看次数