I have compiled more then one solution file in process concepts.Some solution files are error occur.
Error is : MSBUILD : error MSB1008: Only one project can be specified.
I used following codes :
string installedPath=@"C:\Program Files (x86)\New folder";
string frameWork="2.0";
foreach (string projectPath in platformProjects)
{
try
{
string MsbuildLocation = @"C:\Windows\Microsoft.NET\Framework\v4.0.30319";
Process process = new Process();
process.StartInfo.FileName = MsbuildLocation + "\\MSBuild.exe";
process.StartInfo.Arguments = "\"" + projectPath + "\"" + " /p:Configuration=Release /p:ReferencePath=\"" + installedPath + "Assemblies\\" + frameWork + "\" /p:OutDir="+ Environment.CurrentDirectory+"\\"+frameWork+"\\";
process.StartInfo.CreateNoWindow = false;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.Start();
string errorlog = process.StandardOutput.ReadToEnd();
process.WaitForExit();
}
}
platformProjects is a string array.More then one .sln files.
Note: This error is came in some solution files.please tell me, How to Solve this error?