473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Content Path with a One Solution Two Project setup

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
Jun 27 '08 #1
1 1750
On Jun 13, 4:53*am, Blau <jodyb...@gmail.comwrote:
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
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: R | last post by:
Hello everybody. I'm writing my own Content System in PHP5. I've written so far main classes for handling DB connections, XML, XForms and Sessions. But I've got problem with one thing - it's...
0
by: Henke | last post by:
Hi! I have added a setup project to my solution, to create a installation package for my project. One of by components in the solution uses a config-file to read a path to a database file. Is it...
10
by: Simon Jefferies | last post by:
Hello, I'm getting a strange problem where when I load up my solution that has three projects:- a managed C++ .NET, one C++ lib, and a VB library. It locks up and doesn't load completely, I...
5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
1
by: Raphael Iloh | last post by:
Hi all, I have a Web Setup Project and would like to change the installation path from the default (i.e. C:\Inetpub\wwwroot\) to some more particular path (e.g. c:\myfolder\). Any ideas on this...
1
by: Keith Smith | last post by:
When I create a setup file (MSI) for my app, I get the following error when I try to run the MSI file... The folder path '.' contains an invalid character Does anyone know a solution to this? ...
2
by: Paul | last post by:
Anybody know what is the best way to move a web project to another physical path? It seems loaded with issues that make this difficult. I am considering creating a new project in the new path...
1
by: Jody Gelowitz | last post by:
We are having an issue in that when trying to read a file that is on Server2 from Server1 (through our ASP.NET project), we receive the error: Access to the path "\\Server2\MyShare\MyFile.tif" is...
5
by: DCDev | last post by:
I have a solution with multiple projects. One project is a windows forms project. I have report files (.rdlc) in a separate project that are built as "Content" with the "Copy Always" option....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.