weidazhao / Hosting

Hosting prototype
170 stars 35 forks source link

Building in VS2015 Update 2 #11

Closed undecided2013 closed 8 years ago

undecided2013 commented 8 years ago

I've ran into 2 issues building this in VS2015 Update 2. First, the projects would not load. The xproj was targeting dotnet instead of dnx. Changed to DNX and the projects loaded. Now I am getting compile errors across the board. Not sure what is wrong. Errors like this: "Error NU1002 The dependency System.Text.Encodings.Web 4.0.0-rc2-24008 in project Counter does not support framework .NETFramework,Version=v4.5.2. Counter C:\development\Hosting-dotnetcli\Counter\project.json"

I have installed the latest DNX from here: http://docs.asp.net/en/latest/getting-started/installing-on-windows.html

hostingbuildproblems

weidazhao commented 8 years ago

Yes, in order to make it compile and run with DNX from within VS, I believe the code would require some change. The purpose of the DNX branch is simply for making the solution openable in VS 2015 Update 2. For now, please follow the steps in README.MD to build and run the sample. There is a script for building the code from command line, as well as PowerShell script for deploying the application.

undecided2013 commented 8 years ago

That worked, thanks