You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.
Repro steps:
(1) git clone Home repo
(2) cd Home/samples/ConsoleApp
(3) dnu restore
(4) dnx . run, works well
(5) dnx ./ run, fails with the following exception:
System.InvalidOperationException: Unable to resolve project 'ConsoleApp' from C:\AspNet\Home\samples\ConsoleApp\
at Microsoft.Framework.Runtime.ApplicationHostContext..ctor(IServiceProvider serviceProvider, String projectDirectory
, String packagesDirectory, String configuration, FrameworkName targetFramework, ICache cache, ICacheContextAccessor cac
heContextAccessor, INamedCacheDependencyProvider namedCacheDependencyProvider, IAssemblyLoadContextFactory loadContextFa
ctory, Boolean skipLockFileValidation) in C:\AspNet\dnx\src\Microsoft.Framework.Runtime\ApplicationHostContext.cs:line 5
7
at Microsoft.Framework.Runtime.DefaultHost.Initialize(DefaultHostOptions options, IServiceProvider hostServices) in C
:\AspNet\dnx\src\Microsoft.Framework.Runtime\DefaultHost.cs:line 116
at Microsoft.Framework.Runtime.DefaultHost..ctor(DefaultHostOptions options, IServiceProvider hostServices) in C:\Asp
Net\dnx\src\Microsoft.Framework.Runtime\DefaultHost.cs:line 37
at Microsoft.Framework.ApplicationHost.Program.Main(String[] args) in C:\AspNet\dnx\src\Microsoft.Framework.Applicati
onHost\Program.cs:line 42
(6) Add a global.json to root of Home repo with the following contents:
{
"projects": ["samples"]
}
Then dnx ./ run works.
@davidfowl , looks like a project dependency resolver bug? Need to investigate why there is difference between using . and ./ as appbase.
The text was updated successfully, but these errors were encountered:
ChengTian
changed the title
Appbase passed to dnx cannot have trailing slash if there is not global.json
Appbase passed to dnx cannot have trailing slash if there is no global.json
Mar 24, 2015
Repro steps:
(1) git clone
Home
repo(2) cd
Home/samples/ConsoleApp
(3)
dnu restore
(4)
dnx . run
, works well(5)
dnx ./ run
, fails with the following exception:(6) Add a
global.json
to root ofHome
repo with the following contents:Then
dnx ./ run
works.@davidfowl , looks like a project dependency resolver bug? Need to investigate why there is difference between using
.
and./
as appbase.The text was updated successfully, but these errors were encountered: