Content Path with a One Solution Two Project setup

B

Blau

While trying to learn from some sample projects i'm running into a
problem.

The setup that I have is One Solution with two projects. (usually a
library that is being developed along side an application.)

In the examples that I am learning from, they have a "content" folder
in the library solution, which stores various things like font files.
In the examples, the application project does not have its own folder
with the same content, i.e., the don't include the font file in both
the library and the application, just in the library.

However, when I try to duplicate the project, I get a "file not found"
error when I run the application. The only way that I have been able
to work around this is to place a copy of the "content" folder with
the font files into my application project.

So, in the example projects, the application "knows" to look in the
libarary's solution folder for the "content" files; but when I attempt
to create the same project, my application doesn't look at the
library's solution folder to find the content.

Any thoughts on how I can correct this?

Thanks

Blau
 
D

Duggi

While trying to learn from some sample projects i'm running into a
problem.

The setup that I have is One Solution with two projects. (usually a
library that is being developed along side an application.)

In the examples that I am learning from, they have a "content" folder
in the library solution, which stores various things like font files.
In the examples, the application project does not have its own folder
with the same content, i.e., the don't include the font file in both
the library and the application, just in the library.

However, when I try to duplicate the project, I get a "file not found"
error when I run the application.  The only way that I have been able
to work around this is to place a copy of the "content" folder with
the font files into my application project.

So, in the example projects, the application "knows" to look in the
libarary's solution folder for the "content" files; but when I attempt
to create the same project, my application doesn't look at the
library's solution folder to find the content.

Any thoughts on how I can correct this?

Thanks

Blau

Hi

Copying the Content folder should be the part of deployment plan of
your application. However for debug purposes, post-build or/and pre-
build event command line options would be helpful.

When a classlibrary project is referenced to application project, it
only copies (it the option is set) output (this case dll) of the
project to the debug folder of application project.

I am not sure if there is any other way to copy the classlibrary data
files to application project debug folder (or aprropriate folder).

-Cnu
 

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