Hello when I compile a ASP.NET C# project using file Microsoft.NET\\Framework\\v2.0.50727\\MSBuild.exe I am getting an error as \"ERROR CS0103: The name (forms name) cannot be
You forgot to add designer file to your code file.
As seen in the MSDN
An attempt was made to use a name that does not exist in the class, namespace, or scope. Check the spelling of the name and check your using statements and assembly references to make sure that the name you are trying to use is available. One common mistake is to declare a variable within a loop or a try block and then attempt to access it from an enclosing code block or another code block.
Use compile.bat file to compile all the files and make sure that designer files are included. This error occurs only when designer file is not present in the context.