473,722 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1762
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
2430
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 not even relative with implementation - I'm looking for a smart solution My present system works like this:
0
1212
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 possible, and if yes, how do I add a user action to the setup project that changes the path in the config file? Thanks! /Henke
10
510
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 have to do the following to work around it.
5
11050
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 created in the wrong folder on the hard drive. Before I discovered these files, .NET kept trying to create a new project with _1 following the project name. Deleting those files corrected that problem. I deleted the Virtual Directory, rebooted, and...
1
2645
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 will be appreciated. Regards, Raphael
1
7218
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? I have looked on Google and have not found an answer.
2
1216
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 and doing Add Item for all the items. Will that work? It's a bit klunky, no? ~Paul *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
1
4892
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 denied. Here is the server setup that we have: Dev - Development Computer on WinXP Pro SP2 (IIS5), VS2003 developing under .NET Framework 1.1 Server1 - Web Server on Win2003 Server (IIS6) Server2 - File Server on Win2003 Server
5
6537
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. When I build the solution, these files are copied to the bin\Release directory, as they should be. However, when I publish the Windows Forms project, these content files are not copied. How can I make it so that these content files from the one...
0
8739
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9238
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5995
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4502
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3207
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.