Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

Where is MSBuild finding .metaproj

$
0
0

I have a solution that I can build from Visual Studio. Configuration manager is set to build "QL Release | Win32".   I saved all after building in Visual Studio 2013.

I tried a command line build:

"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" /nologo /p:Configuration="QL Release" /verbosity:detailed /t:Rebuild /fileloggerparameters:LogFile="d:\myProduct\windows_build_logs\QL_out.txt"  "d:\myProduct\mySolution\QL.sln"

The logfile references a non-existent ".metaproj" file:

Build started 5/7/2015 5:31:04 PM.
Project "d:\myProduct\mySolution\QL.sln" on node 1 (Rebuild target(s)).
Building with tools version "2.0".
Target "ValidateSolutionConfiguration" in file "d:\myProduct\mySolution\QL.sln.metaproj" from project "d:\myProduct\mySolution\QL.sln" (entry point):
Using "Error" task from assembly "Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "Error"
d:\myProduct\mySolution\QL.sln.metaproj : error MSB4126: The specified solution configuration "QL Release|X64" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. [d:\myProduct\mySolution\QL.sln]
Done executing task "Error" -- FAILED.
Done building target "ValidateSolutionConfiguration" in project QL.sln" -- FAILED.
Done Building Project "d:\myProduct\mySolution\QL.sln" (Rebuild target(s)) -- FAILED.


Build FAILED.

"d:\myProduct\mySolution\QL.sln" (Rebuild target) (1) ->
(ValidateSolutionConfiguration target) -> 
  d:\myProduct\mySolution\QL.sln.metaproj : error MSB4126: The specified solution configuration "QL Release|X64" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. [d:\myProduct\mySolution\QL.sln]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.06

I don't know where it is getting the ".metaproj" file as there isn't one.  I've done a clean, even removed the QL.sdf and QL.v12.suo files, but the command line build still wants to build a non-existent configuration.  That configuration most likely came from some experimental work which has since been removed. The solution contains 10 projects.  None of the project or solution files reference x64 so I can't tell where MSBUILD is getting this information.



Viewing all articles
Browse latest Browse all 2763

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>