简体   繁体   English

ClickOnce 发布错误。 无法复制 dll.deploy 文件

[英]ClickOnce publish error. Failed to copy dll.deploy files

I just finished a WPF project in C# , it worked great until couple of minutes ago.我刚刚用 C# 完成了一个 WPF 项目,直到几分钟前它都运行良好。 Then I deleted some files that I don't need anymore ,like Page1.xaml and Page1.xaml.cs .然后我删除了一些我不再需要的文件,比如 Page1.xaml 和 Page1.xaml.cs 。 Then I tried to publish the project with ClickOnce, and I got 129 errors...然后我尝试用 ClickOnce 发布项目,我收到了 129 个错误...

" Error Failed to copy file 'C:\\Users\\xxxxx\\source\\repos\\OATradex\\bin\\Release\\app.publish\\Application Files\\OATrade_1_0_0_15\\System.Xml.XPath.dll.deploy' to 'C:/Users/xxxxxx/Downloads/OANDA/release/Application Files/OATrade_1_0_0_15/System.Xml.XPath.dll.deploy'. Unable to add 'Application Files/OATrade_1_0_0_15/System.Xml.XPath.dll.deploy' to the Web site. Unable to add file 'Application Files\\OATrade_1_0_0_15\\System.Xml.XPath.dll.deploy'. The system cannot find the path specified. OATrade 1 " 错误无法将文件 'C:\\Users\\xxxxx\\source\\repos\\OATradex\\bin\\Release\\app.publish\\Application Files\\OATrade_1_0_0_15\\System.Xml.XPath.dll.deploy' 复制到 'C:/Users/ xxxxxx/Downloads/OANDA/release/Application Files/OATrade_1_0_0_15/System.Xml.XPath.dll.deploy'。无法将“Application Files/OATrade_1_0_0_15/System.Xml.XPath.dll.deploy”添加到网站。无法添加添加文件'Application Files\\OATrade_1_0_0_15\\System.Xml.XPath.dll.deploy'。系统找不到指定的路径。OATrade 1
"

Can anybody help me please.任何人都可以请帮助我。 I am completely lost, I do not know what to do!!!我完全迷失了,我不知道该怎么办!!! I tried to check uncheck "Just My Code" deleted bin folder nothing helps.我试图取消选中“仅我的代码”删除的 bin 文件夹没有任何帮助。

Thank you.谢谢你。

以管理员身份运行 Visual Studio 解决了这个问题。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM