I'm working on an ASP.NET Web Forms application (.NET Framework 4.7.2) and I'm trying to build the solution with MSBuild.
msbuild Project.sln /p:Configuration=Release /p:Platform="Any CPU"
However, I'm getting the following error:
error CS0433: The type 'includes_controls_GridFilter' exists in both 'App_Web_5ozmheie, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'App_Web_e2c40wid, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' [D:\Source\Repos\X\X.metaproj]
The strange thing is that the solution builds fine in Visual Studio, so I'm not sure what's causing this error.
I've tried checking the project references and clearing the ASP.NET temporary files, but the error still persists. Does anyone have any suggestions on how to resolve this issue?
Any help would be greatly appreciated!