Click here to Skip to main content
15,886,362 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Loading an assembly at runtime Pin
__DanC__20-Feb-07 21:43
__DanC__20-Feb-07 21:43 
GeneralRe: Loading an assembly at runtime Pin
kristmun21-Feb-07 1:33
kristmun21-Feb-07 1:33 
QuestionRemoting and encrypting class data Pin
CPP_Student20-Feb-07 11:07
CPP_Student20-Feb-07 11:07 
QuestionDatagrid MouseUp Pin
ricecake20-Feb-07 8:51
ricecake20-Feb-07 8:51 
QuestionCF List Control - Resize specific item font size Pin
tom_barber20-Feb-07 5:03
tom_barber20-Feb-07 5:03 
AnswerRe: CF List Control - Resize specific item font size Pin
tom_barber20-Feb-07 5:12
tom_barber20-Feb-07 5:12 
AnswerRe: CF List Control - Resize specific item font size Pin
Dave Kreskowiak20-Feb-07 7:23
mveDave Kreskowiak20-Feb-07 7:23 
QuestionUnit Testing Pin
Colin Angus Mackay20-Feb-07 0:23
Colin Angus Mackay20-Feb-07 0:23 
I'm having a little problem with some unit tests. I have a project that has some files that get copied to the bin folder. Each file has a build action of "Content" and Copy To Output Directory of "Copy Always".

So far so good. Even the projects that are dependent on the project with the files get the files copied to their bin directory. That is perfect - exactly what I want.

However, if I run a unit test, VSTS creates a directory to run the tests in. (Fair enough - good to keep the tests in isolation) The directory looks like this:
C:\<solution folder>\TestResults\<username>_<machine> <datetime>\Out

The parts in angle brackets depend on where, when and who is running the test so the directory structure is unknown (and doesn't exist) at build time. (It creates a new folder for each test run)

The problem is that it does not copy in the additional files I need, just the assemblies and the pdb files. So when the code attempts to load one of the files it fails because it doesn't exist.

Does anyone have any ideas for getting the files to get copied into the correct folder? (i.e. the one with all the assemblies)


AnswerRe: Unit Testing Pin
S. Senthil Kumar25-Feb-07 11:17
S. Senthil Kumar25-Feb-07 11:17 
GeneralRe: Unit Testing Pin
Colin Angus Mackay2-Mar-07 3:33
Colin Angus Mackay2-Mar-07 3:33 
QuestionHelp needed in setting report programatically.. Pin
bugsome20-Feb-07 0:11
bugsome20-Feb-07 0:11 
QuestionAutoescape text Pin
Ray Cassick19-Feb-07 19:44
Ray Cassick19-Feb-07 19:44 
AnswerRe: Autoescape text Pin
Heath Stewart20-Feb-07 4:51
protectorHeath Stewart20-Feb-07 4:51 
AnswerRe: Autoescape text Pin
Pete O'Hanlon20-Feb-07 5:01
mvePete O'Hanlon20-Feb-07 5:01 
QuestionProblem with handling MDI child closing Pin
CPP_Student19-Feb-07 17:24
CPP_Student19-Feb-07 17:24 
AnswerRe: Problem with handling MDI child closing Pin
tgrt20-Feb-07 3:12
tgrt20-Feb-07 3:12 
GeneralRe: Problem with handling MDI child closing Pin
CPP_Student20-Feb-07 9:24
CPP_Student20-Feb-07 9:24 
QuestionUsing Reflection to get the name of a function parameter. Pin
howardjr19-Feb-07 15:31
howardjr19-Feb-07 15:31 
AnswerRe: Using Reflection to get the name of a function parameter. Pin
Heath Stewart20-Feb-07 4:58
protectorHeath Stewart20-Feb-07 4:58 
GeneralRe: Using Reflection to get the name of a function parameter. Pin
howardjr21-Feb-07 9:57
howardjr21-Feb-07 9:57 
Questionupdating to framework 3.0 Pin
Darren Sim19-Feb-07 0:38
Darren Sim19-Feb-07 0:38 
AnswerRe: updating to framework 3.0 Pin
Heath Stewart19-Feb-07 7:02
protectorHeath Stewart19-Feb-07 7:02 
GeneralRe: updating to framework 3.0 Pin
Dave Kreskowiak19-Feb-07 10:15
mveDave Kreskowiak19-Feb-07 10:15 
GeneralRe: updating to framework 3.0 Pin
Heath Stewart19-Feb-07 13:13
protectorHeath Stewart19-Feb-07 13:13 
GeneralRe: updating to framework 3.0 Pin
Dave Kreskowiak19-Feb-07 13:19
mveDave Kreskowiak19-Feb-07 13:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.