Compiling an empty project from Command Line (Compiler Error CS2008)
I've encountered an interesting issue compiling a WebSite Project from command line using msbuild.
The project did not have any .cs source files because the pages referenced assemblies from a different project. Compilation was successful in Visual Studio, but using msbuild, I was getting a compiler error CS2008 - No inputs specified
Apparently, Visual Studio handles an empty project properly, but command line csc compiler does not. To solve the issue, just add a blank .cs file (I actually placed the comment explaining the issue in the file)
No comments:
Post a Comment