I'm using visual studio 2015 preview.

My solution structure is like this

/Solution
    Dummy.sln 
    /src
        /config
        /app
            Library1.kproj
            /Web.kproj
        /db
        /tests
            unitTests.kproj

My global.json file looks like this

{ "sources": [ "src" ] }

My "Web project" successfully had a reference to "library project". But my "unitTests project" fails to see the "library project" reference. Whenever I add a reference... it mistakenly resolves to:

C:\Users\UserAccount.kpm\packages\Library1\1.0.0

Which is wrong.

I tried few options ... none worked. Does global.json support folder paths ?

{ "sources": [ "src", ".\tests", ".\app" ] }

Any solutions other than changing the solution structure?

Related posts

Recent Viewed