rdlc file not copied to bin\Debug during build

Posted on 2012-03-12
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?
Question by:AmyFPA
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 44

Expert Comment

ID: 37713763
Is it a file included in the solution (solution explorer) ?
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.

Author Comment

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.
Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

LVL 44

Expert Comment

ID: 37715305
OK, that simple idea bites the dust then.  :-(
LVL 26

Expert Comment

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

Author Comment

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.
LVL 23

Accepted Solution

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.

Author Closing Comment

ID: 37844115
Wow!  That's it!  Thank you!

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 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