Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hey All:

Reasonably new here, but I would like some help, please. I've referenced a SQL script in my application (C#, if it matters) in VS2012 (Express, if that matters). It's a script that will not change, it creates a SQLite database on the first run. Thing is, when I try to reference it via Properties.Resources.XXXXXX to load it, it does not appear, and the error message tells me there is no such reference. I can see it in the folder, I can see it in the Resources section of the solution explorer, but it will not let me reference it.

I understand that this file won't be able to change at run-time. I don't want it to.

I've tried:
- re-linking the file
- deleting and re-linking the file
- closing VS2012 and reopening
- closing the project and reopening

Getting frustrated, as I'm reasonably new (like, three weeks old) to C#, and VS. Thoughts?

Thanks in advance!
-J
Posted

1 solution

Solved the problem myself after researching another site. Turns out one can't "import" a text file into the resources, it has to be added itself via the text editor.

Thanks to those who downvoted me!
-J
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900