I have a simple Solution tree:
Repository: DFW-SPF-Website |-- Solution: DFWSPFWebsite |-- |-- Project: DFWSPFWebsite
In my previous post I explained the contortions I had to go through to get VSTS to find my NuGet Packages. It took a while to lead its MSBuild process to even find the .sln file. Now MSBuild can't find the Project file. Really?!
After countless incarnations, my current build settings are:
Solution: $(build.sourcesDirectory)/DFWSPFWebsite/DFWSPFWebsite.sln
MSBuild Arguments: /p:ProjectFile=$(build.sourcesDirectory)\DFWSPFWebsite\DFWSPFWebsite\DFWSPFWebsite.csproj
Platform: $(BuildPlatform) Configuration: $(BuildConfiguration) Clean: true VS Version: 2015/2017/Latest (tried them all) Control Options: Enabled
I can't get past the MSBuild error of:
"C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" "D:\a\1\s\DFWSPFWebsite\DFWSPFWebsite.sln" /nologo /nr:false /t:"Clean" /dl:CentralLogger,"D:\a_tasks\VSBuild_abc-xyz\1.113.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=abc-xyz|SolutionDir=D:\a\1\s\DFWSPFWebsite"*ForwardingLogger,"D:\a_tasks\VSBuild_71abc-xyz\1.113.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:ProjectFile=D:\a\1\s\DFWSPFWebsite\DFWSPFWebsite.csproj /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0" /p:_MSDeployUserAgent="VSTS_abc-xyz_build_2_38" MSBUILD : error MSB1009: Project file does not exist. Switch: D:\a\1\s\DFWSPFWebsite\DFWSPFWebsite.sln Process 'msbuild.exe' exited with code '1'. "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" "D:\a\1\s\DFWSPFWebsite\DFWSPFWebsite.sln" /nologo /nr:false /dl:CentralLogger,"D:\a_tasks\VSBuild_71abc-xyz\1.113.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=abc-xyz|SolutionDir=D:\a\1\s\DFWSPFWebsite"*ForwardingLogger,"D:\a_tasks\VSBuild_71abc-xyz\1.113.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:ProjectFile=D:\a\1\s\DFWSPFWebsite\DFWSPFWebsite.csproj /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0" /p:_MSDeployUserAgent="VSTS_14abc-xyz_build_2_38" MSBUILD : error MSB1009: Project file does not exist. Switch: D:\a\1\s\DFWSPFWebsite\DFWSPFWebsite.sln Process 'msbuild.exe' exited with code '1'.
I never thought I'd miss my XAML deployment so much.
DFWSPFWebsite\DFWSPFWebsite\DFWSPFWebsite.csproj
. BTW, please also check MSBuild Arguments, it’s/p:ProjectFile=$(build.sourcesDirectory)\DFWSPFWebsite\DFWSPFWebsite\DFWSPFWebsite.csproj
or/p:ProjectFile=$(build.sourcesDirectory)\DFWSPFWebsite \DFWSPFWebsite.csproj
. Based on your log/p:ProjectFile=D:\a\1\s\DFWSPFWebsite\DFWSPFWebsite.csproj
, it seems the argument you set is/p:ProjectFile=$(build.sourcesDirectory)\DFWSPFWebsite
. - Marina Liu