服务器CI出错但不是本地出错

时间:2017-02-22 15:25:47

标签: vb.net compiler-errors msbuild continuous-integration

我们有一个VB项目可以在本地构建(在所有各种配置中),但是当它在服务器上运行时会抛出与未使用的局部变量相关的错误。

据我所知,配置是相同的。这只是使用项目内设置,而不是任何Stylecop包等。

可能的一个区别是我们在VS2015本地运行它,但在服务器上我认为它仍然使用2010.

从.vbProj文件中提取

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\</OutputPath>
    <DocumentationFile>
    </DocumentationFile>
    <NoWarn>42353,42354,42355</NoWarn>
    <WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <Optimize>true</Optimize>
    <OutputPath>bin\</OutputPath>
    <DocumentationFile>
    </DocumentationFile>
    <NoWarn>42353,42354,42355</NoWarn>
    <DebugSymbols>true</DebugSymbols>
    <WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>

这可能是罪魁祸首,除了服务器之外,如何让它在本地中断?

0 个答案:

没有答案