简体   繁体   中英

VisualStudio 2013 can't find referenced namespace

I manually add two DLLs to my project Dapper.DLL and Dapper.Contrib.DLL than create DapperTest.cs class in my project root namespace EBTests. Than I create more cs files so I created folder Dapper and move all this classes inside this folder. So far so good.

Than I add new class inside the folder Dapper name it DataManagerWithDapper.cs Since that using reference to Dapper.Contrib stopped working in all my classes.

After hours of researches I found the very simple reason. My lastly added class get new namespace EBTests.Dapper and it was somehow in conflict with Dapper.Contrib. After I changed my new namespace from "EBTests.Dapper" to "EBTests", using to Dapper.Contrib starts to work properly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM