Solved

rdlc file not copied to bin\Debug during build

Posted on 2012-03-12
10
3,221 Views
Last Modified: 2013-11-26
I have designed an rdlc file.  It is just like many others in the solution which were designed by others, and it runs just fine.  But I have to manually copy it into bin\Debug because it doesn't get put there during the build, as do the exisiting rdlc files.

What makes an rdlc file be included in the build so that it appears in bin\Debug and can be found in the path?  Is there a setting somewhere?
0
Comment
Question by:AmyFPA
  • 3
  • 2
  • 2
  • +1
10 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 37713763
Is it a file included in the solution (solution explorer) ?
0
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 37713858
Within visual studio, check the build action for your rdlc file. It should be set to content. Build action can be found be looking at the properties of the file.
0
 

Author Comment

by:AmyFPA
ID: 37715265
Andy - Yes, the report is listed in Solution Explorer, right next to the other rdlc files that aren't having this problem.

Shaun - Yes, the Build Action of this rdlc is already set to Content.
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 37715305
OK, that simple idea bites the dust then.  :-(
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 26

Expert Comment

by:Shaun Kline
ID: 37717853
Next simple question, is the configuration manager set to debug or release?
0
 

Author Comment

by:AmyFPA
ID: 37720968
I didn't know about changing the configuration manager setting.  

It's been set to Debug.  I rebuilt with that setting.  Then I set it to Release and rebuilt.  Neither rebuild put the file in bin\Debug or bin\Release.
0
 
LVL 23

Accepted Solution

by:
wdosanjos earned 330 total points
ID: 37843860
By default rdlc files are embedded resources, meaning the Build Action of the rdlc file (Properties) is set to Embedded Resource.  So there will be no file copied to Debug/Release, because the content of the file is embedded on the .exe or .dll.

rdlc File Properties
If you do want to have it copied to the Debug/Release folders, set the properties as below:

rdlc File Properties (Content)
Hopefully that answers your question.
0
 

Author Closing Comment

by:AmyFPA
ID: 37844115
Wow!  That's it!  Thank you!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now