How get ClickOnce to include a file when publishing?

R

Ronald S. Cook

I have a Win app that references a class library project. Within the
latter, there is a remoting.config file.

When I publish my app using ClickOnce, it errors telling me it can't find
the remoting.config file.

How do I get this thing to "go along" with the project?

Of course, its impossible to see what ClickOnce actually copies to the
client hard drive as is so cryptic and hidden from what I remember.

Thanks for any help,
Ron
 
G

Guest

Lets see if I can remmeber everything:
1. Add your file via Projecy Explorer
2. Right click on file, select properties and set Build Action to "content"
3. Go to Project, yourprojectnameProperties, then Publish tab, then
Application Files button
4. you should see the file listed there then set to Include(auto).

After you publish the app, you shoudl see the files in a directory like:
C:\Documents and Settings\username\Local Settings\Apps\2.0
 
R

Ronald S. Cook

Yeah, but the remoting.config isn't in the client Windows project, it's in
the class library project that is referenced from the Windows client
project.

I got it to work by copying the file into the client project and then doing
as you said but theis seems like a hack. Is there not a more "professional"
way to do this?

Thanks,
Ron
 
G

Guest

Sorry Ronald. Not sure I know the answer.

Ronald S. Cook said:
Yeah, but the remoting.config isn't in the client Windows project, it's in
the class library project that is referenced from the Windows client
project.

I got it to work by copying the file into the client project and then doing
as you said but theis seems like a hack. Is there not a more "professional"
way to do this?

Thanks,
Ron
 

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