Asp.net vnext global.json with two level folders not working

I am using visual studio 2015 preview.

My solution structure is similar to

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

My global.json file is as follows

 { "sources": [ "src" ] } 

In my "web project" there was successfully a link to "library project". But my unitTests project does not see a link to the "library project". Whenever I add a link ... it mistakenly solves:

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

It is not right.

I tried several options ... no one worked. Does global.json support folder paths?

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

Any solutions other than changing the structure of the solution?

+7
asp.net-core visual-studio-2015
source share
1 answer
 { "sources": [ "src" ] } 

is correct. I used to have this question. You need to look at the actual folder structure in Explorer. The sln file and the global.json file must be at the same level. You should NOT have a folder named "src", it should look like this: DISK:

 Project folder - Something.Web folder - Something.Tests folder - sln file - json file 

then in the actual sln in VS you will have it the way you already installed using src 'folder'

+5
source share

All Articles