首页 > 编程语言 >.net 8 WPF发布程序只生成exe

.net 8 WPF发布程序只生成exe

时间:2024-05-29 11:32:46浏览次数:16  
标签:exe win x64 发布 net8.0 net true WPF

右击项目选择发布

配置发布信息

修改FolderProfile.pubxml文件内容



Release
Any CPU
bin\Release\net8.0-windows\publish\win-x64</PublishDir>
FileSystem
<_TargetId>Folder</_TargetId>
net8.0-windows
win-x64
true
false
true
true
<_SuppressWpfTrimError>true</_SuppressWpfTrimError>
partial
true

  1. 添加依赖项不显示依赖dll true
  2. 不显示WPF错误 <_SuppressWpfTrimError>true</_SuppressWpfTrimError>
    修改完成保存xml文件点击发布
    在发布文件夹下查看内容如下图:

    生成的pdb文件可删除

标签:exe,win,x64,发布,net8.0,net,true,WPF
From: https://www.cnblogs.com/Erikapex/p/18219866

相关文章

  • asp.net core 中hangfire面板的配置及使用
    Hangfire项目实践分享-Ecin-博客园(cnblogs.com) 1、定义校验授权类DyDashboardAuthorizationFilter///<summary>///Hangfire仪表盘配置授权///</summary>publicclassMyDashboardAuthorizationFilter:IDashboardAuthorizationFilter......
  • WPF Image ZoomIn ZoomOut pan
    <Windowx:Class="WpfApp120.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft......
  • WPF Path Geometry PathFigureCollection PathFigure PathFigure.Segments PolyQuadra
    <Windowx:Class="WpfApp118.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft......
  • 232转Profinet网关接扫码枪与PLC通讯在物流分拣线上的应用
    一、背景随着生活节奏的加快,网络购物需求非常大,从而造成快递站需要快速提取快递信息已达到快速出站的效果,这就用到了扫码枪,扫码枪作为采集设备,能够迅速准确地读取货物信息。并将数据传输至PLC控制器,实现自动化分拣的功能。二、现场情况采用霍尼韦尔的扫码枪,需要接到PLC上,进行......
  • 【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service
    在使用AppService服务部署业务应用,因为有些第三方的接口需要调用者携带TLS/SSL证书(X509Certificate),在官方文档中介绍了两种方式在代码中使用证书:1)直接使用证书文件路径加载证书2)从系统的证书库中通过指纹加载证书本文中,将分别通过代码来验证以上两种方式. 第一步:使用P......
  • WPF DrawingContext DrawingVisual OnRender()
    usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Data;usingSystem.Windows.Documents;usingSystem.Windows.Input;......
  • go net/http send req
      之前写到net/http客户端发送http请求时,会开启HTTP事务发送HTTP请求并等待远程的响应,经过下面一连串的调用,我们最终来到了标准库实现底层HTTP协议的结构体— net/http.Transport:net/http.Client.Donet/http.Client.donet/http.Client.sendnet/http.sendnet/htt......
  • WPF RingShape
    //csusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Data;usingSystem.Windows.Documents;usingSystem.Windows.I......
  • .NET周刊【5月第3期 2024-05-26】
    国内文章开源低代码框架ReZeroAPI正式版本发布,界面操作直接生成APIhttps://www.cnblogs.com/sunkaixuan/p/18201175ReZero是一款.NET6+的中间件,采用MIT许可证开源,目的是降低.NETCore开发的门槛。它提供界面操作生成API的功能,支持集成到各种.NET项目中。它还提供了一系列的......
  • YOLOv5改进 | 注意力机制 | 添加全局注意力机制 GcNet【附代码+小白必备】
    ......