简体   繁体   English

如何覆盖dotnet发布的目标文件夹

[英]How to overwrite destination folder of dotnet publish

I am trying to run a dotnet publish -c Release -o [destination-folder-name] and if the destination folder exists overwrite it.我正在尝试运行dotnet publish -c Release -o [destination-folder-name] ,如果目标文件夹存在,请覆盖它。 Is that possible , is it built in the dotnet command flags?这可能吗,它是否内置在dotnet命令标志中?

在执行命令之前执行 IISreset 将解决您的挑战。

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

相关问题 dotnet publish 不会为 Azure Functions 创建 bin 文件夹 - dotnet publish doesn't create a bin folder for Azure Functions 如何使用 jenkins 管道发布 dotnet 核心测试? - How to publish dotnet core tests with jenkins pipeline? 如何使用Private Linux Hosted Build Agent从VSTS进行Dotnet发布? - How to Dotnet Publish from VSTS with Private Linux Hosted Build Agent? 如何使用 dotnet 自定义模板重命名文件夹? - How to rename a folder with dotnet custom templates? 如何通过 do.net publish 将预处理器指令传递给 MSBuild - How to pass preprocessor directive to MSBuild via dotnet publish 我们如何在 .netlify 中发布 do.net 核心应用程序? - how can we publish a dotnet core app in netlify? 使 dotnet 发布使用来自 bin 文件夹而不是来自 nuget 缓存的依赖项 - Make dotnet publish use dependencies from bin folder and not from nuget cache 使用 `dotnet build` 或 `dotnet publish` 时如何为引用的项目指定构建配置? - How to specify build configuration for referenced projects when using `dotnet build` or `dotnet publish`? 使用 dotnet publish 发布多个 web.configs - Publish multiple web.configs with dotnet publish dotnet 在代理 407 后面发布 - dotnet publish behind proxy 407
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM