Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVC application instructions for Raspberry Pi #680

Closed
wants to merge 4 commits into from
Closed

MVC application instructions for Raspberry Pi #680

wants to merge 4 commits into from

Conversation

Tealons
Copy link

@Tealons Tealons commented Jun 9, 2017

No description provided.

@dnfclas
Copy link

dnfclas commented Jun 9, 2017

@Tealons,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla2.dotnetfoundation.org.

It will cover your contributions to all .NET Foundation-managed open source projects.
Thanks,
.NET Foundation Pull Request Bot

@dnfclas
Copy link

dnfclas commented Jun 9, 2017

@Tealons, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, .NET Foundation Pull Request Bot

@@ -61,7 +61,7 @@ These steps have been tested on a RPi 2 and RPi 3 with Linux and Windows.
* Copy your app to the Raspberry Pi and execute run `helloworld.exe` to see `Hello World!` from .NET Core running on your Pi


### MVC Web Applications Instructions
## Getting a MVC application run on the Pi

* Create a new MVC app with the latest SDK and via the command line: dotnet new mvc on a windows laptop/pc
* Change the cproj file with the following:

This comment was marked as spam.

@richlander
Copy link
Member

@livarcocc I tried to follow these instructions. I was unable. Can you take a look?

C:\mvcapp>dotnet publish -c release -r linux-arm
Microsoft (R) Build Engine version 15.3.388.41745 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  mvcapp -> C:\mvcapp\bin\release\netcoreapp2.0\linux-arm\mvcapp.dll
  Could not find required library hostpolicy.dll in 2 probing paths:

    C:\Users\rich\.nuget\packages

    C:\Users\rich\.dotnet\NuGetFallbackFolder

  A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\mvcapp\bin\release\netcoreapp2.0\linux-arm\'.

C:\Users\rich\.dotnet\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.viewcompilation\2.0.0-preview2-final\build\netcoreapp2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets(27,5): error MSB3073: The command "dotnet exec --runtimeconfig "C:\mvcapp\bin\release\netcoreapp2.0\linux-arm\mvcapp.runtimeconfig.json" --depsfile "C:\mvcapp\bin\release\netcoreapp2.0\linux-arm\mvcapp.deps.json" "C:\Users\rich\.dotnet\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.viewcompilation\2.0.0-preview2-final\build\netcoreapp2.0\../../lib/netcoreapp2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.dll" @"obj\release\netcoreapp2.0\linux-arm\microsoft.aspnetcore.mvc.razor.viewcompilation.rsp"" exited with code -2147450749. [C:\mvcapp\mvcapp.csproj]

C:\mvcapp>dotnet --version
2.0.0-preview2-006497

@livarcocc
Copy link

@vijayrkn @mlorbetske Do you guys own the view compilation tool? The error above is happening when we try to run that tool during publish.

@vijayrkn
Copy link

vijayrkn commented Jul 5, 2017

+owners of razor view compilation tool
@NTaylorMullen @pranavkm

@pranavkm
Copy link
Contributor

pranavkm commented Jul 5, 2017

@livarcocc this is a known issue (aspnet/MvcPrecompilation#102) and isn't getting fixed until 2.1.0. Disabling the tool (like you did via MvcRazorCompileOnPublish is an acceptable option for now).

@vijayrkn
Copy link

vijayrkn commented Jul 5, 2017

@pranavkm
Copy link
Contributor

pranavkm commented Jul 5, 2017

cc @DamianEdwards. I think we were ok shipping it this way for 2.0.

@richlander
Copy link
Member

Does that mean we cannot publish asp.net standalone apps (by default) for linux+arm? Is that the scenario we are discussing here?

@pranavkm
Copy link
Contributor

pranavkm commented Jul 5, 2017

@richlander - there's an bug with the precompilation tool that prevents publishing for a target that's not the current OS. There are workarounds available for it (aspnet/MvcPrecompilation#102 (comment)) for it. The other alternative is to disable precompilation as part of publish which is what this PR is attempting to do.

@richlander
Copy link
Member

Got it. Is this issue written up anywhere (besides here)?

<TargetFramework>netcoreapp2.0</TargetFramework>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
<RuntimeIdentifiers>win-arm;linux-arm</RuntimeIdentifiers>
<UserSecretsId>aspnet-test6-1765DAD7-51F4-4572-8443-7F7BD9581173</UserSecretsId>

This comment was marked as spam.

@Petermarcu
Copy link
Member

I'm going to close this PR for now since its been dead since June. If someone wants to finish it, please go ahead and open a new PR.

@Petermarcu Petermarcu closed this Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants