VSTS Build for Asp.Net Core solution with error MSB3554: cannot write to output file

We have an Asp.Net Core 1.1 project that we just moved to VSTS, and when we created an assembly definition that fails with

enter code hereC:\Program Files\dotnet\sdk\1.0.0\Microsoft.Common.CurrentVersion.targets(2865,5): error MSB3554: Cannot write to the output file "C:\a\1\s\OurProject\obj\debug\netcoreapp1.1\OurProject.SomeResourceFile.fi-FI.resources". Positive number required. [C:\a\1\s\OurProject\OurProject.csproj]

C:\Program Files\dotnet\sdk\1.0.0\Microsoft.Common.CurrentVersion.targets(2865,5): error MSB3554: Parameter name: bufferSize [C:\a\1\s\OurProject\OurProject.csproj]

I build fine in Visual Studio 2017 on my machine, and in the vsts build settings the agent queue is VS2017.

+5
source share
1 answer

I ran into the same problem as the resource file was empty, which caused the .NET Core CLI to throw an error. The problem is here: microsoft / msbuild # 1661 .

The workaround is to manually edit the * .resx file and add some data to the file. Here is a snippet from @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> 
+6
source

Source: https://habr.com/ru/post/1266367/


All Articles