-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
@Tealons, It will cover your contributions to all .NET Foundation-managed open source projects. |
@Tealons, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
samples/RaspberryPiInstructions.md
Outdated
@@ -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.
This comment was marked as spam.
Sorry, something went wrong.
@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 |
@vijayrkn @mlorbetske Do you guys own the view compilation tool? The error above is happening when we try to run that tool during publish. |
+owners of razor view compilation tool |
@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 |
Currently all webprojects have this set to true by default. Should we change this? |
cc @DamianEdwards. I think we were ok shipping it this way for 2.0. |
Does that mean we cannot publish asp.net standalone apps (by default) for linux+arm? Is that the scenario we are discussing here? |
@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. |
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.
This comment was marked as spam.
Sorry, something went wrong.
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. |
No description provided.