-
-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error publishing a single executable #483
Comments
I can confirm, I have just encountered this problem
|
Well, the gallery and demo projects doesn't start in the development branch either |
The problem was in this line, the
The |
Any suggestions on how to detect that the same executable is the directory? (I tried to make it accept null values and the problem persists) By the way, compiling gallery and demo (unmodified) in normal mode (with its libraries) works perfectly. |
I fixed this issue by setting the setting the |
Fixed app published as singleFile not running (issue #483)
Wow, the solution worked. Sorry for the delay (and I hope this reply is not too long).
No, I created a new project from Visual Studio itself (the plug-in installed in the IDE allows you to create projects with wpf integrated by default. current version 2.0.3).
Thanks :0By the way, What's the difference between AppContext.BaseDirectory and Assembly.GetEntryAssembly() I really don't feel comfortable touching other people's code, thanks for adding the fix to Wpf.Ui.Demo.Mvvm/App.xaml.cs, but the error continues in these other files (The first 3 are related to the VS plugin): |
According to Microsoft :
About other files, the gallery code is already changed in the |
Describe the bug
When publishing an application with the "produce a single file" publishing setting enabled, the published application (.exe) doesn't open.
The event viewer shows the following error
When publishing as a single file, I get several errors related to variables that do not accept NULL values
My assumption is, that being a single file, the system is not prepared to run as a single file, as it will always try to read the wpf.ui libraries externally (.dll).
To Reproduce
PS: My language is Spanish
PS 2: %userprofile% is actually C:\Users\ [my user]
Expected behavior
Program to run (open normally)
Screenshots
No response
OS version
OS: Win 11 Ver. 0.0.25267 build 25267 (insider)
.NET version
Microsoft Visual Studio Community 2022
Versión 17.4.3
VisualStudio.17.Release/17.4.3+33205.214
Microsoft .NET Framework
Versión 4.8.09032
Versión instalada: Community
Visual C++ 2022 00482-90000-00000-AA468
Adaptador de prueba para Boost.Test 1.0
ADL Tools Service Provider 1.0
Administrador de paquetes NuGet 6.4.0
ASA Service Provider 1.0
ASP.NET and Web Tools 17.4.326.54890ASP.NET and Web Tools
Azure Data Lake Tools for Visual Studio 2.6.5000.0
Azure Functions and Web Jobs Tools 17.4.326.54890
Azure Stream Analytics Tools for Visual Studio 2.6.5000.0
Cookiecutter 17.0.22263.6
Depuración de volcados de memoria básicos de Linux 1.0.9.33020
Dotfuscator Community Edition 6.5.0+76d4669002
Extensibility Message Bus 1.4.1 (main@2ee106a)
Extensión de VSPackage 1.0
Herramientas comunes de Windows Azure 1.10
Herramientas de Azure App Service v3.0.0 17.4.326.54890
Herramientas de C# 4.4.0-6.22580.4+d7a61210a88b584ca0827585ec6e871c6b1c5a14
Herramientas de Node.js 1.5.40817.1 Commit Hash:66443775f9f3b1d8f8fee47af5002828b346688d
Herramientas de TypeScript 17.0.10921.2001
Herramientas de Visual Basic 4.4.0-6.22580.4+d7a61210a88b584ca0827585ec6e871c6b1c5a14
Herramientas de Visual F# 17.4.0-beta.22512.4+525d5109e389341bb90b144c24e2ad1ceec91e7b
Microsoft Azure Hive Query Language Service 2.6.5000.0
Microsoft Azure Stream Analytics Language Service 2.6.5000.0
Microsoft JVM Debugger 1.0
Mono Debugging for Visual Studio 17.4.19 (8c0a575)
Python con Pylance 17.0.22263.6
Python: compatibilidad con proyectos de VC 17.0.21344.1
Python: compatibilidad de Django 17.0.22263.6
Python: compatibilidad de la generación de perfiles 17.0.22263.6
Razor (ASP.NET Core) 17.0.0.2246202+61cc048d36a3fc9246d2f04625988b19a18ab8f0
SQL Server Data Tools 17.0.62207.28050
Test Adapter para Google Test 1.0
ToolWindowHostedEditor 1.0
Visual C++ for Linux Development 1.0.9.33020
Visual Studio IntelliCode 2.2
Visual Studio Tools para Unity 17.4.3.0
VisualStudio.DeviceLog 1.0
VisualStudio.Mac 1.0
Xamarin 17.4.0.312 (d17-4@be7e8d1)
Xamarin Designer 17.4.0.138 (remotes/origin/d17-4@d36bba3cc9)
Xamarin Templates 17.4.2 (c457c97)
Xamarin.Android SDK 13.1.0.1 (d17-4/13ba222)
Mono: a96bde9
Java.Interop: xamarin/java.interop/d17-4@fcc33ce2
SQLite: xamarin/sqlite@23e1ae7
Xamarin.Android Tools: xamarin/xamarin-android-tools/main@0be567a
Xamarin.iOS and Xamarin.Mac SDK 16.1.1.27 (933c6c2c9)
WPF-UI NuGet version
2.0.3
Additional context
No response
The text was updated successfully, but these errors were encountered: