Click here to Skip to main content
16,022,971 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I'm using IoC with dedicated configuaration file(Unity.config),
all things went good with ordinary project, but IoC fail loading this file inthe case of a Testing Unit project, I use this attribut
[DeploymentItem("unity.config"), TestMethod]
to import the file, but IoC fail resolving alias,
Some help ?

thanks,
Posted

1 solution

Make sure your unity.config is somewhere in your test project and make sure the Copy To Output Directory in the properties of unity.config is set to "Always"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900