Comments (9)
Let me take a quick look at these builds on Windows and see what I can turn up.
from installer.
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.
Fixed in 009736! 👍
from installer.
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.
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.
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.
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.
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.
Fixed in 009736! 👍
how we can fix, please?
from installer.
Related Issues (20)
- Upgrade the SDK after creating and running projects, the SDK was installed SxS not upgraded. HOT 4
- .NET 8.0 aarch64 not available on Fedora 39 nor Ubuntu 22.04 LTS HOT 4
- Wrong VS version on .NET 8.0.100 SDK installer HOT 1
- Add verbose option to build.sh (to apply to all parts of the dotnet-sdk src (ie fsharp,runtime,etc))
- Build Linux musl releases with -static-libgcc and -static-libstdc++ HOT 4
- Investigate reports of .NET SDKs not working after install on macOS HOT 1
- [NETSDKE2E] On Debian11 only, SDK dotnet-sdk-9.0.100-alpha.1.24070.3.deb installing failed with error: archive 'aspnetcore-runtime/aspnetcore-targeting-pack-9.0.0-alpha.1.24068.16-x64.deb' uses unknown compression for member 'control.tar.zst' ling faile HOT 9
- Installer unable to build v7.0.406/v6.0.419: missing NuGet packages HOT 1
- dotnet-install.sh fails with "The requested URL returned error: 404 Not Found" HOT 2
- Inclusion of freebsd RIDs causes restore error on vertical builds
- [NETSDKE2E]Some files are not identical in .exe installer and in .zip package for NET 9.0.100-preview.2.24123.5 SDK . HOT 1
- Install dotnet sdk-9.0.100-previews.3.244154.10-osx-x64 and update Microsoft AspNetCore Authentication JwtBearer to 9.0.100-preview.3.24154.12, Microsoft Extensions DependencyModel to 9.0.100-preview.3.24154.10, with the following error HOT 1
- Potential off-by-one in versions for runtime packs/app hosts/etc for .NET 7 vs .NET 6? HOT 3
- Why hasn't the Preview 4 compiled installation package been released yet? HOT 1
- Failed to install windowsdesktop-runtime-9.0.0-preview4 with error "0x80070001 - Incorrect function" HOT 5
- Small typo in Dotnet 8.300 SDK on German Windows showing 2 instead of "
- How to integrate dotnet/installer into SDK and download the latest unpublished preview version, such as SDK release 9.0.100-preview6.xxxx for macOS's pkg file?
- Can't install .NET6 runtime on Ubuntu 22.04 HOT 5
- Matching SHA/SHA512 file downloads for 'patch-agnostic ... runtime downloads' HOT 4
- [8.0] Installer CI failing to Publish Using Darc HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from installer.