0

I'm running msbuild on my .sln file and I'm suddenly getting

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2291,5):
error SB3554: Cannot write to the output file "C:\Work\product\src\component\
obj\Debug\product.resources". Could not find a part of the path 'C:\Work\
product\src\component\obj\Debug\component.Resources.resources'. [C:\Work\
product\src\component\component.vbproj]

No amount of deleting binaries and retrying helps

4

2 回答 2

1

错误状态product.resources失败,因为找不到component.Resources.resources 。

  1. 确保您的项目构建顺序正确,因为资源文件是在编译时构建的,并且找不到继续所需的资源文件。
  2. 您可能会尝试的另一个解决方案是删除并重新添加项目中的任何 .resx 文件。

此外,我将创建一个包含资源的共享项目,以便更轻松地管理您的资源。这是一个例子,虽然有点过时。

如何在一个解决方案中的项目之间使用共享资源文件?

MSDOCS-在 .NET 应用程序中打包和部署资源

于 2013-01-05T00:13:07.340 回答
1

有类似的间歇性问题,将这些选项添加到复制命令

重试=“10”重试延迟毫秒=“5000”

它似乎成功了

于 2014-12-03T16:33:06.837 回答