question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SingleFile Publish Win10-x64 doesnt run on newer windows version than the one it was build on

See original GitHub issue

Steps to reproduce

publish a dotnet core 3.0 console app on windows 10.0.14393. Try running it on a Windows PC 10 x64 1803 (17134.1069).

Expected behavior

The Software executes.

Actual behavior

Not starting but outputting this message (German System Language):

Die Version von ITVT.Tool.exe ist mit der ausgeführten Windows-Version nicht kompatibel. Überprüfen Sie die Systeminformationen des Computers, und wenden Sie sich anschließend an den Herausgeber der Software.

Rough translation: This version of the ITVT.Tool.exe is incompatible with the current windows-version. Check the systeminformation of the computer and then talk to the creator of the software.

Environment data

BuildAgent OS Version: Windows_NT 10.0.14393 On the build agent the dotnet core 3.0.100 sdk is installed. User Win 10 x64 1803 (17134.1069) here the dotnet core 3.0.100 sdk ist not installed. Also no other dotnet sdk/runtime.

PublishProfile:

 <PropertyGroup>
     <PublishProtocol>FileSystem</PublishProtocol>
     <Configuration>Release</Configuration>
     <Platform>Any CPU</Platform>
     <TargetFramework>netcoreapp3.0</TargetFramework>
     <PublishDir>bin\Release\netcoreapp3.0\publish\</PublishDir>
     <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
     <SelfContained>true</SelfContained>
     <PublishSingleFile>true</PublishSingleFile>
     <PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
dasMullicommented, Oct 15, 2019

Quickly created a Win10 Pro 1803 VM in azure and uploaded a pre-built file (dotnet new console; dotnet publish -c Release -r win10-x64 -p:PublishSingleFile=True -p:PublishTrimmed=True) does work. No software installed on top of the azure image: image Also if I try to do it with a publish profile…

0reactions
TclasenITVTcommented, Oct 16, 2019

Wow, The Problem was with Git LFS and not with DotNetCore. Closing this sry for the trouble

Read more comments on GitHub >

github_iconTop Results From Across the Web

Self-Contained Single-File does not produce a single file
I have set it up to publish as a self-contained single-file. ... The EXE file will not run without those DLLs being present....
Read more >
roslyn - .NET 5 not compiling to single file executables
2 Answers. For . NET 5, to get a single runnable executable file when you publish your project, the important properties are: PublishSingleFile....
Read more >
How to publish .NET console app to single independent . ...
NET console app into a single, independent .exe that contains all the dependencies it needs so I can share it and it runs...
Read more >
Too many dlls when publishing dotnet
I wanted to give it to a person on windows, so I published it using the following command: dotnet publish -c Release -r...
Read more >
Untitled
.net publish single project A .NET Core daemon application calling a custom Web API with … dotnet publish command - .NET CLI Microsoft...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found