在AppVeyor中使用MSBuild 14.0/C# 6.0进行构建

3
我正在尝试在AppVeyor中使用C# 6.0代码构建。我已经尝试了这个来自AppVeyor的更新, 这个讨论这篇博客文章中的配置。
以下是我的操作步骤:
  • Select Visual Studio 2015 as operating system from AppVeyor web interface
  • Add MSBuild 14.0 folder to the path (tried both from web interface and appveyor.yml)

    SET PATH=C:\Program Files (x86)\MSBuild\14.0\Bin\;%PATH%
    
  • Changed these lines in solution file

    # Visual Studio 14
    VisualStudioVersion = 14.0.23107.0
    
  • Tried to invoke MSBuild with custom build script

这些方法都没有起作用。它仍然会选择MSBuild 12.0并失败。我还能尝试什么?有些人已经搞定了,我不知道我错在哪里。


1
那是哪个 AppVeyor 账户名/项目? - Feodor Fitsner
@FeodorFitsner AppVeyor项目 & 源代码 - Ufuk Hacıoğulları
@FeodorFitsner 谢谢您,现在它正在使用 MSBuild 14.0。我非常确定我从环境选项卡中的操作系统下拉菜单中选择了 Visual Studio 2015。是否还有其他缺少的配置? - Ufuk Hacıoğulları
@FeodorFitsner 我也遇到了完全相同的问题 :( 请也帮帮我。 - Bilal Fazlani
我的AppVeyor项目是https://ci.appveyor.com/project/bilal-fazlani/tracker-enabled-dbcontext/,GitHub源代码位于https://github.com/bilal-fazlani/tracker-enabled-dbcontext。 - Bilal Fazlani
显示剩余3条评论
1个回答

0
除了你之前尝试的方法,你还需要确保使用了 Visual Studio 2015 的镜像。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接