SingleFile Publish Win10-x64 doesnt run on newer windows version than the one it was build on
See original GitHub issueSteps 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:
- Created 4 years ago
- Comments:15 (9 by maintainers)
Top GitHub Comments
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: Also if I try to do it with a publish profile…Wow, The Problem was with Git LFS and not with DotNetCore. Closing this sry for the trouble