How to build .csproj with C# 7 code from command line (msbuild)

后端 未结 2 1232
你的背包
你的背包 2020-12-29 23:44

I use some C# 7 features in my project:

static void Main(string[] args)
{
}

public byte ContainerVersion
{
    get => 1;
    private set => throw new          


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-30 00:21

    You'll need to install msbuild-2015 on your CI agent.

    https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15

    The default install directory for msbuild will be: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe

提交回复
热议问题