I just ran into the same issue when trying to switch a project to git deployment on Azure web sites. Previously I had been manually publishing the site from with Visual Studio.
In the project's csproj file I changed:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PrecompileBeforePublish>true</PrecompileBeforePublish>
<UseMerge>true</UseMerge>
<WDPMergeOption>MergeAllOutputsToASingleAssembly</WDPMergeOption>
<SingleAssemblyName>Hvac.Web.Merged</SingleAssemblyName>
<DeleteAppCodeCompiledFiles>true</DeleteAppCodeCompiledFiles>
<ContentAssemblyName>
</ContentAssemblyName>
<EnableUpdateable>true</EnableUpdateable>
</PropertyGroup>
To this:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
I'm guesstimating that just changing UseMerge
to false
would also work.