Unknown error XNA cannot detect importer for "program.cs"
Posted
by
Evan Kohilas
on Game Development
See other posts from Game Development
or by Evan Kohilas
Published on 2013-11-06T07:45:52Z
Indexed on
2013/11/06
10:12 UTC
Read the original article
Hit count: 287
I am not too sure what I have done to cause this, but even after undoing all my edits, this error still appears
Error 1 Cannot autodetect which importer to use for "Program.cs". There are no importers which handle this file type. Specify the importer that handles this file type in your project. (filepath)\Advanced Pong\AdvancedPongContent\Program.cs Advanced Pong
After receiving this error, everything between #if and #endif in the program.cs fades grey
using System;
namespace Advanced_Pong
{
#if WINDOWS || XBOX
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
using (Game1 game = new Game1())
{
game.Run();
}
}
}
#endif
}
I have searched this and could not find a solution anywhere. Any help is appreciated.
© Game Development or respective owner