简体   繁体   English

如何从Visual Studio中的项目解决方案中删除其他构建文件

[英]How to Delete Additional build files from the Project Solution in visual studio

How to delete additional build files from the project solution in Visual Studio? 如何从Visual Studio的项目解决方案中删除additional build files

I am forced to clear this files everytime manually when I want to give my executable program to anyone 当我想将可执行程序提供给任何人时,我每次必须手动清除此文件

我的汇编

Any solution? 有什么办法吗?

I am using C# and C++ . 我正在使用C#C++

You can't. 你不能

These files are generated when the .exe is generated and you can't force VS to not make them. 这些文件是在生成.exe生成的,您不能强迫VS不要make它们。

Upload your build to github . 将您的构建上传到github

Give your friend the link to the build repository. 给您的朋友指向构建资源库的链接。

Make your friend delete the files when they download the repo. 让您的朋友在下载存储库时删除文件。

To answer your question : No, there is no way to prevent VS from automatically generating these build files. 要回答您的问题 :不,没有办法阻止VS自动生成这些生成文件。 But there are ways to circumvent you from having to do the work, as I've stated above. 但是,如上所述,有很多方法可以避免您必须要做的工作。

This is simple 这很简单

  1. Right click at the project 右键点击项目 在此处输入图片说明

  2. Go to build events. 去建立事件。 From there you can play with many things. 从那里您可以玩很多事情。 在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从NANT构建文件创建Visual Studio解决方案和项目文件 - How to create Visual Studio solution and project files from NANT build file 如何从visual studio 2013的输出窗口中显示“排除未选择构建此解决方案配置的项目”消息 - How to exclude “Project not selected to build for this solution configuration” message from displaying in output window in visual studio 2013 如何从C#项目的构建事件中访问Visual Studio解决方案级平台? - How can you access the Visual Studio solution level platform from a C# project's build event? 我如何处理 Git 中的 Visual Studio 解决方案和项目文件? - How I deal with Visual Studio solution and project files in Git? 生成Visual Studio解决方案所需的文件 - Files that are needed to build a Visual Studio solution 以编程方式升级Visual Studio解决方案和项目文件 - Upgrade Visual Studio solution and project files programmatically 通过构建脚本更新Visual Studio项目中的文件 - Update files in visual studio project from build script 如何从 Visual Studio Package 项目中获取当前的解决方案名称? - How to get the current solution name from a Visual Studio Package project? 在 Visual Studio Online Build Definition 中从具有多个 Web 项目的解决方案构建一个 Web 项目 - Build one web project from a Solution with multiple web projects in Visual Studio Online Build Definition 从代码构建visual studio解决方案 - Build visual studio solution from code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM