gpt4 book ai didi

asp.net-core - Asp.Net Core 解决方案的 VSTS 构建失败,并出现错误 MSB3554 : Cannot write to the output file

转载 作者:行者123 更新时间:2023-12-02 04:27:17 30 4
gpt4 key购买 nike

我们有一个 Asp.Net Core 1.1 项目,刚刚迁移到 VSTS,当我们创建一个构建定义时失败了

在此处输入代码C:\Program Files\dotnet\sdk\1.0.0\Microsoft.Common.CurrentVersion.targets(2865,5):错误 MSB3554:无法写入输出文件“C:\a\1\s\OurProject\obj\debug\netcoreapp1.1\OurProject.SomeResourceFile.fi-FI.resources”。需要正数。 [C:\a\1\s\OurProject\OurProject.csproj]

C:\Program Files\dotnet\sdk\1.0.0\Microsoft.Common.CurrentVersion.targets(2865,5):错误 MSB3554:参数名称:bufferSize [C:\a\1\s\OurProject\OurProject.csproj]

我在我的计算机上的 Visual Studio 2017 中构建得很好,并且在 vsts build设置中代理队列是 VS2017。

最佳答案

我遇到了同样的问题,因为资源文件为空,导致 .NET Core CLI 抛出错误。问题在这里:microsoft/msbuild#1661 .

解决方法是手动编辑 *.resx 文件并向该文件添加一些数据。这是来自 @sharwell 的 PR in Roslyn 的片段:

<data name="EmptyResource" xml:space="preserve">
<value>Remove this value when another is added.</value>
<comment>https://github.com/Microsoft/msbuild/issues/1661</comment>
</data>

关于asp.net-core - Asp.Net Core 解决方案的 VSTS 构建失败,并出现错误 MSB3554 : Cannot write to the output file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43233651/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com