Things used in this project

Code

Setup unstable aspnet feedPowershell
This will configure the $env variable to access the unstable feed. We need this configured to download the beta versions of dnx
$env:DNX_UNSTABLE_FEED = "https://www.myget.org/F/aspnetmaster"
Download and Install DXN RuntimesPowershell
Download and Install DXN Runtimes
dnvm upgrade

dnvm update-self

dnvm install 1.0.0-beta7 -r coreclr -arch ARM -u

dnvm install 1.0.0-beta7 -r coreclr -arch x86 -u

dnvm install 1.0.0-beta7 -r coreclr -arch x64 -u  

dnvm install 1.0.0-beta7 -r clr -arch x86 -u  

dnvm install 1.0.0-beta7 -r clr -arch x64 -u  
List runtimesPowershell
List the runtimes installed in the development machine
dnvm list
yoPowershell
Install yo and generator-aspnet using npm
npm install -g yo generator-aspnet
yo aspnet

dnvm use -v 1.0.0-beta7
dnu restore
dnx web  
PiControllerC#
ASP.NET MVC Controller upon access retrieves the process usage of the pi
 namespace DnxPi.Controllers
{
    public class PiController : Controller
    {
	public IActionResult Index()
        {
            return View();
        }
    }
}  
dnu publishPowershell
Publish the application for arm dnx pi
dnu publish --out C:\publish\DnxPi --no-source --runtime dnx-coreclr-win-arm.1.0.0-beta7 
Open port 5000 on PiPowershell
Enter the PsSession and open the port 5000 on the pi
Enter-PsSession -ComputerName minwinpc -Credential minwinpc\Administrator
Enter your password on propmt

netsh advfirewall firewall add rule name="DNX Web Server port" dir=in action=allow protocol=TCP localport=5000 
DnxPi
ASP.NET 5 application

Credits

8d828a06eb7f3deb877ba2a3911826cd
Syed Sanoor
3 projects • 60 followers
Developer
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog