Giter Club home page Giter Club logo

dotnet-arm's People

Contributors

qmfrederik avatar stevedesmond-ca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

huangzhendi

dotnet-arm's Issues

Crafting project.json question

Hi! We are using your repo as inspiration creating a Yocto build of dotnet-cli !

However when trying out dotnet.exe, the system complained about the project targeting another framework:

The specified framework 'Microsoft.NETCore.App', version '2.0.0-beta-001581-00'
was not found.

  • Check application dependencies and target a framework version installed at:
    C:\Program Files\dotnet\shared\Microsoft.NETCore.App\
  • The following versions are installed:
    1.0.1
    1.1.0
  • Alternatively, install the framework version '2.0.0-beta-001581-00'.

So, I created a new, minimal project "dotnet new -t web" and tried running it on my pc using daily build on Windows x64. The results were the same.
Changing project json to:

"dependencies": {
"Microsoft.NETCore.App": {
"version": "2.0.0-beta-001581-00",
"type": "platform"
},

...

"frameworks": {
"netcoreapp2.0": {
"imports": [
"dotnet5.6",
"dnxcore50",
"portable-net45+win8"
]
}

and adding a NuGet.config with the following feed:

"https://dotnet.myget.org/F/dotnet-core/api/v3/index.json"

...resulted in me being able to start the application; however an exception occurs immediately:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl
y 'System.Threading.Overlapped, Version=4.1.0.0, Culture=neutral, PublicKeyToken
=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match th
e assembly reference. (Exception from HRESULT: 0x80131040)

Using IL-spy I manage to find and introspect this assembly

// C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.0-beta-001581-00\System.Threading.Overlapped.dll
// System.Threading.Overlapped, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

// Global type:
// Architecture: x64
// This assembly contains unmanaged code.
// Runtime: .NET 4.0

Do you have any suggestions that can point me in the right direction I would be grateful!

Complete project,.json:
{
"userSecretsId": "aspnet-WebApplication-0799fe3e-6eaf-4c5f-b40e-7c6bfd5dfa9a",

"dependencies": {
"Microsoft.NETCore.App": {
"version": "2.0.0-beta-001581-00",
"type": "platform"
},
"Microsoft.AspNetCore.Authentication.Cookies": "1.0.0",
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
},
"Microsoft.AspNetCore.Routing": "1.0.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
"Microsoft.EntityFrameworkCore.Sqlite": "1.0.1",
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
},
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Configuration.UserSecrets": "1.0.0",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.Extensions.Logging.Debug": "1.0.0",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
"version": "1.0.0-preview2-update1",
"type": "build"
},
"Microsoft.VisualStudio.Web.CodeGenerators.Mvc": {
"version": "1.0.0-preview2-update1",
"type": "build"
}
},

"tools": {
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview2-final",
"imports": "portable-net45+win8+dnxcore50"
},
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-preview2-final",
"imports": "portable-net45+win8+dnxcore50"
},
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.0.0-preview2-final",
"imports": [
"portable-net45+win8+dnxcore50",
"portable-net45+win8"
]
},
"Microsoft.Extensions.SecretManager.Tools": {
"version": "1.0.0-preview2-final",
"imports": "portable-net45+win8+dnxcore50"
},
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
"version": "1.0.0-preview2-final",
"imports": [
"portable-net45+win8+dnxcore50",
"portable-net45+win8"
]
}
},

"frameworks": {
"netcoreapp2.0": {
"imports": [
"dotnet5.6",
"dnxcore50",
"portable-net45+win8"
]
}
},

"buildOptions": {
"debugType": "portable",
"emitEntryPoint": true,
"preserveCompilationContext": true
},

"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},

"publishOptions": {
"include": [
"wwwroot",
"**/*.cshtml",
"appsettings.json",
"web.config"
]
},

"scripts": {
"prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
},

"tooling": {
"defaultNamespace": "WebApplication"
}
}

No longer builds

build-coreclr produces:
grep: ../core-setup/pkg/projects/Microsoft.NETCore.App/project.json.template: No such file or directory

build-roslyn produces:
make: *** No role to make target 'all'. Stop.

build-cli produces:
./run-build.sh: line 109: syntax error near unexpected token `)'

libuv version?

Hi! Nice stuff, helping me a bit on the way on something similar.

However I don't see how your libuv version/checkout/build affects the resulting corehost distribution in anyway... ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.