ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Using Awesome with ASP.NET MVC Core on Linux?
Title:
B
I
{code}
?
Greetings! *Can I use Awesome with ASP.NET MVC Core on Linux?* I have othervise functional application. I downloaded trial from: _aspnetawesome.com/Download/MvcTrial_ I tried to run the following command from my project's directory: mis@slobodnjak2:/lager/projekti/SportsStore$ dotnet add package /home/mis/preuzimanja/AwesomeMvcTrial.5.0/bin/Core/netstandard1.6/Omu.Awem.dll Result is: Microsoft (R) Build Engine version 15.1.548.43366 Copyright (C) Microsoft Corporation. All rights reserved. Writing /tmp/tmpf7WwYb.tmp info : Adding PackageReference for package '/home/mis/preuzimanja/AwesomeMvcTrial.5.0/bin/Core/netstandard1.6/Omu.Awem.dll' into project '/lager/projekti/SportsStore/SportsStore.csproj'. log : Restoring packages for /lager/projekti/SportsStore/SportsStore.csproj... info : GET https://api.nuget.org/v3-flatcontainer//home/mis/preuzimanja/awesomemvctrial.5.0/bin/core/netstandard1.6/omu.awem.dll/index.json info : NotFound https://api.nuget.org/v3-flatcontainer//home/mis/preuzimanja/awesomemvctrial.5.0/bin/core/netstandard1.6/omu.awem.dll/index.json 734ms error: Unable to resolve '/home/mis/preuzimanja/AwesomeMvcTrial.5.0/bin/Core/netstandard1.6/Omu.Awem.dll' for '.NETCoreApp,Version=v1.1'. error: Package '/home/mis/preuzimanja/AwesomeMvcTrial.5.0/bin/Core/netstandard1.6/Omu.Awem.dll' is incompatible with 'all' frameworks in project '/lager/projekti/SportsStore/SportsStore.csproj'. The error is the same for both _net451_ and _Omu.AwesomeMvc.dll_ . Can it be done at all?
Save Changes
Cancel
user
asked at 05 May 2017
there's a .net core demo, you can download it here: http://aspnetawesome.com/Download/MinSetupCoreDemo if you download the [http://aspnetawesome.com/Download/MvcTrial trial zip], in the `Core` folder you'll find `AwesomeMvc.5.0.2.nupkg`, and `Awem.1.1.1.nupkg` which you need to add to your local package source before using them, or before running the core demo
at 06 May 2017
Omu
Answers
B
I
{code}
?
here's the .net core sample app .csproj created using VS2017 <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>netcoreapp1.1</TargetFramework> </PropertyGroup> <PropertyGroup> <PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback> </PropertyGroup> <ItemGroup> <PackageReference Include="Awem" Version="1.1.1" /> <PackageReference Include="AwesomeMvc" Version="5.0.1" /> <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" /> <PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" /> <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" /> <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" /> <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" /> </ItemGroup> <ItemGroup> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" /> </ItemGroup> </Project>
Save Changes
Cancel
Omu
answered at 07 May 2017
Greetings! Your new VS2017 version of MinSetupCore compiles and runs like a charm! Tomorrow or in the next few days I'll try some of the Awesome components in my web-app and let you know the results. For now, I just referenced them in my project and both nuget restoration and compiling are working. It seems to me that my problem was *not* Linux-specific after all. Thanks!
at 07 May 2017
user
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK