Error 1 Cannot Autodetect Which Imported
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up XNA Framework Importers up vote 4 down vote favorite 2 I am working on a game using the XNA framework. My game has several levels which I am storing the data in a plain old text file. In VS 2008 when I add the level file to the project and compile, I receive the following error message. Error 1 Cannot autodetect which importer to use for "Levels\0.txt". There are no importers which handle this file type. Specify the importer that handles this file type in your project. F:\Projects\BrickBreaker\BrickBreaker\Content\Levels\0.txt BrickBreaker The reason I am bringing this out is because if I change on of my levels and run the game, the level is not updated. I have found that the level is not updated because VS runs the game from the bin\debug folder and since the level files are not included in the project, they are not copied when they change. I also found that the platform sample that comes with the framework includes the level data in the project, that's where I got the technique from. So, should I use a different file format or just deal with having to manually copy the new level files over? Resolution - After digging into the answers on this post I found a solution. I added the text files to the project and set the build property to none. The error no longer occurs when compiling and the file is included in the project. frameworks xna level share|improve this question edited Nov 13 '15 at 13:56 Brian Tompsett - 汤莱恩 3,093122775 asked Aug 5 '09 at 16:47 user151190 3828 I would include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up deal with an importer XNA up vote 0 down vote favorite I added test1.bin to http://stackoverflow.com/questions/1234426/xna-framework-importers the content of my game. There is already a test.bin which works perfectly. The problem I have is : Erreur 11: Cannot autodetect which importer to use for "Levels\test1.bin". There are no importers which handle this file type. Specify the importer that handles this file type in your project. c# xna share|improve this question edited Aug 15 '12 at 5:58 Craig Ringer 134k18222304 asked Aug 14 '12 at 16:47 user1594047 618 http://stackoverflow.com/questions/11957051/deal-with-an-importer-xna add a comment| 1 Answer 1 active oldest votes up vote 4 down vote The XNA Content Pipeline relies on the file extension in order to automatically determine which content importer and processor are appropriate for a given file. There are no built-in importers or processors for .bin files, so unless you've defined some yourself, XNA can't figure out what you want to do with this file. In Visual Studio, click on your test.bin file and view its properties in the property window. There should be entries for the content importer and processor. Make note of those values, then select your test1.bin file and make sure it's using the same settings. Note that, if you're reading the raw data manually -- in other words, if you aren't using a ContentManager to load this file -- you need to set its Build Action to None and Copy to Output Directory to Copy if Newer. share|improve this answer answered Aug 14 '12 at 17:04 Cole Campbell 4,4921918 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your a
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) Home20132010Other VersionsLibraryForumsGallery Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Cannot autodetect which importer to use for "effects.fx.txt" Visio 2010 https://social.technet.microsoft.com/Forums/office/en-US/b37b47b6-e765-43dc-9890-f7b92d500def/cannot-autodetect-which-importer-to-use-for-effectsfxtxt?forum=visiogeneral > Visio General Questions and Answers for IT Professionals Question 0 Sign in to vote Hey everyone I am following a tutorial downloaded an effect file. but it is saved as .txt file on my system when I add it to my project I get the following error "Cannot autodetect which importer to use for "effects.fx.txt", do I need error 1 an editor that reads .fx and .x files? Thursday, April 21, 2011 2:22 PM Reply | Quote Answers 0 Sign in to vote And where do you think you posted your question? This is the Visio forum, not Visual Studio (the most common mistake). al If this answer solves your problem, please check Mark as Answered. If this answer error 1 cannot helps, please click the Vote as Helpful button. Al Edlund Visio MVP Marked as answer by airwarriorthree Thursday, April 21, 2011 3:21 PM Thursday, April 21, 2011 3:09 PM Reply | Quote Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.Would you like to participate? Privacy statement © 2016 Microsoft. All rights reserved.Newsletter|Contact Us|Privacy Statement|Terms of Use|Trademarks|Site Feedback TechNet Products IT Resources Downloads Training Support Products Windows Windows Server System Center Browser Office Office 365 Exchange Server SQL Server SharePoint Products Skype for Business See all products » Resources Evaluation Center Learning Resources Microsoft Tech Companion App Microsoft Technical Communities Microsoft Virtual Academy Script Center Server and Tools Blogs TechNet Blogs TechNet Flash Newsletter TechNet Gallery TechNet Library TechNet Magazine TechNet Subscriptions TechNet Video TechNet Wiki Windows Sysinternals Virtual Labs Solutions Networking Cloud and Datacenter Security Virtualization Updates Service Packs Security Bulletins Windows Update Trials Wind