使用VSTS使用VSTS软件包和旧式csproj构建解决方案

编程入门 行业动态 更新时间:2024-10-25 10:21:15
本文介绍了使用VSTS使用VSTS软件包和旧式csproj构建解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个具有以下解决方案的解决方案:

I've a solution that has the following:

  • 具有旧式csproj的多个库net461
  • 使用新的csproj(Net核心库和我们的应用程序,但仅使用tatgets net461)多个项目net461,并引用旧的csproj项目.
  • 我使用VSTS软件包来管理一些私有nuget软件包
  • multiple libraries net461 with old style csproj
  • multiple projects net461 with new csproj (Net core libraries and we applications but tatgets net461) and references the old style csproj projects.
  • I use VSTS Packages to manage some private nuget packages
  • 我在笔记本电脑中安装了VS 15.3,并且该版本运行良好,但是在VSTS上,该版本失败了.我尝试了以下方案

    I've VS 15.3 installed in my laptop and the build is working great but, on VSTS the build is failing. I tried the following scenarios

  • 当我使用dotnet restore(新工具)时,在旧式csproj上还原时构建失败,并提到构建失败(我确保使用该工具仅还原不涉及的构建)
  • 当我使用nuget restore时,出现以下失败消息错误:找不到资产文件'[path_to_project_on_agent] \ obj \ project.assets.json'.运行NuGet软件包还原以生成此文件.在github问题> github/Microsoft/vsts-任务/问题/3762
  • 我需要知道什么是正确的任务才能构建此项目. 谢谢,

    I need to know what is the correct tasks to get this project building. Thanks,

    推荐答案

    最后,我通过以下方式解决了该问题

    Finally I resolved the issue by

  • 使用 NuGet工具安装程序安装Nuget版本4.3.0
  • 在解决方案文件上运行Nuget Restore
  • 使用Visual Studio 2015生成任务而无需在解决方案文件上进行清理也无需还原
  • Use NuGet Tool Installer to install Nuget Version 4.3.0
  • Run Nuget Restore on the Solution file
  • Use Visual Studio 2015 Build Task without clean and without restore on the Solution File
  • 我希望它能对某人有所帮助.

    I hope it helps someone.

    更多推荐

    使用VSTS使用VSTS软件包和旧式csproj构建解决方案

    本文发布于:2023-11-06 17:24:54,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1564320.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:旧式   软件包   解决方案   VSTS   csproj

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!