Deploying content files

D

dtaylor

In my .NETCF application I have created an equivelent to
an INI file. It's file type is .txt. I'm using it to
read in application configuration settings as described
in "The definitive Guide to the .NET Compact Framework".
I just used VS2003.NET to deploy my application (which I
have set to go to the Windows\Start Menu folder) and I
have successfully deployed it on two new HP/IPAq
devices. The .txt file shows up in my Program window and
when I browse to the Windows\Start Menu folder the .txt
file isn't there and my application is not displaying
my "about box" info which is read from that file
(although it's not throwing any errors either).
How do you force content files to deploy to the same
directory as the application? (using the Build, Deploy
Solution method).
 
M

Malcolm

Choose the file in the solution and in the properties box select build
action "Content". I suspect you have it set to "None" at the moment.

In a full .NET solution the files marked as content are not copied to the
build directory. Use the add in on might site for that:
http://www.dcs.gla.ac.uk/~hall/personal/stuff.htm


In my .NETCF application I have created an equivelent to
an INI file. It's file type is .txt. I'm using it to
read in application configuration settings as described
in "The definitive Guide to the .NET Compact Framework".
I just used VS2003.NET to deploy my application (which I
have set to go to the Windows\Start Menu folder) and I
have successfully deployed it on two new HP/IPAq
devices. The .txt file shows up in my Program window and
when I browse to the Windows\Start Menu folder the .txt
file isn't there and my application is not displaying
my "about box" info which is read from that file
(although it's not throwing any errors either).
How do you force content files to deploy to the same
directory as the application? (using the Build, Deploy
Solution method).



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


x-- 100 Proof News - http://www.100ProofNews.com
x-- 3,500+ Binary NewsGroups, and over 90,000 other groups
x-- Access to over 1 Terabyte per Day - $8.95/Month
x-- UNLIMITED DOWNLOAD
 
D

dtaylor

Thanks Malcolm for your reply. I did have the action set
to content. It is reading the ini file now. This is
strange.
Here's some settings in my INISettings Class.
?_AppName
"PocketPCApp1"
?_fileName
@"\Windows\Start Menu\PocketPCApp1.txt"
If I use the PPC file explorer and navigate to
Windows\Start Menu I see my application executable, but I
do not see the .txt file.
If I use the PPC and do : Start, Programs, I see an Icon
for the PocketPCApp1.txt and if I tap on it, it opens the
file as expected with Pocket Word.
I don't want it to show up when the user is viewing the
Programs window. Everytime I build and deploy my app
from VS, it puts another PocketPCApp1.txt(1) etc out
there. Now my About box is running fine. Which means
the file opened using the path above(?), but I don't see
the file in this path. I can't figure this out. I'll
check out the add in mentioned below. Thanks!
Donna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top