OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.94k stars 942 forks source link

Sometimes Nuget debug build fails #2568

Closed mregen closed 3 months ago

mregen commented 6 months ago

Type of issue

Current Behavior

  Zipping directory "D:\a\1\s\Stack\Opc.Ua.Core\obj\zipnodeset2" to "D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip".
##[error]Stack\Opc.Ua.Core\Opc.Ua.Core.csproj(100,5): Error MSB3943: Failed to zip directory "D:\a\1\s\Stack\Opc.Ua.Core\obj\zipnodeset2" to file "D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip".  The process cannot access the file 'D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip' because it is being used by another process.
D:\a\1\s\Stack\Opc.Ua.Core\Opc.Ua.Core.csproj(100,5): error MSB3943: Failed to zip directory "D:\a\1\s\Stack\Opc.Ua.Core\obj\zipnodeset2" to file "D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip".  The process cannot access the file 'D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip' because it is being used by another process. [TargetFramework=net6.0]
  Zip Schema/Opc.Ua.NodeSet2.xml in obj\/zipnodeset2.
##[error]Stack\Opc.Ua.Core\Opc.Ua.Core.csproj(100,5): Error MSB3943: Failed to zip directory "D:\a\1\s\Stack\Opc.Ua.Core\obj\zipnodeset2" to file "D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip".  The process cannot access the file 'D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip' because it is being used by another process.
D:\a\1\s\Stack\Opc.Ua.Core\Opc.Ua.Core.csproj(100,5): error MSB3943: Failed to zip directory "D:\a\1\s\Stack\Opc.Ua.Core\obj\zipnodeset2" to file "D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip".  The process cannot access the file 'D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip' because it is being used by another process.
  Zip NodeSet2 completed, obj\/zipnodeset2 removed.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- Environment:
- Runtime:
- Nuget Version:
- Component:
- Server:
- Client:

Anything else?

No response

romanett commented 5 months ago

New Error in latest Push: Stack\Opc.Ua.Core\Opc.Ua.Core.csproj(100,5): Error MSB3943: Failed to zip directory "D:\a\1\s\Stack\Opc.Ua.Core\obj\zipnodeset2" to file "D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip". The file 'D:\a\1\s\Stack\Opc.Ua.Core\Schema\Opc.Ua.NodeSet2.xml.zip' already exists.

mregen commented 5 months ago

looks like a race condition between the various build flavors, maybe a different temp folder can do it