Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Creating a core 1.0.0 app

$
0
0

I am trying to get an empty Core app running. I created an empty core app from VS 2015. Made no modifications. when I build, I get and error restoring package. This is from the output window.  Am I missing an install? what am I missing here?

Version conflict detected for System.Net.Http.
Test (>= 1.0.0) -> Microsoft.NETCore.App (>= 1.0.0) -> System.Net.Requests (>= 4.0.11) -> System.Net.Http (>= 4.1.0)
Test (>= 1.0.0) -> Microsoft.NETCore.App (>= 1.0.0) -> NETStandard.Library (>= 1.6.0) -> System.Net.Http (>= 4.1.0).
Project System.Net.Http is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project System.Net.Http supports: net451 (.NETFramework,Version=v4.5.1)
One or more projects are incompatible with .NETCoreApp,Version=v1.0.

This is my project.json if that helps

{

"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0",
"type": "platform"
},
"Microsoft.AspNetCore.Diagnostics": "1.0.0",

"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.Extensions.Logging.Console": "1.0.0"
},

"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
},

"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"portable-net45+win8"
]
}
},

"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},

"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

"publishOptions": {
"include": [
"wwwroot",
"web.config"
]
},

"scripts": {
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
}


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>