Git Product home page Git Product logo

Comments (9)

peterhuene avatar peterhuene commented on August 23, 2024 1

Let me take a quick look at these builds on Windows and see what I can turn up.

from installer.

peterhuene avatar peterhuene commented on August 23, 2024 1

Looks like Microsoft.DesktopUI.App is out of date and is referencing the older Microsoft.NETCore.App.

I'm going to dupe this to #134 and follow-up with the issue there. Thanks for reporting this!

from installer.

Lakritzator avatar Lakritzator commented on August 23, 2024 1

Fixed in 009736! 👍

from installer.

Lakritzator avatar Lakritzator commented on August 23, 2024

I also tested with 3.0.100-preview-009730, with this I have the same issue.

It must be a UI thing..

dotnet new WinForms
dotnet run

-> prompt comes back, echo %errorlevel% gives -2147450730 (0x80008096 )

This works fine:

dotnet new console
dotnet run

-> Hello World!

I cannot imagine this problem is a general thing, so let me know what I can do to give any more information.

from installer.

peterhuene avatar peterhuene commented on August 23, 2024

Hi @Lakritzator,

To investigate this, can you try setting OutputType in the project file to Exe instead of WinExe and see if there's any diagnostics printed via dotnet run? We have an issue tracking the fact that apphosts set to "GUI" subsystem are not printing any needed error information when they fail to start (I can't find it, but I recall @nguerrera creating it...).

I suspect it can't find the runtime or a dependency to start, but it would be helpful to know which one :) We can move this issue to the appropriate repo once we have additional information, if necessary.

from installer.

Lakritzator avatar Lakritzator commented on August 23, 2024

Thanks for the quick hint, that should actually help us!

Changed WinExe to Exe, dotnet run now gives me the following output:

It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.0.0-preview1-26929-01' was not found.
  - Check application dependencies and target a framework version installed at:
      C:\Program Files\dotnet
  - Installing .NET Core prerequisites might help resolve this problem:
      https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The .NET Core framework and SDK can be installed from:
      https://aka.ms/dotnet-download
  - The following versions are installed:
      2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.5 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      3.0.0-preview-27104-01 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

This actually looks identical to #134

from installer.

Lakritzator avatar Lakritzator commented on August 23, 2024

Now that I read the details and the information in #134, it probably works when someone doesn't delete all the previous versions and 3.0.0-preview1-26929-01 would still be available.

To test this, as 009722 worked, I installed this without removing the 009730,.
And voila a workaround, dotnet run works, now I can at least continue work.

So I have in my dotnet --info:

.NET Core SDKs installed:
  2.1.202 [C:\Program Files\dotnet\sdk]
  2.1.403 [C:\Program Files\dotnet\sdk]
  2.1.500-preview-009335 [C:\Program Files\dotnet\sdk]
  3.0.100-preview-009722[C:\Program Files\dotnet\sdk]
  3.0.100-preview-009730[C:\Program Files\dotnet\sdk]

from installer.

Lakritzator avatar Lakritzator commented on August 23, 2024

A much better workaround seems to be:
Modify the file Microsoft.DesktopUI.App.runtimeconfig.json in the directory: %PROGRAMFILES%\dotnet\shared\Microsoft.DesktopUI.App\3.0.0-alpha-27030-3

This should contain the version from the 3.0 directory in %PROGRAMFILES%\dotnet\shared\Microsoft.NETCore.App, in this case for me this is 3.0.0-preview-27104-01.

The resulting file looks like this:

{
  "runtimeOptions": {
    "tfm": "netcoreapp3.0",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "3.0.0-preview-27104-01"
    }
  }
}

from installer.

MIANSAQLAIN237 avatar MIANSAQLAIN237 commented on August 23, 2024

Fixed in 009736! 👍

how we can fix, please?

from installer.

Related Issues (20)

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.