Solved

rdlc file not copied to bin\Debug during build

Posted on 2012-03-12
10
3,481 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
[X]
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
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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
LVL 44

Expert Comment

by:AndyAinscow
ID: 37715305
OK, that simple idea bites the dust then.  :-(
0
 
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.
1
 

Author Closing Comment

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

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

696 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