[{"data":1,"prerenderedAt":117},["ShallowReactive",2],{"/2025/11/29-azure-devops-build-failed-for-project-without-solution-file":3},{"id":4,"title":5,"body":6,"date":108,"description":69,"extension":109,"meta":110,"navigation":111,"path":112,"robots":113,"seo":114,"stem":115,"__hash__":116},"posts/2025/11/29 Azure-DevOps-build-failed-for-project-without-solution-file.md","29 Azure DevOps Build Failed For Project Without Solution File",{"type":7,"value":8,"toc":105},"minimark",[9,18,25,28,31,33,36,38,41,43,46,48,51,53,56,70,72,75,77,80,82,85,87,90,92,95],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"azure-devops-build-failed-for-project-without-solution-file","Azure DevOps Build Failed for Project without Solution File",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 1/20/2020.",[26,27],"br",{},[22,29,30],{},"Our company has been using Azure DevOps as a source control server. Only lately, I have been expanding our usage to take advantage of its CI/CD offerings. It went smoothly until I bumped into a project that has no solution file.",[26,32],{},[22,34,35],{},"The project without solution file failed the Visual Studio Build task even when it has the same settings as other projects with solution file.",[26,37],{},[22,39,40],{},"I started by verifying settings from the Solution field. It does says that it can use MSBuild project. Since I was using VB.NET, I point it to .vbproj file.",[26,42],{},[22,44,45],{},"Next is the Platform field, which according to the info bubble, I can specify \"any cpu\".",[26,47],{},[22,49,50],{},"Last is the Configuration field. Since I want a Release build, I can specify \"release\" according to the info bubble.",[26,52],{},[22,54,55],{},"The same values, with the exception of the Solution field, work well if I point the task to a solution file but break when I point it to a project file. Part of the error message is:",[57,58,59],"code-block",{},[60,61,66],"pre",{"className":62,"code":64,"language":65},[63],"language-text","Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='release'  Platform='any cpu'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.\n","text",[67,68,64],"code",{"__ignoreMap":69},"",[26,71],{},[22,73,74],{},"The error message indeed stated that the Configuration and Platform values are invalid. But it builds just fine locally without a solution file. Granted, Visual Studio will create a temporary solution file when opening a project file.",[26,76],{},[22,78,79],{},"Since it built fine locally, I decided to check inside the project file to find the values used.",[26,81],{},[22,83,84],{},"The project file does use \"Release\" instead of \"release\" and \"AnyCPU\" instead of \"any cpu\". So, I gave it a try and the build was successful.",[26,86],{},[22,88,89],{},"Opening the solution file reveals the use of \"Release\" and \"Any CPU\", so the values might be case insensitive, but I didn't give it a try.",[26,91],{},[22,93,94],{},"And my solution is:",[96,97,98,102],"ul",{},[99,100,101],"li",{},"If pointing to solution file, use \"release\" as Configuration and \"any cpu\" as Platform",[99,103,104],{},"If pointing to project file, use \"Release\" as Configuration and \"AnyCPU\" as Platform",{"title":69,"searchDepth":106,"depth":106,"links":107},2,[],"2025-11-29T00:00:00.000Z","md",{},true,"/2025/11/29-azure-devops-build-failed-for-project-without-solution-file",null,{"title":5,"description":69},"2025/11/29 Azure-DevOps-build-failed-for-project-without-solution-file","Uy3WO2Chd9IE-M-gI-9jGxQN5SmcmSy7stk3dFVI794",1785167452384]